:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-alt: #eef3f6;
  --text: #0e1b26;
  --muted: #52616e;
  --line: #dbe3ea;
  --brand: #0b4f6c;
  --brand-ink: #ffffff;
  --brand-soft: #e3eff4;
  --accent: #f2a541;
  --accent-ink: #1f1300;
  --walk: #1f7a4d;
  --ride: #2a5db0;
  --greet: #8a4bb5;
  --port: #b5542a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 27, 38, .06), 0 6px 20px rgba(14, 27, 38, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c141b;
    --surface: #121d26;
    --surface-alt: #0f1921;
    --text: #e6edf3;
    --muted: #9aaab8;
    --line: #22313d;
    --brand: #4fb3d9;
    --brand-ink: #06202b;
    --brand-soft: #14303d;
    --accent: #f2b25c;
    --walk: #4cc38a;
    --ride: #7aa2f7;
    --greet: #c39be0;
    --port: #f08a5d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin-top: .75em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-sub { font-weight: 500; font-size: .8rem; color: var(--muted); margin-left: 2px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 6px; border-radius: 0 0 6px 6px; background: var(--accent); }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--brand); }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0 auto; width: min(1120px, 100% - 32px); font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }

/* hero */
.hero { padding: 56px 0 48px; background: radial-gradient(1200px 400px at 10% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.hero-sm { padding: 28px 0 8px; background: none; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--walk); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 0h16v16H0z' fill='%23000'/%3E%3C/svg%3E"); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.five { grid-template-columns: repeat(5, 1fr); }
.grid.ships { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* finder */
.finder { display: grid; gap: 10px; }
.finder h2 { font-size: 1.3rem; }
.finder label { font-weight: 600; font-size: .9rem; }
.finder select { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.finder select:disabled { opacity: .6; }

/* buttons */
.btn { display: inline-block; text-align: center; font: inherit; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 12px 18px; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-small { padding: 7px 12px; font-size: .85rem; background: var(--brand); color: var(--brand-ink); white-space: nowrap; }

/* sections */
.section { padding: 52px 0; }
.section.alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-lede { color: var(--muted); max-width: 70ch; margin-bottom: 1.6em; }
.sub-h { margin-top: 40px; }

/* type cards */
.type-card { border-top: 5px solid var(--brand); display: flex; flex-direction: column; }
.type-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.type-card.t-park-walk { border-top-color: var(--walk); }
.type-card.t-park-ride { border-top-color: var(--ride); }
.type-card.t-meet-greet { border-top-color: var(--greet); }
.type-card.t-on-port { border-top-color: var(--port); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 0; }
.prices dd { white-space: nowrap; }
.prices div { background: var(--surface-alt); border-radius: 10px; padding: 8px 10px; }
.prices dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prices dd { margin: 0; font-weight: 800; font-size: 1.05rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-alt); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.options td.num { font-weight: 700; font-size: 1rem; }
.th-sub { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.op-name { display: block; font-weight: 700; }
.op-detail { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; margin-top: 4px; max-width: 52ch; }
.badge { display: inline-block; margin-top: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--brand); }
.badge.t-park-walk { background: var(--walk); }
.badge.t-park-ride { background: var(--ride); }
.badge.t-meet-greet { background: var(--greet); }
.badge.t-on-port { background: var(--port); }
@media (prefers-color-scheme: dark) { .badge { color: #06131b; } }
.plain tbody tr:hover { background: var(--surface-alt); }
.sailings tr { scroll-margin-top: 140px; }
.sailings tr:target { background: color-mix(in srgb, var(--accent) 28%, transparent); outline: 2px solid var(--accent); }
section[id] { scroll-margin-top: 72px; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 66px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; }

/* terminals and ships */
.term-card h3 { margin-bottom: .25em; }
.term-card p { font-size: .92rem; }
.ship-card { text-decoration: none; color: var(--text); display: grid; gap: 4px; transition: transform .12s ease, border-color .12s ease; }
.ship-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.ship-line { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.ship-name { font-size: 1.25rem; font-weight: 800; }
.ship-meta, .ship-next { font-size: .88rem; color: var(--muted); }
.more { font-weight: 700; text-decoration: none; }
a.term-card { text-decoration: none; color: var(--text); transition: transform .12s ease, border-color .12s ease; }
a.term-card:hover { transform: translateY(-2px); border-color: var(--brand); }
a.term-card .more { color: var(--brand); }
.line-group { margin-bottom: 30px; }
.line-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 12px; }
.sub-h0 { font-size: 1rem; margin: 18px 0 10px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .92rem; }
.chips a { font-weight: 700; text-decoration: none; }
.ticks-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.ticks-list li { position: relative; padding-left: 28px; }
.ticks-list li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--walk); border-bottom: 3px solid var(--walk); transform: rotate(-45deg); }
#about .card h3 { font-size: 1.05rem; margin-bottom: 12px; }
#about .facts dl div { grid-template-columns: 140px 1fr; }

/* facts */
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.facts dl { margin: 0; display: grid; gap: 10px; }
.facts dl div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.quick { background: var(--brand-soft); border-color: transparent; }

/* callout & prose */
.callout { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }

/* busy days */
.busy { display: block; width: fit-content; margin-top: 5px; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--text); white-space: nowrap; }

/* schedule */
.day { margin-bottom: 28px; }
.day h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.day h3 .busy { margin-top: 0; }
.day-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.day-label:empty { display: none; }
.grid.months { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-weight: 700; }
.hero-links { margin: 18px 0 0; font-weight: 700; }
.line-guide { margin: -4px 0 12px; }
.tip-card { margin-top: 18px; background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.tip-card p { margin: 0; }
.prose [id] { scroll-margin-top: 84px; }

/* hotels */
.grid.hotels { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.hotel h3 { margin-bottom: .3em; }
.hotel p { font-size: .95rem; }
.hotel p:last-child { margin-bottom: 0; }

/* contact form */
.contact-form { display: grid; gap: 8px; }
.contact-form label { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.contact-form button { justify-self: start; margin-top: 6px; }
.hidden-field { display: none; }
.footer-links { margin-top: 12px; }

/* guide */
.guide h2 { margin-top: 1.6em; scroll-margin-top: 84px; }
.guide h3 { margin-top: 1.3em; }
.guide ul, .guide ol { padding-left: 1.3em; margin: 0 0 1em; }
.guide li { margin-bottom: .6em; }
.guide li > ul { margin-top: .6em; }
.guide .tip { background: var(--brand-soft); border-radius: var(--radius); padding: 16px 18px; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details div { padding: 0 18px 4px; color: var(--muted); }
.faq .more { white-space: nowrap; }

/* footer */
.site-footer { margin-top: 20px; padding: 40px 0; background: var(--surface); border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 28px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-logo { margin-bottom: .5em; }
.disclosure p { color: var(--muted); }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.five { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid.four, .grid.five, .steps, .facts-grid { grid-template-columns: 1fr; }
  .facts dl div { grid-template-columns: 1fr; gap: 2px; }
  .logo-sub { display: none; }
  .main-nav { gap: 14px; font-size: .9rem; }
  .hero { padding: 32px 0; }
  .section { padding: 40px 0; }
  th, td { padding: 12px; }
  .options thead { display: none; }
  .options, .options tbody, .options tr, .options th, .options td { display: block; width: 100%; }
  .options tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .options th, .options td { border: 0; padding: 6px 14px; text-align: left; }
  .options td.num::before { font-weight: 500; color: var(--muted); margin-right: 8px; }
  .options td.num:nth-of-type(1)::before { content: "7 nights (Aug):"; }
  .options td.num:nth-of-type(2)::before { content: "14 nights (Aug):"; }

  /* one-line scrolling menu, so the sticky header stays short */
  .main-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 16px; padding-bottom: 8px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  section[id], .guide h2, .prose [id] { scroll-margin-top: 116px; }
  .sailings tr { scroll-margin-top: 130px; }

  /* schedule, sailings and option tables become stacked cards */
  .calls thead, .bytype thead, .sailings thead { display: none; }
  .calls, .calls tbody, .calls tr, .calls td,
  .bytype, .bytype tbody, .bytype tr, .bytype th, .bytype td,
  .sailings, .sailings tbody, .sailings tr, .sailings td { display: block; width: 100%; }
  .calls tr, .bytype tr, .sailings tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .calls td, .bytype th, .bytype td, .sailings td { border: 0; padding: 2px 0; text-align: left; }
  .calls td:first-child, .sailings td:first-child { font-weight: 700; }
  .calls td.num, .bytype td.num, .sailings td.num { display: inline-block; width: auto; margin-right: 16px; }
  .calls td.num::before, .bytype td.num::before, .sailings td.num::before, .sailings td:nth-of-type(4)::before { color: var(--muted); font-weight: 500; margin-right: 6px; }
  .calls td.arr::before { content: "Arrives"; }
  .calls td.dep::before { content: "Departs"; }
  .bytype td.num:nth-of-type(2)::before { content: "7 nights:"; }
  .bytype td.num:nth-of-type(3)::before { content: "14 nights:"; }
  .sailings td:nth-of-type(3)::before { content: "Departs"; }
  .sailings td:nth-of-type(4)::before { content: "Next call:"; }
  .sailings td:nth-of-type(5)::before { content: "Length:"; }
}
