@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --ink: #17272a;
  --ink-soft: #46575a;
  --muted: #738181;
  --deep: #0b1518;
  --deep-teal: #102327;
  --teal: #527b79;
  --teal-light: #a9c5c5;
  --paper: #f6f4ee;
  --surface: #fffefa;
  --line: #d9ded8;
  --line-dark: rgba(220, 232, 228, 0.18);
  --rust: #b46b4b;
  --rust-dark: #8e4b32;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Avenir Next", Avenir, sans-serif;
  --page-width: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --shadow-soft: 0 18px 55px rgba(15, 35, 37, 0.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  width: 100%;
  height: auto;
}

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

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #c4d5d0;
  color: var(--deep);
}

:focus-visible {
  outline: 3px solid #bf8060;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--surface);
  color: var(--deep);
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 180ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--page-width));
  margin-inline: auto;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid rgba(23, 39, 42, 0.09);
  background: rgba(246, 244, 238, 0.96);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--deep-teal);
}

.brand-mark {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  color: var(--teal);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.brand small {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: clamp(17px, 2.35vw, 34px);
}

.primary-nav a {
  position: relative;
  padding-block: 8px;
  color: #344649;
  font-size: 0.81rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--rust);
  content: "";
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--rust-dark);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(23, 39, 42, 0.25);
  border-radius: 2px;
}

.primary-nav .nav-contact::after {
  display: none;
}

.primary-nav .nav-contact:hover {
  border-color: var(--rust);
  background: var(--rust);
  color: white;
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--deep-teal);
  transition: transform 180ms ease, background 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
}

.menu-toggle[aria-expanded="true"] + .primary-nav,
.site-header:has(.menu-toggle[aria-expanded="true"]) .primary-nav {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 24px rgba(18, 38, 40, 0.08);
}

.menu-toggle[aria-expanded="true"] + .primary-nav a,
.site-header:has(.menu-toggle[aria-expanded="true"]) .primary-nav a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 39, 42, 0.08);
}

.menu-toggle[aria-expanded="true"] + .primary-nav .nav-contact,
.site-header:has(.menu-toggle[aria-expanded="true"]) .primary-nav .nav-contact {
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
}

/* Shared typography */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rust);
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: #a7b5b0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--deep-teal);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 1.04;
}

h1 em {
  color: var(--rust);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.14;
}

h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

/* Homepage hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 42px;
  padding-block: clamp(54px, 8vw, 110px) clamp(58px, 8vw, 104px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 690px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 27px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--deep-teal);
  color: #f8f7f1;
}

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

.button-outline {
  border-color: rgba(233, 239, 234, 0.6);
  color: #f6f4ee;
}

.button-outline:hover {
  border-color: #f6f4ee;
  background: #f6f4ee;
  color: var(--deep-teal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link span,
.card-link span {
  color: var(--rust);
  transition: transform 180ms ease;
}

.text-link:hover span,
.card-link:hover span {
  transform: translateX(4px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 21px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero-meta span + span {
  position: relative;
}

.hero-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rust);
  content: "";
}

.hero-visual {
  position: relative;
  min-height: 280px;
  background: #d4d4c9;
}

.hero-visual > img {
  height: clamp(290px, 50vw, 540px);
  object-fit: cover;
  filter: saturate(0.72);
}

.hero-visual::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(9, 24, 26, 0.58));
  content: "";
  pointer-events: none;
}

.visual-caption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
}

.visual-caption strong {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.signal-dot {
  width: 8px;
  height: 8px;
  align-self: flex-start;
  margin-top: 4px;
  border-radius: 50%;
  background: #c78a68;
  box-shadow: 0 0 0 4px rgba(199, 138, 104, 0.22);
}

.caption-index {
  margin-left: auto;
  align-self: flex-end;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.hero-route {
  display: none;
}

/* Homepage index cards */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 330px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.91rem;
}

.topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}

.topic-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card-media {
  position: relative;
  min-height: 215px;
  overflow: hidden;
  background: #d6d8cf;
}

.card-media img {
  height: 100%;
  min-height: 215px;
  object-fit: cover;
  filter: saturate(0.72);
  transition: transform 450ms ease;
}

.topic-card:hover .card-media img {
  transform: scale(1.035);
}

.image-index {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  background: rgba(13, 32, 34, 0.86);
  color: #f4f3ed;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.card-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 24px 23px 22px;
}

.card-content .eyebrow {
  margin-bottom: 11px;
  font-size: 0.59rem;
}

.card-content h3 {
  margin-bottom: 10px;
}

.card-content > p:not(.eyebrow) {
  margin-bottom: 21px;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 21px;
}

.card-meta span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--deep-teal);
  font-size: 0.79rem;
  font-weight: 700;
}

/* Route diagram */
.route-section {
  padding-top: 0;
}

.route-map {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 29px 0 16px;
  border-block: 1px solid var(--line);
}

.route-drawing {
  position: absolute;
  inset: 8px 0 0;
  width: 100%;
  height: 140px;
  color: #9fb1aa;
}

.route-drawing circle {
  fill: var(--rust);
  stroke: var(--paper);
  stroke-width: 3px;
}

.route-stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 12px;
}

.route-stops > div {
  display: flex;
  min-height: 94px;
  align-items: flex-start;
  flex-direction: column;
  padding: 0 12px;
}

.stop-number {
  margin-bottom: 17px;
  color: var(--rust);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.route-stops strong {
  color: var(--deep-teal);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

.route-stops small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.route-note {
  max-width: 780px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.closing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(65px, 9vw, 110px);
  padding: clamp(27px, 5vw, 52px);
  background: var(--deep-teal);
  color: #e9eee9;
}

.closing-band .eyebrow {
  margin-bottom: 10px;
  color: var(--teal-light);
}

.closing-band h2 {
  margin-bottom: 9px;
  color: #f7f5ed;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.closing-band p:not(.eyebrow) {
  margin-bottom: 0;
  color: #bdcbc7;
  font-size: 0.9rem;
}

/* Article hero and content layout */
.article-hero {
  display: grid;
  gap: 35px;
  align-items: center;
  padding-block: clamp(46px, 7vw, 84px) clamp(54px, 8vw, 100px);
}

.article-hero > div:first-child {
  max-width: 710px;
}

.article-hero h1 {
  max-width: 780px;
  font-size: clamp(2.65rem, 7vw, 5rem);
}

.article-hero .hero-lede {
  max-width: 650px;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.article-hero-image {
  overflow: hidden;
  background: #d7d8cf;
}

.article-hero-image img {
  height: clamp(245px, 40vw, 460px);
  object-fit: cover;
  filter: saturate(0.72);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.article-meta span + span {
  position: relative;
}

.article-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rust);
  content: "";
}

.article-layout {
  display: grid;
  gap: 42px;
  align-items: start;
  padding-bottom: clamp(70px, 10vw, 125px);
}

.article-aside {
  display: none;
}

.prose {
  min-width: 0;
  max-width: 790px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #4b5a5b;
  font-size: 0.97rem;
  line-height: 1.83;
}

.prose p {
  margin-bottom: 1.3em;
}

.prose a:not(.button) {
  color: var(--rust-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(142, 75, 50, 0.35);
  text-underline-offset: 3px;
}

.prose a:not(.button):hover {
  text-decoration-color: currentColor;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose h2 {
  margin: 2.1em 0 0.65em;
  font-size: clamp(1.75rem, 3.3vw, 2.35rem);
  line-height: 1.2;
  scroll-margin-top: 95px;
}

.prose h2:first-of-type {
  margin-top: 1.65em;
}

.prose ul {
  display: grid;
  gap: 9px;
  margin: 0 0 1.5em;
  padding-left: 1.3em;
}

.prose li {
  padding-left: 0.18em;
}

.prose li::marker {
  color: var(--rust);
}

.article-intro {
  padding-left: 20px;
  border-left: 2px solid var(--rust);
  color: var(--deep-teal) !important;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.3vw, 1.43rem) !important;
  line-height: 1.65 !important;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 52px;
  padding: clamp(22px, 4vw, 38px);
  background: #e8ece5;
}

.article-cta .eyebrow {
  margin-bottom: 9px;
}

.article-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.article-cta p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.article-cta .button {
  flex: 0 0 auto;
}

.aside-note {
  margin-top: 36px;
  padding: 17px 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--rust);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.7;
}

.aside-note strong {
  display: block;
  margin-top: 5px;
  color: var(--deep-teal);
  font-family: var(--serif);
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

/* Tables */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin: 1.7em 0 1.9em;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.6;
}

.comparison-table thead th {
  background: var(--deep-teal);
  color: #f5f4ed;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody th {
  width: 22%;
  color: var(--deep-teal);
  font-weight: 700;
}

.comparison-table tbody td {
  color: var(--ink-soft);
}

.comparison-table tbody tr:nth-child(even) {
  background: #f6f7f2;
}

/* Contact form */
.contact-form {
  margin: 30px 0 48px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #cbd4cf;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 35, 37, 0.05);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--deep-teal);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #aebcb6;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input {
  min-height: 54px;
  padding: 12px 14px;
}

.form-field textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: #718c84;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  background: #fffefa;
  box-shadow: 0 0 0 3px rgba(82, 123, 121, 0.16);
  outline: none;
}

.contact-submit {
  margin-top: 24px;
  cursor: pointer;
}

.contact-submit:focus-visible {
  outline: 3px solid #bf8060;
  outline-offset: 4px;
}

/* Footer */
.site-footer {
  padding: clamp(45px, 7vw, 76px) var(--gutter) 0;
  background: var(--deep);
  color: #dce5df;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px 32px;
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-bottom: 44px;
}

.footer-brand .brand {
  color: #f1f2ec;
}

.footer-brand .brand-mark {
  color: var(--teal-light);
}

.footer-brand .brand small {
  color: #9caeaa;
}

.footer-brand > p {
  max-width: 280px;
  margin: 18px 0 13px;
  color: #aebdb8;
  font-size: 0.83rem;
  line-height: 1.7;
}

.domain-link {
  color: var(--teal-light);
  font-size: 0.78rem;
  text-decoration: underline;
  text-decoration-color: rgba(169, 197, 197, 0.35);
  text-underline-offset: 4px;
}

.footer-column h2 {
  margin: 0 0 15px;
  color: #eef1eb;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column p {
  display: block;
  margin: 0 0 9px;
  color: #aebdb8;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-column a {
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: #f5f3ea;
}

.footer-column p span {
  color: #81928e;
  font-size: 0.7rem;
}

.footer-legal p {
  max-width: 275px;
}

.footer-legal a {
  color: var(--teal-light);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  width: min(100%, var(--page-width));
  flex-direction: column;
  gap: 8px;
  margin-inline: auto;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line-dark);
  color: #8fa09c;
  font-size: 0.66rem;
  line-height: 1.5;
}

/* Cookie preference panel */
.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(217, 222, 216, 0.2);
  background: #102327;
  color: #f2f2ec;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.25);
}

.cookie-copy strong {
  font-size: 0.95rem;
}

.cookie-copy p,
.cookie-preferences p {
  margin: 5px 0 0;
  color: #b9c8c2;
  font-size: 0.78rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions button,
.cookie-preferences button {
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid rgba(220, 232, 228, 0.35);
  border-radius: 2px;
  background: transparent;
  color: #f4f3ed;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.cookie-actions button:first-child {
  border-color: var(--teal-light);
  background: var(--teal-light);
  color: var(--deep);
}

.cookie-actions button:hover,
.cookie-preferences button:hover {
  background: #f3f3eb;
  color: var(--deep);
}

.cookie-preferences {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 1px solid var(--line-dark);
}

.cookie-preferences button {
  margin-top: 12px;
}

/* Responsive layout */
@media (min-width: 600px) {
  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .topic-card {
    grid-template-rows: 225px 1fr;
  }

  .card-media,
  .card-media img {
    min-height: 225px;
  }

  .route-stops {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .route-stops > div {
    padding-inline: 8px;
  }

  .route-drawing {
    top: 5px;
    height: 120px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 760px) {
  .site-header {
    min-height: 88px;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.03fr 0.97fr;
    gap: clamp(32px, 5vw, 74px);
  }

  .hero-visual {
    margin-right: min(0px, 0px);
  }

  .hero-visual > img {
    height: clamp(400px, 48vw, 570px);
  }

  .hero-route {
    position: absolute;
    right: 34%;
    bottom: 5%;
    display: block;
    width: 125px;
    height: 125px;
    color: #9eb5ae;
    opacity: 0.75;
    pointer-events: none;
  }

  .hero-route circle {
    fill: var(--rust);
  }

  .section-heading {
    margin-bottom: 43px;
  }

  .topic-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  .topic-card {
    grid-column: span 2;
  }

  .topic-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .topic-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .article-hero {
    grid-template-columns: 1.06fr 0.94fr;
    gap: clamp(35px, 6vw, 80px);
  }

  .article-hero-image img {
    height: clamp(350px, 41vw, 475px);
  }

  .article-layout {
    grid-template-columns: 185px minmax(0, 790px);
    gap: clamp(35px, 6vw, 90px);
    justify-content: center;
  }

  .article-aside {
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
  }

  .article-aside > .eyebrow {
    margin-bottom: 13px;
    font-size: 0.61rem;
  }

  .article-aside > a {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.5;
    transition: color 160ms ease;
  }

  .article-aside > a:hover {
    color: var(--rust-dark);
  }

  .footer-main {
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr;
    gap: 30px;
  }

  .cookie-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 22px 25px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }

  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .site-header {
    padding-inline: max(var(--gutter), calc((100vw - var(--page-width)) / 2));
  }

  .hero {
    min-height: 660px;
  }

  .hero-visual > img {
    height: 520px;
  }

  .topic-card:nth-child(4) {
    grid-column: 1 / span 3;
  }

  .topic-card:nth-child(5) {
    grid-column: 4 / span 3;
  }

  .topic-card:nth-child(4),
  .topic-card:nth-child(5) {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: 1fr;
  }

  .topic-card:nth-child(4) .card-media,
  .topic-card:nth-child(5) .card-media,
  .topic-card:nth-child(4) .card-media img,
  .topic-card:nth-child(5) .card-media img {
    height: 100%;
    min-height: 310px;
  }

  .card-content {
    padding: 27px;
  }

  .route-map {
    padding-block: 31px 17px;
  }

  .route-drawing {
    top: 5px;
    height: 135px;
  }
}

@media (max-width: 599px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .closing-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-cta .button {
    width: 100%;
  }

  .route-stops > div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .route-stops > div:nth-child(5) .stop-number {
    margin-bottom: 8px;
  }

  .footer-main {
    gap: 31px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 17px;
  }

  .cookie-actions button {
    flex: 1 1 calc(50% - 8px);
  }

  .contact-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}