/* Gordon Hates Camping. A trail-sign world: pine-green routed signs on a bone page,
   the orange of Gordon's tent as the one loud colour. One column on a phone,
   two columns from 760px. */

@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage-grotesque.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --pine: #1e3a2e;
  --pine-deep: #15302a;
  --gold: #e8a33d;
  --bone: #f3efe6;
  --paper: #fbf9f3;
  --ink: #1b211e;
  --tent: #e0522b;
  --tent-dark: #c8431f;
  --moss: #7c8c3c;
  --sand: #d9c9a3;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--tent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.banner { background: var(--ink); color: var(--bone); font-size: .8125rem; text-align: center; padding: 7px 16px; text-wrap: balance; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0 8px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 800 1.2rem/1 var(--display); letter-spacing: -0.01em; }
.mark:hover { text-decoration: none; }
.mark img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tent); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: 600 1rem/1 var(--body); padding: 15px 22px; border-radius: 999px; background: var(--tent); color: #fff; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--tent-dark); text-decoration: none; transform: translateY(-1px); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--bone); }
.btn.on-dark.alt { color: var(--bone); box-shadow: inset 0 0 0 2px rgba(243,239,230,.7); }
.btn.on-dark.alt:hover { background: var(--bone); color: var(--pine); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hero */
.hero { display: grid; gap: 28px; padding: 26px 0 36px; align-items: center; }
.hero h1, .pagehead h1 { font-size: clamp(2.5rem, 8.2vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--tent); }
.lede { margin-top: 18px; max-width: 34em; font-size: 1.15rem; }
.photo { position: relative; border-radius: 22px; overflow: hidden; background: var(--pine); box-shadow: 0 18px 40px -22px rgba(21,48,42,.7); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--bone); color: var(--ink); font: 600 .85rem/1.2 var(--body); padding: 7px 12px; border-radius: 999px; }
.hero .photo { aspect-ratio: 6 / 5; transform: rotate(1.6deg); }
.hero > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero > *:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

.band { margin: 8px 0 44px; }
.band .photo { aspect-ratio: 2 / 1; border-radius: 26px; }
.band img { object-position: 30% 62%; }

/* page heads (inner pages) */
.pagehead { padding: 30px 0 26px; }
.pagehead .lede { max-width: 38em; }
.crumbs { font-size: .9rem; font-weight: 600; margin-bottom: 14px; color: #3d4540; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* signs */
.sign { position: relative; background: var(--pine); color: var(--bone); border-radius: 26px; padding: clamp(24px, 5vw, 44px); margin-bottom: 28px; }
.sign::before { content: ""; position: absolute; inset: 9px; border: 2px solid rgba(232,163,61,.55); border-radius: 19px; pointer-events: none; }
.sign > * { position: relative; }
.sign h2 { font-size: clamp(2rem, 6vw, 3.1rem); }
.sign .sub { margin-top: 12px; max-width: 36em; color: rgba(243,239,230,.86); }
.paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--sand); }
.paper .sub { color: #3d4540; }
.note { margin-top: 14px; font-size: .9rem; opacity: .85; }

/* concerns board */
.list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.row { display: grid; gap: 8px 16px; grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(243,239,230,.08); }
.row .name { font: 800 1.15rem/1.15 var(--display); }
.row .quip { grid-column: 1 / -1; font-size: .95rem; color: rgba(243,239,230,.8); }
.row .count { font: 800 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.row .count small { display: block; font: 500 .72rem/1.2 var(--body); opacity: .75; margin-top: 3px; }
.bar { grid-column: 1 / -1; height: 10px; background: rgba(243,239,230,.14); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--tent); border-radius: 99px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.row .vote { grid-column: 1 / -1; justify-self: start; }
.vote { min-height: 44px; padding: 11px 18px; font-size: .95rem; }
.vote.done { background: var(--moss); }
.ruling { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--tent); color: #fff; font-weight: 600; }
.ruling b { font-family: var(--display); font-weight: 800; }

/* ask gordon */
.ask { display: grid; gap: 28px; align-items: start; }
.ask .photo { aspect-ratio: 4 / 3; }
.field { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.field input { flex: 1 1 220px; min-height: 52px; font: 500 1rem var(--body); padding: 12px 18px; border-radius: 999px; border: 2px solid var(--pine); background: #fff; color: var(--ink); }
.answer:empty { display: none; }
.answer { margin-top: 20px; font: 800 clamp(1.6rem, 5vw, 2.2rem)/1.1 var(--display); text-wrap: balance; color: var(--pine); }
.answer small { display: block; font: 600 .8rem/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--tent-dark); margin-bottom: 8px; }
#makeCard { margin-top: 18px; }
.cardout { margin-top: 18px; display: none; }
.cardout.show { display: block; }
.cardout img { width: min(300px, 100%); border-radius: 14px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.cardout p { margin-top: 10px; font-size: .9rem; color: #3d4540; }

/* game */
.game { display: grid; gap: 24px; align-items: start; }
.stage { width: min(400px, 100%); justify-self: center; position: relative; }
canvas#runCanvas { width: 100%; aspect-ratio: 360 / 520; display: block; border-radius: 18px; touch-action: none; background: #9bab5a; box-shadow: 0 0 0 3px rgba(243,239,230,.35); cursor: ew-resize; }
.how { display: grid; gap: 12px; margin-top: 18px; padding-left: 1.2em; margin-bottom: 0; }
.how li { color: rgba(243,239,230,.88); }
.best { margin-top: 14px; font-weight: 600; }

/* doors (home) */
.doors { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.door a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--sand); transition: transform .15s ease, box-shadow .15s ease; }
.door a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--tent); }
.door .ph { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--pine); display: grid; place-items: center; }
.door .ph img { width: 100%; height: 100%; object-fit: cover; }
.door .ph svg { width: 62%; height: 62%; }
.door h3 { font-size: 1.3rem; }
.door p { margin-top: 5px; font-size: .95rem; color: #3d4540; }

/* video player (click to load) */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--pine-deep); box-shadow: 0 18px 40px -22px rgba(21,48,42,.7); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { appearance: none; border: 0; padding: 0; margin: 0; position: absolute; inset: 0; width: 100%; cursor: pointer; color: var(--bone); text-align: left; font: inherit; background: var(--pine-deep); overflow: hidden; }
.poster:disabled { cursor: default; }
.poster .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.poster.topo { background-color: var(--pine-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260' fill='none' stroke='%23f3efe6' stroke-opacity='.09' stroke-width='2'%3E%3Cpath d='M-10 40 C60 10 110 70 190 40 S330 0 430 38'/%3E%3Cpath d='M-10 78 C60 48 110 108 190 78 S330 38 430 76'/%3E%3Cpath d='M-10 116 C60 86 110 146 190 116 S330 76 430 114'/%3E%3Cpath d='M-10 154 C60 124 110 184 190 154 S330 114 430 152'/%3E%3Cpath d='M-10 192 C60 162 110 222 190 192 S330 152 430 190'/%3E%3Cpath d='M-10 230 C60 200 110 260 190 230 S330 190 430 228'/%3E%3C/svg%3E"); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,48,42,.92) 0%, rgba(21,48,42,.25) 55%, rgba(21,48,42,0) 100%); pointer-events: none; }
.poster .ring { position: absolute; inset: 9px; border: 2px solid rgba(232,163,61,.55); border-radius: 15px; z-index: 1; pointer-events: none; }
.poster .cap { position: absolute; left: clamp(18px, 4vw, 34px); right: clamp(18px, 4vw, 34px); bottom: clamp(16px, 4vw, 30px); z-index: 2; }
.poster .cap b { display: block; font: 800 clamp(1.7rem, 6vw, 3rem)/1 var(--display); letter-spacing: -.015em; }
.poster .cap span { display: block; margin-top: 6px; font: 500 clamp(.85rem, 2.4vw, 1rem)/1.3 var(--body); color: rgba(243,239,230,.88); }
.poster .play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -50px 0 0 -38px; border-radius: 50%; background: var(--tent); z-index: 2; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.6); transition: transform .15s ease, background .15s ease; }
.poster .play svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
.poster:hover .play { transform: scale(1.06); background: var(--tent-dark); }
.poster:disabled .play { display: none; }
.alsoyt { margin-top: 12px; font-size: .95rem; }
.alsoyt a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* trips */
.days { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.daycard a { display: grid; gap: 0; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 2px var(--sand); }
.daycard a:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--tent); }
.daycard .pic { aspect-ratio: 16 / 9; background: var(--pine-deep); position: relative; overflow: hidden; }
.daycard .pic img { width: 100%; height: 100%; object-fit: cover; }
.daycard .pic.topo { background-color: var(--pine-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260' fill='none' stroke='%23f3efe6' stroke-opacity='.09' stroke-width='2'%3E%3Cpath d='M-10 40 C60 10 110 70 190 40 S330 0 430 38'/%3E%3Cpath d='M-10 78 C60 48 110 108 190 78 S330 38 430 76'/%3E%3Cpath d='M-10 116 C60 86 110 146 190 116 S330 76 430 114'/%3E%3Cpath d='M-10 154 C60 124 110 184 190 154 S330 114 430 152'/%3E%3Cpath d='M-10 192 C60 162 110 222 190 192 S330 152 430 190'/%3E%3Cpath d='M-10 230 C60 200 110 260 190 230 S330 190 430 228'/%3E%3C/svg%3E"); display: grid; place-items: center; }
.daycard .pic .big { font: 800 clamp(2.4rem, 10vw, 4rem)/1 var(--display); color: var(--bone); letter-spacing: -.02em; }
.daycard .body { padding: 16px 20px 20px; }
.daycard h3 { font-size: 1.4rem; }
.daycard p { margin-top: 6px; color: #3d4540; }
.daycard .meta { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--pine); }
.chip { display: inline-block; font: 600 .7rem/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--sand); color: var(--ink); margin-left: 8px; vertical-align: middle; }
.facts { margin: 18px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 8px 0 28px; }

/* ratings */
.rate { margin-top: 24px; display: grid; gap: 20px; }
.rate fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rate legend { padding: 0; font: 800 1.25rem/1.1 var(--display); }
.rate legend small { display: block; font: 500 .9rem/1.3 var(--body); margin-top: 4px; opacity: .8; }
.scale { display: flex; gap: 6px; margin-top: 10px; }
.scale label { position: relative; cursor: pointer; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: rgba(243,239,230,.5); background: rgba(243,239,230,.08); transition: background .15s ease, color .15s ease; }
.scale label:hover { background: rgba(243,239,230,.16); }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.scale label.on { color: var(--gold); }
.scale.drops label.on { color: #9ad0e8; }
.ico { width: 30px; height: 30px; fill: transparent; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.scale label.on .ico { fill: currentColor; }
.avg { font-weight: 600; }
.rate .status { min-height: 1.4em; font-weight: 600; }
.avgline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-weight: 600; font-size: .95rem; }

/* merch */
.goods { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.goods li { background: rgba(243,239,230,.09); border-radius: 18px; padding: 14px 14px 16px; display: flex; flex-direction: column; }
.goods svg.mock { width: 100%; height: auto; display: block; }
.goods b { display: block; margin-top: 10px; font: 800 1.02rem/1.15 var(--display); }
.goods .tally { margin-top: 4px; font-size: .88rem; color: rgba(243,239,230,.78); min-height: 1.3em; }
.goods .btn { margin-top: 12px; align-self: stretch; padding: 12px 14px; font-size: .92rem; min-height: 44px; }
.goods .btn.done { background: var(--moss); }

/* prose pages */
.prose { max-width: 40em; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: 1.7rem; margin: 30px 0 10px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--sand); font-weight: 600; text-decoration: none; }
.links a:hover { box-shadow: inset 0 0 0 2px var(--tent); text-decoration: none; }

/* footer */
footer { padding: 24px 0 56px; display: grid; gap: 18px; font-size: .95rem; border-top: 2px solid var(--sand); margin-top: 18px; }
footer .who { display: inline-flex; align-items: center; gap: 12px; }
footer .who img { width: 44px; height: 44px; border-radius: 50%; }
footer b { font-family: var(--display); font-weight: 800; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
footer .fine { color: #3d4540; max-width: 44em; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 48px; padding-top: 44px; }
  .band .photo { aspect-ratio: 16 / 6; }
  .row { grid-template-columns: 1fr minmax(120px, 28%) auto auto; }
  .row .name { grid-column: 1; }
  .row .quip { grid-column: 1; grid-row: 2; }
  .row .bar { grid-column: 2; grid-row: 1 / span 2; }
  .row .count { grid-column: 3; grid-row: 1 / span 2; min-width: 4.2em; }
  .row .vote { grid-column: 4; grid-row: 1 / span 2; justify-self: end; }
  .ask { grid-template-columns: .9fr 1.1fr; gap: 44px; }
  .game { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  .goods { grid-template-columns: repeat(4, 1fr); }
  .doors { grid-template-columns: 1fr 1fr; }
  .days { grid-template-columns: 1fr 1fr; }
  .rate { grid-template-columns: 1fr 1fr; align-items: start; }
  .rate .actions { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr auto; align-items: start; }
  footer .fine { grid-column: 1 / -1; }
  footer .who { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > *, .bar i, .btn, .poster .play, .door a { animation: none; transition: none; }
}
@media print {
  .banner, .nav, .cta, .btn, canvas { display: none !important; }
  body { background: #fff; }
}

/* video blocks on trip day pages */
.vid + .vid { margin-top: 8px; }
.vidh { font-size: 1.5rem; margin: 30px 0 14px; }
.player .soon { position: absolute; z-index: 3; top: 16px; left: 16px; margin: 0; background: var(--gold); color: var(--ink); font: 700 .9rem/1 var(--body); padding: 9px 14px; border-radius: 99px; }
.sign.paper .facts { margin-top: 6px; }
