:root {
  --ink: #1d2b3a;
  --ink-soft: #40505f;
  --paper: #fbf8f1;
  --paper-deep: #f2ecdf;
  --card: #fffdf8;
  --teal: #0f6f6c;
  --teal-deep: #0b5451;
  --clay: #c96f4a;
  --line: #ded5c4;
  --muted: #63707c;
  --shadow: 8px 8px 0 rgba(29, 43, 58, 0.07);
  --radius: 4px;
  --serif: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.nav > a,
.nav summary {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  list-style: none;
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav > a:hover,
.nav summary:hover,
.dropdown[open] summary {
  border-bottom-color: var(--clay);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(29, 43, 58, 0.14);
  padding: 8px;
  display: grid;
  gap: 2px;
}

.dropdown-menu a {
  padding: 8px 12px;
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
}

.dropdown-menu a:hover {
  background: var(--paper-deep);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: #fdfaf2;
  overflow: hidden;
  padding-bottom: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 28, 40, 0.82) 0%, rgba(12, 28, 40, 0.55) 45%, rgba(12, 28, 40, 0.9) 100%);
}

.hero-inner {
  text-align: center;
  padding: clamp(70px, 12vw, 132px) 0 clamp(40px, 6vw, 64px);
  max-width: 800px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero .kicker {
  color: #f0b394;
}

.hero h1 {
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(253, 250, 242, 0.9);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid var(--teal);
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--teal-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(253, 250, 242, 0.6);
  color: #fdfaf2;
}

.btn-ghost:hover {
  background: rgba(253, 250, 242, 0.14);
  color: #fff;
}

.route-strip {
  position: relative;
  border-top: 1px dashed rgba(253, 250, 242, 0.45);
  padding: 0;
}

.route-strip ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.route-strip li {
  border-right: 1px dashed rgba(253, 250, 242, 0.28);
}

.route-strip li:last-child {
  border-right: 0;
}

.route-strip a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px 18px;
  color: #fdfaf2;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.route-strip a:hover {
  background: rgba(253, 250, 242, 0.08);
  color: #fff;
}

.route-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: #f0b394;
  letter-spacing: 0.18em;
}

/* Sections */
.section {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-top: -6px;
}

.section > .wrap > h2 {
  margin-bottom: 24px;
}

/* Stop cards */
.stop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stop-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 24px 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.stop-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  color: var(--ink);
}

.stop-num {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--clay);
}

.stop-name {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
}

.stop-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.stop-go {
  margin-top: 6px;
  color: var(--teal);
  font-size: 1.1rem;
}

/* Postcards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.postcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

.postcard:hover {
  transform: translateY(-3px);
}

.postcard-media {
  display: block;
  padding: 9px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.postcard-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.postcard-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
  margin-bottom: 8px;
}

.tag:hover {
  color: var(--teal);
}

.postcard-title {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.postcard-title a {
  color: var(--ink);
  text-decoration: none;
}

.postcard-title a:hover {
  color: var(--teal-deep);
}

.postcard-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.read-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.read-link span {
  display: inline-block;
  transition: transform 0.18s ease;
}

.read-link:hover span {
  transform: translateX(4px);
}

/* Values band */
.values {
  background: var(--ink);
  color: #f4efe4;
}

.values h2 {
  color: #fff;
}

.values .grid {
  gap: 0;
}

.value {
  padding: 4px 30px 4px 0;
  border-left: 1px solid rgba(244, 239, 228, 0.2);
  padding-left: 26px;
}

.value:first-child {
  border-left: 0;
  padding-left: 0;
}

.value h3 {
  color: #f0b394;
  font-size: 1.1rem;
}

.value p {
  color: rgba(244, 239, 228, 0.78);
  font-size: 0.92rem;
  margin: 0;
}

/* Page head */
.page-head {
  padding: clamp(34px, 5vw, 56px) 0 8px;
  max-width: 780px;
}

.page-head .lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.breadcrumb {
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal);
}

/* Category page */
.intro-2 {
  color: var(--ink-soft);
  max-width: 720px;
}

.subtopics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}

.subtopics li {
  font-size: 0.8rem;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--card);
}

.other-cats ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.other-cats a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--ink);
}

.other-cats a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* Article */
.article-wrap {
  max-width: 860px;
}

.article-head {
  padding: 26px 0 10px;
}

.article-head h1 {
  margin-top: 6px;
}

.article-head .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.meta {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-top: 20px;
}

.prose {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink);
  padding: 8px 0 4px;
}

.prose h2 {
  margin-top: 1.9em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0.6em;
}

.prose ul {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.article-figure {
  margin: 30px 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-figure figcaption {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.faq {
  margin: 40px 0 10px;
}

.faq h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3em;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.03rem;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 44px 0 10px;
  padding: 22px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-avatar {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.author-box h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.related {
  margin: 50px 0 10px;
  padding-top: 30px;
  border-top: 1px dashed var(--line);
}

.related h2 {
  font-size: 1.4rem;
}

/* Info pages */
.narrow {
  max-width: 800px;
}

.updated {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: var(--paper-deep);
  border-top: 1px dashed var(--line);
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-logo {
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.site-footer ul a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer ul a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0 22px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value {
    border-left: 0;
    padding: 0 0 18px;
  }

  .values .grid {
    gap: 18px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav {
    gap: 12px;
    font-size: 0.84rem;
  }

  .nav summary {
    white-space: nowrap;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .route-strip ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-strip li {
    border-bottom: 1px dashed rgba(253, 250, 242, 0.28);
  }

  .route-strip li:nth-child(2n) {
    border-right: 0;
  }

  .route-strip li:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .article-figure {
    margin: 24px 0;
  }

  .author-box {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
