/* ============================================================
   Northbound Guides — Churchill day-tour guide
   Palette derives from late-October Hudson Bay coast:
   overcast grey-green light, dark bay water, rust willow scrub.
   Amber is FUNCTIONAL only (availability status), never decorative.
   ============================================================ */

:root {
  --paper:   #E6E9E6;   /* overcast light */
  --paper-2: #F2F4F1;   /* raised surface */
  --ink:     #111A19;   /* spruce black */
  --ink-60:  #4A5654;
  --ink-40:  #7C8886;
  --bay:     #17343D;   /* Hudson Bay water — dark blocks */
  --bay-2:   #0D2129;
  --ice:     #4E7C8B;   /* cold accent: links, rules */
  --ice-15:  #4e7c8b26;
  --amber:   #A85F1C;   /* status only */
  --amber-10:#a85f1c1a;
  --line:    #C6CDC9;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 68ch;
  --gap: 1.5rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, .98rem + .25vw, 1.14rem);
  line-height: 1.62;
  font-optical-sizing: auto;
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.14rem, 1.05rem + .45vw, 1.4rem); margin-top: 2em; letter-spacing: -.012em; }
h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 1.1em; }
p, li { max-width: var(--measure); }

a { color: var(--ink); text-decoration-color: var(--ice); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ice); }

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

strong { font-weight: 650; }

/* eyebrow / field label — mono, encodes "field log" register */
.eyebrow {
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 1rem;
  display: block;
}

.lede {
  font-size: clamp(1.16rem, 1.05rem + .5vw, 1.42rem);
  line-height: 1.44;
  color: var(--ink-60);
  max-width: 46ch;
}

.small { font-size: .87rem; line-height: 1.55; color: var(--ink-60); }

/* ---------- layout ---------- */

.wrap { width: min(100% - 2.5rem, 1140px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }

.grid-2 { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- disclosure strip (compliance-critical, always visible) ---------- */

.disclosure {
  background: var(--bay-2);
  color: #C9D6D9;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .01em;
  line-height: 1.5;
  padding: .55rem 0;
}
.disclosure a { color: #fff; text-decoration-color: var(--ice); }
.disclosure p { margin: 0; max-width: none; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }

.brand { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; text-decoration: none; line-height: 1.15; }
.brand span { display: block; font-family: var(--mono); font-size: .6rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-top: .18em; }

.nav { display: flex; flex-wrap: wrap; gap: 1.15rem; align-items: center; }
.nav a { font-family: var(--display); font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink-60); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }

@media (max-width: 860px) {
  .head-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .nav { gap: .85rem; }
  .nav a { font-size: .85rem; }
  .site-head { position: static; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: -.01em;
  padding: .78rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--bay); border-color: var(--bay); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- hero ---------- */

.hero { background: var(--bay); color: #E8EEEF; padding-block: clamp(3.2rem, 7vw, 6rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: #B8C7CA; }
.hero .eyebrow { color: #7FA3AC; }
.hero a { color: #fff; }
.hero .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .btn:hover { background: #fff; border-color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #5E838D; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* hero fact strip — mono, real numbers from the operator's published itinerary */
.facts { display: grid; gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem); background: #2C4A53; border: 1px solid #2C4A53; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--bay); padding: 1.1rem 1.15rem; }
.fact dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #7FA3AC; margin-bottom: .35rem; }
.fact dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: -.02em; color: #fff; line-height: 1.15; }
.fact dd small { display: block; font-family: var(--body); font-size: .78rem; font-weight: 400; color: #9FB5B9; letter-spacing: 0; margin-top: .2rem; }

/* ---------- SIGNATURE: flight-ops day timeline ---------- */

.log { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.log li {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 1.4rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  max-width: none;
  position: relative;
}
.log time {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ice);
  padding-top: .28em;
  font-variant-numeric: tabular-nums;
}
.log h3 { margin: 0 0 .3rem; font-size: 1.06rem; }
.log p { margin: 0; font-size: .96rem; color: var(--ink-60); }
.log .dur { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); display: block; margin-top: .45rem; }
@media (max-width: 620px) {
  .log li { grid-template-columns: 1fr; gap: .3rem; }
  .log time { padding-top: 0; }
}

/* ---------- availability table ---------- */

.dates { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .95rem; }
.dates caption { text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-40); padding-bottom: .8rem; }
.dates th, .dates td { text-align: left; padding: .85rem .8rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dates thead th { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); font-weight: 500; border-bottom: 1px solid var(--ink); }
.dates td.date { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 2px;
  white-space: nowrap;
}
.status.open     { background: var(--ice-15);   color: #2F5F6E; box-shadow: inset 0 0 0 1px #9DBAC2; }
.status.waitlist { background: var(--amber-10); color: var(--amber); box-shadow: inset 0 0 0 1px #D3A97F; }
.status.closed   { background: transparent;     color: var(--ink-40); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- cards / callouts ---------- */

.card { background: var(--paper-2); border: 1px solid var(--line); padding: 1.5rem; border-radius: 2px; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--amber);
  background: var(--amber-10);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 2px 2px 0;
}
.note p:last-child { margin-bottom: 0; }
.note .eyebrow { color: var(--amber); margin-bottom: .5rem; }

.checklist { list-style: none; padding: 0; margin: 1.25rem 0; }
.checklist li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: "—"; position: absolute; left: 0; color: var(--ice); font-family: var(--mono); }

/* ---------- FAQ ---------- */

.qa { border-top: 1px solid var(--ink); margin-top: 1.5rem; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  font-family: var(--display); font-weight: 600; font-size: 1.04rem;
  padding: 1.1rem 2rem 1.1rem 0; cursor: pointer; list-style: none; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font-family: var(--mono); color: var(--ice); font-size: 1.2rem; }
.qa details[open] summary::after { content: "–"; }
.qa .answer { padding: 0 0 1.3rem; color: var(--ink-60); font-size: .97rem; }
.qa .answer p:last-child, .qa .answer ul:last-child { margin-bottom: 0; }

/* ---------- form ---------- */

.form { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 2px; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field .hint { font-family: var(--body); font-weight: 400; font-size: .82rem; color: var(--ink-40); display: block; margin-top: .1rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .68rem .75rem; font-family: var(--body); font-size: 1rem;
  border: 1px solid #AEB8B4; background: #fff; color: var(--ink); border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ice); outline: 2px solid var(--ice-15); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin-bottom: 1rem; font-size: .86rem; color: var(--ink-60); }
.consent input { width: 1.05rem; height: 1.05rem; margin-top: .25rem; }
.consent label { max-width: 60ch; }

/* ---------- footer ---------- */

.site-foot { background: var(--bay-2); color: #A8BBC0; padding-block: 3.5rem 2rem; font-size: .9rem; }
.site-foot h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6E8E97; font-weight: 500; margin-bottom: .9rem; }
.site-foot a { color: #D6E2E5; text-decoration-color: #3F636E; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .45rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #22414A; font-size: .78rem; line-height: 1.6; color: #8AA3AA; }
.foot-legal p { max-width: 90ch; }

/* ---------- utilities ---------- */

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; position: fixed; z-index: 99; background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
