/* Razorback Maps: the website's pages. The map's own styles are in map.css. */
:root {
  --forest: #233d34;
  --forest-2: #2f5244;
  --moss: #5b8a5a;
  --tussock: #f6db94;
  --orange: #e87944;
  --orange-ink: #c4682e;
  --paper: #fafaf5;
  --surface: #ffffff;
  --ink: #233d34;
  --muted: #65736a;
  --line: #d6ddd2;
  --chip: #ecf0e8;
  --shadow: 0 1px 2px rgb(20 35 30 / 6%), 0 8px 28px rgb(20 35 30 / 10%);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1f1d; --surface: #242a27; --ink: #e2e9e4; --muted: #98a59d; --line: #3a4440;
    --chip: #303834; --orange-ink: #ee9262; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 28px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand b { font-weight: 800; }
.brand img { border-radius: 9px; box-shadow: 0 1px 3px rgb(20 35 30 / 18%); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav a:not(.button):hover { color: var(--orange-ink); }
@media (max-width: 720px) { .nav a:not(.button) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--orange); color: #fff !important; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; box-shadow: 0 6px 18px rgb(232 121 68 / 30%); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(232 121 68 / 36%); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; box-shadow: none; }
.button.ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.button.light { background: rgb(255 255 255 / 14%); border: 1.5px solid rgb(255 255 255 / 45%); box-shadow: none; }
.button[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; background: #16261f; }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; }
.hero picture img, .hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 20 16 / 10%) 0%, rgb(10 20 16 / 35%) 40%, rgb(10 20 16 / 82%) 100%), linear-gradient(90deg, rgb(10 20 16 / 45%) 0%, rgb(10 20 16 / 0%) 65%); }
.hero .wrap { padding: 96px 0 64px; }
.hero h1 { max-width: 13ch; text-shadow: 0 2px 24px rgb(0 0 0 / 35%); }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40ch; color: rgb(255 255 255 / 92%); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tussock); margin-bottom: 14px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
section.alt .card { background: var(--paper); box-shadow: none; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--forest-2); margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .icon { color: var(--tussock); } }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.flip > :first-child { order: 2; }
.shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #1d2a24; aspect-ratio: 16 / 10; }
.shot picture { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* Plan on the web, go with the app */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 26px; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .steps .card::before { background: var(--tussock); color: var(--forest); } }

/* App band */
.app-band { background: linear-gradient(135deg, var(--forest) 0%, #1a2e27 100%); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.app-band p { color: rgb(255 255 255 / 82%); }
.app-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pro { background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 16px; padding: 24px; }
.pro h3 { color: var(--tussock); }
.pro ul { margin: 0; padding-left: 20px; color: rgb(255 255 255 / 88%); }
.pro li { margin: 6px 0; }
@media (max-width: 860px) { .app-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Text pages */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.45rem; margin-top: 2em; }
.page li { margin: 6px 0; }
.page .updated { color: var(--muted); font-size: .95rem; }
.note { background: var(--chip); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { max-width: 36ch; margin-top: 12px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--orange-ink); }
.fine { margin-top: 28px; font-size: .82rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* App page (about): three phone pictures, and the "Get notified" form. */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.trio figure { margin: 0; }
.trio .phone img { display: block; width: 100%; height: auto; aspect-ratio: 430 / 932; object-fit: cover; border-radius: 28px; border: 6px solid #16261f; box-shadow: 0 18px 48px rgb(10 20 16 / 22%); background: #16261f; }
.trio figcaption { padding: 18px 6px 0; }
.trio h2 { font-size: 1.2rem; margin: 0 0 6px; }
.trio p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 48px; } }
.app-band { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; text-align: center; }
.notify { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.notify input[type=email] { flex: 1 1 240px; max-width: 320px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 30%); background: rgb(255 255 255 / 10%); color: #fff; font: inherit; }
.notify input[type=email]::placeholder { color: rgb(255 255 255 / 60%); }
.notify select { min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 30%); background: rgb(255 255 255 / 10%); color: #fff; font: inherit; }
.notify select option { color: #111; }
.notify .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.notify-status { flex-basis: 100%; min-height: 1.4em; margin: 4px 0 0; color: rgb(255 255 255 / 86%); }
.app-band .fine { color: rgb(255 255 255 / 62%); margin-top: 10px; }
.app-band .fine a { color: inherit; }
/* Beside the sign-up: the app's icon and name; stacked on phones. */
.app-band.with-phone { max-width: 1000px; grid-template-columns: 1.4fr 1fr; text-align: left; gap: 48px; }
.app-band.with-phone .notify { justify-content: flex-start; }
.brand-mark { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.brand-mark img { width: 100%; max-width: 200px; height: auto; border-radius: 22%; box-shadow: 0 18px 48px rgb(0 0 0 / 35%); }
.brand-mark p { margin: 8px 0 0; font-size: 1.6rem; color: #fff; letter-spacing: -.01em; }
.brand-mark span { font-size: .9rem; color: rgb(255 255 255 / 62%); }
@media (max-width: 860px) { .app-band.with-phone { grid-template-columns: 1fr; text-align: center; } .app-band.with-phone .notify { justify-content: center; } .brand-mark { order: -1; } .brand-mark img { max-width: 120px; } }
/* Four phones: four across, two on tablets, one on phones. */
.trio.four { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .trio.four { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; gap: 40px 32px; } }
@media (max-width: 600px) { .trio.four { grid-template-columns: 1fr; max-width: 360px; gap: 48px; } }

/* Walk, hut and Te Araroa pages (lib/seo-pages.mjs) */
.place-page h1 { margin-bottom: 12px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.place-page .lead { font-size: 1.12rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.facts dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.place-page .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0; }
.line-map { margin: 26px 0; }
.line-svg { width: 100%; height: auto; background: var(--chip); border-radius: 14px; border: 1px solid var(--line); }
.line-svg path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.line-svg .start { fill: #fff; stroke: var(--forest); stroke-width: 3; }
.line-svg .hut-dot circle { fill: var(--forest); stroke: #fff; stroke-width: 2; }
.line-map figcaption { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.link-list { list-style: none; padding: 0; margin: 10px 0 24px; columns: 2 260px; column-gap: 28px; }
.link-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.link-list .note-line { font-size: .86rem; color: var(--muted); }
.tag { font-size: .72rem; font-weight: 700; background: var(--chip); color: var(--forest-2); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.place-page blockquote { margin: 12px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--ink); }
.region-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.region-nav a { font-size: .86rem; background: var(--chip); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 10px; font-weight: 600; }

/* The one page's folded privacy policy and credits (opened when linked to). */
details.legal > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.legal > summary::-webkit-details-marker { display: none; }
details.legal > summary h2 { margin: 0; }
details.legal > summary::after { content: '▸'; font-size: 1.1rem; opacity: .7; }
details.legal[open] > summary::after { content: '▾'; }
details.legal[open] > summary { margin-bottom: 12px; }

/* Read by screen readers, not shown (as in map.css). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
