:root {
  --navy: #0b2340;
  --navy-soft: #173654;
  --cream: #f8f1e6;
  --paper: #fffaf2;
  --white: #ffffff;
  --terracotta: #c44a25;
  --terracotta-dark: #a73e20;
  --ink: #162536;
  --muted: #5d6770;
  --line: #d9c9b6;
  --todo-bg: #fff2d8;
  --todo-line: #c9881d;
  --shadow: 0 18px 48px rgba(11, 35, 64, 0.12);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(11, 35, 64, 0.035) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--terracotta);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: rgba(11, 35, 64, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  width: min(100% - 32px, var(--content));
  min-height: 82px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  align-items: center;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 52px;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  overflow-x: auto;
  padding-block: 18px;
  font-size: 0.94rem;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0;
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--terracotta);
  content: "";
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #f5bf61;
  outline-offset: 4px;
}

main {
  overflow: hidden;
}

.hero,
.page-hero,
.section,
.site-footer {
  padding-inline: max(20px, calc((100vw - var(--content)) / 2));
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding-top: clamp(62px, 9vw, 126px);
  padding-bottom: clamp(62px, 8vw, 108px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 720px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  letter-spacing: -0.045em;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

p,
li {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.answer-first {
  max-width: 700px;
  margin: 0;
  color: #27394b;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  color: var(--navy);
  background: transparent;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  border-color: var(--terracotta);
  color: var(--white);
  background: var(--terracotta);
}

.button.primary:hover {
  background: var(--terracotta-dark);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero-art {
  min-height: 540px;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.hero-art svg {
  width: min(100%, 640px);
  height: auto;
}

.page-hero {
  padding-top: clamp(70px, 10vw, 136px);
  padding-bottom: clamp(54px, 8vw, 96px);
  color: var(--white);
  background: var(--navy);
}

.page-hero h1,
.page-hero .answer-first {
  color: var(--white);
}

.page-hero .answer-first {
  color: rgba(255, 255, 255, 0.82);
}

.page-kicker {
  margin: 0 0 14px;
  color: #f2b08e;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding-top: clamp(64px, 9vw, 118px);
  padding-bottom: clamp(64px, 9vw, 118px);
}

.section.paper {
  background: var(--paper);
}

.section.navy {
  color: var(--white);
  background: var(--navy);
}

.section.navy h2,
.section.navy h3 {
  color: var(--white);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-intro p {
  color: var(--muted);
}

.section.navy .section-intro p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-grid,
.menu-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature,
.menu-group,
.route-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.56);
}

.feature p,
.menu-group p,
.route-card p {
  color: var(--muted);
}

.feature a,
.route-card a,
.text-link {
  color: var(--terracotta-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.illustration-frame {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 58px);
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.illustration-frame svg {
  width: min(100%, 490px);
}

.todo {
  padding: 14px 16px;
  border-left: 4px solid var(--todo-line);
  color: #67440d;
  background: var(--todo-bg);
  font-weight: 750;
}

.todo-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.todo-list li {
  padding: 13px 15px;
  border: 1px dashed var(--todo-line);
  background: var(--todo-bg);
}

.menu-group {
  min-height: 280px;
}

.menu-group ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.menu-group li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #67440d;
}

.faq {
  max-width: 920px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 22px 42px 22px 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  max-width: 760px;
  margin: -6px 0 24px;
  color: var(--muted);
}

.faq details .todo {
  margin-top: -6px;
  color: #67440d;
}

.breadcrumb {
  margin: 0 0 24px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  list-style: none;
}

.breadcrumb li {
  display: inline;
  font-size: 0.92rem;
}

.breadcrumb li + li::before {
  margin-inline: 8px;
  content: "/";
}

.breadcrumb a {
  text-underline-offset: 3px;
}

.plain-list {
  padding-left: 22px;
}

.plain-list li + li {
  margin-top: 10px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(34px, 6vw, 66px);
  color: var(--white);
  background: var(--terracotta);
}

.cta-band h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-band p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
  padding-top: 58px;
  padding-bottom: 42px;
  color: rgba(255, 255, 255, 0.82);
  background: #071a2e;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer span {
  font-size: 0.94rem;
}

.site-footer span {
  display: block;
  margin-top: 7px;
}

.site-footer a {
  display: block;
  margin-top: 7px;
  text-underline-offset: 3px;
}

.footer-todo {
  color: #ffd69d;
  font-weight: 800;
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--white);
  background: var(--navy);
}

.error-card {
  max-width: 720px;
  text-align: center;
}

.error-card h1 {
  color: var(--white);
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
    display: block;
    padding-top: 14px;
  }

  .site-nav {
    margin-inline: -2px;
    padding-block: 10px 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: auto;
  }

  .hero-art svg {
    width: min(100%, 560px);
  }

  .feature-grid,
  .menu-grid,
  .route-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.55rem, 11vw, 3.5rem);
  }

  .hero {
    padding-top: 54px;
  }

  .site-nav {
    gap: 13px;
    font-size: 0.78rem;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    margin-top: 6px;
  }

  .feature,
  .menu-group,
  .route-card {
    min-height: auto;
  }

  .illustration-frame {
    min-height: 310px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
