/* snorkelmolokini.com — nautical-chart field guide */
:root {
  --ink: #10283A;        /* body text */
  --channel: #0E4A6B;    /* deep water: headings, header */
  --crater: #13797A;     /* links, routes */
  --shallow: #E3F1F2;    /* water surfaces */
  --paper: #FBFDFD;      /* page */
  --buoy: #F2C14E;       /* primary action */
  --land: #E2DAC6;       /* chart land */
  --rule: #C8DCDF;       /* hairlines */
  --muted: #4A6272;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.3rem, 5.2vw, 3.6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--crater); text-underline-offset: 0.18em; }
a:hover { color: var(--channel); }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--channel);
  line-height: 1.12;
  font-stretch: 112%;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 100%; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: 68ch; }

/* Header */
.site-header { background: var(--channel); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 1.1rem; }
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; }
.site-header nav a { color: #DDEFF1; font-family: var(--display); font-size: var(--step--1); margin-left: 1.1rem; text-decoration: none; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: start; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; color: var(--ink); }
.chart { background: var(--shallow); border: 1px solid var(--rule); border-radius: 6px; padding: 0.5rem; }
.chart figcaption { font-family: var(--display); font-size: 0.78rem; color: var(--muted); padding: 0.4rem 0.5rem 0.2rem; }

.picks { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 2px solid var(--channel); }
.picks li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.picks .need { font-family: var(--display); font-weight: 600; color: var(--ink); }
.picks .pick { font-family: var(--display); font-weight: 700; color: var(--channel); text-align: right; }
.picks .pick a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--buoy); }
.picks .why { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }

/* Sections */
section { padding: 3.25rem 0; }
section + section { border-top: 1px solid var(--rule); }
.section-intro { max-width: 62ch; margin-bottom: 2rem; }

/* Featured (Redline) */
.featured { background: var(--shallow); }
.owner-note { font-size: var(--step--1); color: var(--muted); max-width: 62ch; }
.trips { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.trip { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; }
.trip.primary { border: 2px solid var(--channel); }
.trip .length { font-family: var(--display); font-size: var(--step--1); color: var(--muted); margin-bottom: 0.4rem; }
.trip ul { padding-left: 1.1rem; margin: 0 0 1.25rem; }
.trip li { margin-bottom: 0.3rem; }
.trip .fine { font-size: var(--step--1); color: var(--muted); }
.trip .btn { margin-top: auto; align-self: flex-start; }

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.2rem; border-radius: 4px; text-decoration: none;
  background: var(--buoy); color: var(--ink); border: 2px solid var(--buoy);
}
.btn:hover { background: #E8B53A; color: var(--ink); }
.btn.secondary { background: transparent; border-color: var(--channel); color: var(--channel); }
.btn.secondary:hover { background: var(--channel); color: #fff; }

/* Other operators */
.operators { display: grid; gap: 0; border-top: 2px solid var(--channel); }
.operator { display: grid; grid-template-columns: 14rem 1fr auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.operator .where { font-family: var(--display); font-size: var(--step--1); color: var(--muted); }
.operator h3 { margin-bottom: 0.2rem; }
.operator p { margin-bottom: 0.5rem; }
.operator .facts { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* Table */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.95rem; }
caption { text-align: left; padding: 0.8rem 1rem; font-family: var(--display); font-size: var(--step--1); color: var(--muted); }
th, td { text-align: left; padding: 0.75rem 1rem; border-top: 1px solid var(--rule); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 700; color: var(--channel); background: var(--shallow); border-top: 0; }
tbody th { font-family: var(--display); font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Departure points */
.departures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.departures .dist { font-family: var(--display); font-weight: 800; font-size: var(--step-2); color: var(--crater); line-height: 1; margin-bottom: 0.3rem; }
.departures .dist span { font-size: var(--step--1); font-weight: 600; color: var(--muted); }

/* Choose */
.choose { columns: 2 22rem; column-gap: 3rem; }
.choose div { break-inside: avoid; margin-bottom: 1.5rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; max-width: 72ch; }
.faq summary { font-family: var(--display); font-weight: 700; color: var(--channel); cursor: pointer; font-size: 1.05rem; }
.faq details[open] summary { margin-bottom: 0.5rem; }

/* Article pages */
.crumbs { font-family: var(--display); font-size: var(--step--1); color: var(--muted); padding-top: 1.5rem; }
.crumbs a { color: var(--muted); }
.article { padding: 1.5rem 0 3rem; }
.article h1 { font-size: var(--step-3); }
.article h2 { font-size: var(--step-2); margin-top: 2rem; }
.at-a-glance { border-top: 2px solid var(--channel); border-bottom: 1px solid var(--rule); padding: 1rem 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.at-a-glance dt { font-family: var(--display); font-size: var(--step--1); color: var(--muted); }
.at-a-glance dd { margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink); }

/* Footer */
.site-footer { background: var(--channel); color: #DDEFF1; padding: 2.5rem 0; font-size: var(--step--1); }
.site-footer a { color: #fff; }
.site-footer p { max-width: 70ch; }

@media (max-width: 860px) {
  .hero .wrap, .trips { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .operator { grid-template-columns: 1fr; gap: 0.5rem; }
  .departures { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-header nav a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* --- v2 homepage additions --- */
.quickfacts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem 1.5rem; border-top: 2px solid var(--channel); padding-top: 1rem; }
.quickfacts li { font-size: var(--step--1); color: var(--muted); }
.quickfacts strong { display: block; font-family: var(--display); font-size: var(--step-1); color: var(--channel); font-stretch: 112%; }
.jump { margin-top: 1.4rem; font-family: var(--display); font-size: var(--step--1); }
.jump a { margin-right: 1rem; white-space: nowrap; }
.disclose { font-size: var(--step--1); color: var(--ink); background: var(--shallow); border-left: 3px solid var(--buoy); padding: 0.7rem 0.9rem; max-width: 70ch; margin: 0 0 1.75rem; }
.fav { background: #fff; border: 2px solid var(--channel); border-radius: 6px; padding: 1.5rem; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 0.5rem 2rem; align-items: start; margin-bottom: 2.5rem; }
.fav .tags { grid-column: 1 / -1; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font-family: var(--display); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 3px; background: var(--channel); color: #fff; }
.tag.alt { background: var(--buoy); color: var(--ink); }
.fav h3 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.fav .actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.fav .actions a.more { font-family: var(--display); font-size: var(--step--1); }
.group-title { font-family: var(--display); font-size: var(--step-1); color: var(--channel); margin: 2.25rem 0 0.25rem; display: flex; align-items: baseline; gap: 0.75rem; }
.group-title span { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
@media (max-width: 860px) { .fav { grid-template-columns: 1fr; } .quickfacts { grid-template-columns: 1fr 1fr; } }
.price { font-family: var(--display); font-weight: 700; color: var(--crater); }
.operator h3 a { color: inherit; text-decoration: none; }
.operator h3 a:hover { text-decoration: underline; }
.site-footer .fine-print { font-size: 0.8rem; opacity: 0.85; }
.prose table { min-width: 0; }
.photo { margin: 1.75rem 0; }
.photo img { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--shallow); }
.photo figcaption { font-family: var(--display); font-size: var(--step--1); color: var(--muted); padding-top: 0.5rem; }
section.photo-band { padding: 0 0 1rem; border-top: 0; }
section.photo-band + section { border-top: 0; }
.fav-photo { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; margin-bottom: 0.5rem; }
.photo-band .photo img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 22%; }
.photo.portrait { max-width: 480px; }
