:root {
  --color-porcelain: #f8f4ec;
  --color-sunlit-sand: #e9d7b8;
  --color-sea-blue: #2f7890;
  --color-muted-turquoise: #73aaa5;
  --color-deep-navy: #17364a;
  --color-sunset-orange: #d8794d;
  --color-sea-foam: #dcebe4;
  --color-white: #fffdf8;
  --color-border: #d7cbb8;
  --color-border-navy: rgba(23, 54, 74, 0.18);

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;

  --text-meta: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-section: clamp(1.35rem, 1.8vw, 1.5rem);
  --text-h3: clamp(1.75rem, 3vw, 2rem);
  --text-h2: clamp(2.2rem, 4vw, 2.75rem);
  --text-h1: clamp(2.625rem, 6vw, 4rem);

  --leading-meta: 1.4;
  --leading-small: 1.5;
  --leading-body: 1.65;
  --leading-lead: 1.6;
  --leading-heading: 1.08;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;
  --space-10: 7.5rem;

  --container-max: 80rem;
  --container-padding: 2.5rem;
  --container-tablet-padding: 1.5rem;
  --container-mobile-padding: 1.25rem;

  --surface-base: var(--color-porcelain);
  --surface-sand: var(--color-sunlit-sand);
  --surface-foam: var(--color-sea-foam);
  --surface-dark: var(--color-deep-navy);
  --surface-light: var(--color-white);

  --shadow-floating: 0 12px 32px rgba(23, 54, 74, 0.12);

  --radius-none: 0;
  --radius-panel: 0.5rem;
  --radius-card: 0.875rem;
  --radius-pill: 999px;

  --transition-fast: 160ms ease-out;
  --transition-base: 220ms ease-out;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface-base);
  color: var(--color-deep-navy);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
blockquote,
details {
  min-width: 0;
}

img,
picture,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  font-style: italic;
}

iframe {
  border: 0;
}

a {
  color: var(--color-sea-blue);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-deep-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-sunset-orange);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

input,
textarea,
select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--surface-light);
  padding: 0.7rem 0.875rem;
  line-height: var(--leading-small);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(23, 54, 74, 0.62);
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-sea-blue);
  box-shadow: 0 0 0 3px rgba(47, 120, 144, 0.16);
  outline: 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  min-height: 1.125rem;
  accent-color: var(--color-sea-blue);
}

fieldset {
  min-width: 0;
  margin: 0 0 var(--space-5);
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: var(--space-2);
  color: var(--color-deep-navy);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 700;
}

hr {
  height: 1px;
  margin: var(--space-7) 0;
  border: 0;
  background: var(--color-border);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: var(--color-deep-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: var(--leading-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.02;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.15;
}

h4 {
  font-size: var(--text-section);
  line-height: 1.25;
}

h5,
h6 {
  font-size: var(--text-body);
  line-height: 1.35;
}

p {
  margin: 0 0 var(--space-5);
}

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-left: 1.35em;
}

ul li::marker,
ol li::marker {
  color: var(--color-sea-blue);
}

.content-list > li + li,
.rich-text li + li,
.article-content blockquote {
  margin: 0 0 var(--space-6);
  border-left: 3px solid var(--color-sunset-orange);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  color: var(--color-deep-navy);
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-style: normal;
}

figure {
  margin: 0 0 var(--space-6);
}

figcaption {
  margin-top: var(--space-2);
  color: rgba(23, 54, 74, 0.74);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

dl {
  margin: 0 0 var(--space-5);
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 var(--space-3);
}

details {
  margin: 0 0 var(--space-3);
  border-bottom: 1px solid var(--color-border);
  padding: 0 0 var(--space-3);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-deep-navy);
  font-weight: 700;
  line-height: var(--leading-small);
  cursor: pointer;
}

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

summary::after {
  flex: 0 0 auto;
  content: "+";
  color: var(--color-sunset-orange);
  font-size: 1.35em;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details > :not(summary) {
  margin-top: var(--space-3);
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-9);
}

.section--large {
  padding-block: var(--space-10);
}

.section--compact {
  padding-block: var(--space-7);
}

.surface-sand {
  background: var(--surface-sand);
}

.surface-foam {
  background: var(--surface-foam);
}

.surface-dark {
  background: var(--surface-dark);
  color: var(--color-white);
}

.surface-dark :is(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: var(--color-white);
}

.surface-dark a {
  color: var(--color-white);
}

.surface-dark a:hover {
  color: var(--color-sea-foam);
}

.surface-dark :is(input, textarea, select) {
  border-color: rgba(255, 253, 248, 0.45);
  background: rgba(255, 253, 248, 0.08);
  color: var(--color-white);
}

.surface-dark :is(input, textarea, select)::placeholder {
  color: rgba(255, 253, 248, 0.72);
}

.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack--tight > * + * {
  margin-top: var(--space-2);
}

.stack--roomy > * + * {
  margin-top: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.cluster > * {
  min-width: 0;
}

.cluster--tight {
  gap: var(--space-2);
}

.cluster--wide {
  gap: var(--space-5);
}

.panel {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--surface-light);
  padding: var(--space-5);
}

.panel--sand {
  border-color: transparent;
  background: var(--surface-sand);
}

.panel--foam {
  border-color: transparent;
  background: var(--surface-foam);
}

.panel--dark {
  border-color: transparent;
  background: var(--surface-dark);
  color: var(--color-white);
}

.panel--dark :is(h1, h2, h3, h4, h5, h6, strong) {
  color: var(--color-white);
}

.card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--surface-light);
  padding: var(--space-5);
}

.card > :last-child,
.panel > :last-child,
.stack > :last-child,
.content-group > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  padding: 0.75rem 1.375rem;
  color: var(--color-white);
  background: var(--color-deep-navy);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.button:hover {
  color: var(--color-white);
  background: #0f2b3b;
  transform: translateY(-2px);
}

.button--sunset {
  color: var(--color-deep-navy);
  background: var(--color-sunset-orange);
}

.button--sunset:hover {
  color: var(--color-deep-navy);
  background: #e18b61;
}

.button--outline {
  border-color: currentColor;
  color: var(--color-deep-navy);
  background: transparent;
}

.button--outline:hover {
  color: var(--color-white);
  background: var(--color-deep-navy);
}

.button--light {
  color: var(--color-deep-navy);
  background: var(--color-white);
}

.button--light:hover {
  color: var(--color-deep-navy);
  background: var(--color-sea-foam);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-sea-blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform var(--transition-fast);
}

.text-link:hover {
  color: var(--color-deep-navy);
}

.text-link:hover::after {
  transform: translateX(0.2rem);
}

.eyebrow,
.meta,
.kicker {
  color: var(--color-sea-blue);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: var(--leading-meta);
  text-transform: uppercase;
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.route-marker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  color: var(--color-deep-navy);
}

.route-marker::before {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border: 2px solid var(--color-sunset-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface-base);
  content: "";
}

.route-marker__number {
  color: var(--color-sunset-orange);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.route-marker__label {
  min-width: 0;
  font-size: var(--text-small);
  font-weight: 700;
  line-height: var(--leading-small);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-180%);
  border-radius: var(--radius-panel);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
  background: var(--color-deep-navy);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

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

@media (max-width: 959px) {
  :root {
    --container-padding: var(--container-tablet-padding);
  }

  .section {
    padding-block: var(--space-8);
  }

  .section--large {
    padding-block: var(--space-9);
  }
}

@media (max-width: 767px) {
  :root {
    --container-padding: var(--container-mobile-padding);
  }

  body {
    font-size: 0.9375rem;
  }

  h1 {
    line-height: 1.06;
  }

  .section {
    padding-block: var(--space-8);
  }

  .section--large {
    padding-block: var(--space-8);
  }

  .section--compact {
    padding-block: var(--space-6);
  }

  .panel,
  .card {
    padding: var(--space-4);
  }

  .button {
    width: 100%;
  }

  .cluster--actions {
    align-items: stretch;
    width: 100%;
  }

  .cluster--actions > * {
    flex: 1 1 100%;
  }
}

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

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