/* Glide Drive — glidedrive.ca. Self-contained: no external fonts, scripts or trackers. */
@font-face { font-family: "Bree Serif"; src: url("../fonts/BreeSerif-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Italic.woff") format("woff"); font-style: italic; font-display: swap; }

/* Colour tokens shared with hoppingcrow.ca (Legends on Ice / Yacht Race). */
:root {
  --navy: #0d3b66;
  --navy-deep: #08263f;
  --sea: #1d6fa5;
  --sand: #f7f3ea;
  --sand-dark: #ebe3d2;
  --gold: #e6be5a;
  --gold-soft: #fff3b0;
  --gold-sunrise: #ffc93c;
  --ink: #14263d;
  --muted: #3a5168;
  --line: #d9c08a;
  --card: #fffdf8;
  --radius: 14px;
  --max: 1040px;
  /* Accents kept for the sunset stripe and banner edge */
  --sun-yellow: #ffc93c;
  --sun-orange: #FF8A3D;
  --sunset-red: #FF5A4E;
  --solar-green: #1FB57A;
  --glacier: #2EC4B6;
  --cream: var(--sand);
  --stripes: linear-gradient(180deg, var(--sun-yellow) 0 20%, var(--sun-orange) 20% 40%, var(--sunset-red) 40% 60%, var(--glacier) 60% 80%, var(--solar-green) 80% 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #cfe7f7 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #ffe9b0 0%, transparent 50%),
    var(--sand);
  font: 400 1.125rem/1.65 "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { font-family: "Bree Serif", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; margin: 0 0 .4em; color: var(--navy); }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
a:focus-visible, .badge:focus-visible { outline: 3px solid var(--gold-sunrise); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--card); padding: .5rem 1rem; border-radius: 8px; }

.stripes { height: 30px; background: var(--stripes); }
.stripes.thin { height: 15px; }

/* Cream / white rounded card — same language as hoppingcrow .card */
.panel {
  background: var(--card);
  color: var(--ink);
  border: 1px solid rgba(217,192,138,.7);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(13,59,102,.06);
  padding: 1.15rem 1.4rem 1.2rem;
}

/* Banner: real <img>, 2.95:1 crop, both wingtips + sun + waves.
   Pre-cropped 2.95:1 banner (approved window: both wingtips, sun, waves). object-fit: cover.
   JPEG is the <img> src so Safari and Chrome do not depend on CSS image-set(). */
.hero {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.hero-art {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 2.95 / 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background-color: var(--navy-deep);
  border-bottom: 6px solid var(--gold-sunrise);
}
.hero-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.hero .wrap {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.05rem 0 1.25rem;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}
.hero .panel {
  max-width: none;
  width: 100%;
}
@media (max-width: 700px) {
  .hero-art { min-height: 200px; }
  .hero .wrap { padding: .85rem 0 1.1rem; }
}

.brand { font-family: "Bree Serif", Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 700; margin: 0 0 .3em; letter-spacing: .5px; color: var(--navy); line-height: 1.15; }
.brand .dot { color: var(--gold-sunrise); }
.headline {
  font-family: "Bree Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  font-weight: 600;
  margin: 0.15em 0 0.7rem;
  color: var(--navy);
  max-width: none;
}
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); font-weight: 400; margin: 0 0 1rem; color: var(--muted); }
.soon { display: inline-block; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-sunrise); color: var(--navy); padding: .2rem .75rem; border-radius: 999px; margin-bottom: .8rem; }

.store-badge { display: inline-block; line-height: 0; flex: none; }
.store-badge img { display: block; height: 40px; width: auto; max-width: none; }
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin: .15rem 0 0;
}
.store-coming-soon {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem; min-width: 190px; padding: .55rem 1rem; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.55); cursor: default;
}
.badge small { display: block; font-size: .72rem; line-height: 1.1; opacity: .85; }
.badge strong { display: block; font-size: 1.1rem; line-height: 1.15; }
.badge svg { width: 26px; height: 26px; flex: none; fill: #fff; }

/* Same pill buttons as hoppingcrow (Legends / Yacht Race). */
.btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 650;
  text-decoration: none; border: 2px solid transparent; transition: .15s ease;
}
.btn-primary { background: var(--navy); color: var(--gold-soft); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(13,59,102,.35); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(13,59,102,.06); color: var(--navy); }

/* ---- Lower section ---- */
.band { background: transparent; }
.band .wrap { width: min(1100px, 100% - 2rem); margin: 0 auto; padding: 1.4rem 0 2.4rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid rgba(217,192,138,.7);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(13,59,102,.06);
}
.card h2 { font-size: 1.45rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  background: rgba(255,253,248,.85);
  color: var(--muted);
}
footer .wrap { width: min(1100px, 100% - 2rem); margin: 0 auto; padding: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
footer nav a { margin-right: 1.25rem; color: var(--navy); font-weight: 600; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer .fine { font-size: .95rem; }
footer .fine a { color: var(--sea); }

/* ---- Privacy page ---- */
.page-head { background: var(--navy-deep) url("../img/albatross-golden-hour-1152.jpg") center 32% / cover no-repeat; padding: 3.5rem 1rem 2.25rem; }
.page-head .panel { width: min(820px, 100%); margin: 0 auto; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; }
.page-head a { color: var(--sea); }
.doc { padding: 2rem 1rem 3rem; }
.doc article { width: min(820px, 100%); margin: 0 auto; background: var(--card); border: 1px solid rgba(217,192,138,.7); border-radius: var(--radius); padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem) 2rem; box-shadow: 0 8px 24px rgba(13,59,102,.06); }
.doc article h1 { display: none; }
.doc h2 { font-size: 1.6rem; margin-top: 1.6em; padding-top: .3em; border-top: 4px solid var(--gold); color: var(--navy); }
.doc h2:first-of-type { margin-top: .4em; }
.doc .table-wrap { overflow-x: auto; margin: 1rem 0; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid #e3e7ee; }
.doc th { background: var(--navy); color: #fff; font-weight: 700; }
.doc tr:nth-child(even) td { background: #fbf8f1; }
.doc li { margin: .3rem 0; }
.doc code { font-size: .95em; background: #f1efe9; padding: .05em .3em; border-radius: 4px; }
.doc .placeholder { background: #FFE9A8; border-radius: 4px; padding: 0 .25em; font-size: .9em; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Hopping Crow parent-brand bar */
.crowbar { background: transparent; color: var(--navy); text-align: left; padding: .4rem 1rem; font-size: .95rem; }
.crowbar a { color: var(--navy); font-weight: 700; text-decoration: none; }
.crowbar a:hover, .crowbar a:focus { text-decoration: underline; }
