:root {
  --bg: #f4f1e8;
  --bg-strong: #ebe5d7;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: #fffdf8;
  --text: #24302b;
  --muted: #5b6b64;
  --border: rgba(36, 48, 43, 0.12);
  --accent: #516f60;
  --accent-strong: #31463b;
  --shadow: 0 20px 45px rgba(61, 73, 68, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(180deg, #f7f3ea 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 8px 20px rgba(61, 73, 68, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: inline-block;
}
.header-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-link-button.is-active {
  background: var(--accent-strong);
  color: #f8f5ee;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--accent-strong);
  cursor: pointer;
  list-style: none;
}

.mobile-menu-toggle::-webkit-details-marker {
  display: none;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.mobile-menu-icon {
  position: relative;
}

.mobile-menu-icon::before {
  position: absolute;
  top: -0.32rem;
  left: 0;
}

.mobile-menu-icon::after {
  position: absolute;
  top: 0.32rem;
  left: 0;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 10;
  width: min(16rem, calc(100vw - 1.6rem));
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: var(--shadow);
}

.mobile-language-switcher {
  display: grid;
  gap: 0.7rem;
}

.mobile-menu-panel .header-link-button {
  width: 100%;
  margin-bottom: 0.7rem;
}

.mobile-language-switcher .lang-button {
  justify-content: flex-start;
  min-height: 2.35rem;
  padding-inline: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 253, 247, 0.78);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent-strong);
  color: #f8f5ee;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-strong);
}

.hero,
.content-section {
  margin-top: 1.5rem;
}

.hero {
  padding: clamp(2rem, 4vw, 4.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(243, 238, 226, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero > .eyebrow {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.content-section > .eyebrow {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero h1,
.section-heading h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 8vw, 5.2rem);
}

.hero-copy,
.section-heading p,
.path-card p {
  color: var(--muted);
}

.hero-copy {
  margin: 1.2rem 0 0;
  font-size: 1.1rem;
}

.about-intro p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.hero-copy-multiline {
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button-primary {
  background: var(--accent-strong);
  color: #f8f5ee;
}

.path-grid {
  display: grid;
  gap: 1rem;
}

.path-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.path-card {
  padding: 1.4rem;
}

.about-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-card p {
  margin: 0;
  color: var(--muted);
}

.path-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.path-card-copy {
  margin: 0;
  color: var(--muted);
}

.path-card-copy-multiline {
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.75;
}

.prompt-panel {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.66);
  overflow: hidden;
}

.prompt-toggle {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
}

.prompt-toggle::-webkit-details-marker {
  display: none;
}

.prompt-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prompt-label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.prompt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #f8f5ee;
  font-size: 0.92rem;
  font-weight: 700;
}

.prompt-button-symbol {
  font-size: 1.2rem;
  line-height: 1;
}

.prompt-button-symbol-collapse {
  display: none;
}

.prompt-preview {
  display: -webkit-box;
  margin: 0.85rem 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.prompt-panel[open] .prompt-preview {
  display: none;
}

.prompt-panel[open] .prompt-button-symbol-expand {
  display: none;
}

.prompt-panel[open] .prompt-button-symbol-collapse {
  display: inline;
}

.prompt-content {
  padding: 0 1rem 1rem;
}

.prompt-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-button-icon {
  font-size: 1rem;
  line-height: 1;
}

.copy-button.is-copied {
  background: var(--accent-strong);
  color: #f8f5ee;
}

.prompt-text {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 1.2rem;
}

.section-heading h3 {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
}

.section-heading p {
  margin: 0.9rem 0 0;
}

.path-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .path-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: center;
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 0.9rem), var(--content-width));
    padding-bottom: 2.25rem;
  }

  .site-header {
    padding: 0.25rem 0 1rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .hero {
    padding: 1.1rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .mobile-menu {
    display: block;
  }

  .content-section {
    margin-top: 1.1rem;
  }

  .path-card {
    padding: 1rem;
  }

  .about-card {
    padding: 1rem;
  }

  .prompt-toggle {
    padding: 0.85rem;
  }

  .prompt-content {
    padding: 0 0.85rem 0.85rem;
  }

  .prompt-actions {
    margin-bottom: 0.65rem;
  }

  .prompt-text {
    padding: 0.8rem;
  }
}
