:root {
  --ink: #132238;
  --ink-soft: #2a3f5a;
  --paper: #f3f0e8;
  --paper-deep: #e7e1d3;
  --panel: #ffffff;
  --accent: #0f8a7a;
  --accent-deep: #0a5f54;
  --signal: #d97706;
  --line: rgba(19, 34, 56, 0.12);
  --shadow: 0 18px 50px rgba(19, 34, 56, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 138, 122, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(217, 119, 6, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f4ed 0%, var(--paper) 40%, #efe9db 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--panel);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-weight: 700;
  height: auto;
  left: 0.5rem;
  line-height: normal;
  padding: 0.75rem 1rem;
  text-decoration: none;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}

.site-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 240, 232, 0.86);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-inner .nav-primary {
  margin-left: auto;
  margin-right: 0.75rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  color: var(--accent-deep);
  background: rgba(15, 138, 122, 0.1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.header-inner .nav-primary {
  margin-left: 0;
}

.nav-primary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a {
  color: var(--accent-deep);
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1,
.guide-hero h1,
.guide-hero h2,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.hero-panel {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(15, 138, 122, 0.92), rgba(19, 34, 56, 0.95)),
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.04) 0 12px,
      transparent 12px 24px
    );
  color: #f7f4ed;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.35);
  filter: blur(10px);
}

.hero-panel-kicker {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero-panel h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.hero-panel p {
  position: relative;
  margin: 0;
  max-width: 22rem;
  color: rgba(247, 244, 237, 0.88);
}

.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card,
.feature-grid article,
.guide-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 24px rgba(19, 34, 56, 0.04);
}

.card h3,
.feature-grid h4,
.guide-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card p,
.feature-grid p,
.guide-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.card a,
.guide-card a {
  font-weight: 700;
  text-decoration: none;
}

.path-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.path-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(15, 138, 122, 0.35);
  border-radius: 14px;
  padding: 1rem;
}

.path-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.path-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-main {
  padding-bottom: 3rem;
}

.guide-hero--page {
  padding: 2.5rem 0 1rem;
}

.prose {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 760px;
}

.prose h3 {
  font-family: var(--font-display);
  margin-top: 1.75rem;
  letter-spacing: -0.02em;
}

.prose ol,
.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose code {
  background: var(--paper-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.92em;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--signal);
  background: #fff7ed;
  border-radius: 0 12px 12px 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(247, 244, 237, 0.86);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: #c9f0e8;
}

.site-footer .brand-mark {
  color: #fff;
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(247, 244, 237, 0.7);
  margin-top: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero,
  .card-grid,
  .feature-grid,
  .path-strip,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    display: none;
    width: 100%;
  }

  .nav-primary.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-inner .nav-primary {
    order: 3;
  }

  .nav-primary ul {
    flex-direction: column;
    padding: 0.5rem 0 0.25rem;
  }

  .hero,
  .card-grid,
  .feature-grid,
  .path-strip,
  .footer-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
