/* trailheadinteractive.app - studio home and game pages, in the game's own
 * papercraft look: cream paper, ink, and plates taped in like snapshots. */

/* ---------------------------------------------------------------- fonts -- */
@font-face { font-family: 'Bebas Neue'; src: url(/fonts/bebas-neue-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; src: url(/fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 700; src: url(/fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat'; font-weight: 700; src: url(/fonts/caveat-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Oswald'; font-weight: 500; src: url(/fonts/oswald-latin-500-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Oswald'; font-weight: 700; src: url(/fonts/oswald-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Outfit'; font-weight: 400; src: url(/fonts/outfit-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Outfit'; font-weight: 600; src: url(/fonts/outfit-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Outfit'; font-weight: 700; src: url(/fonts/outfit-latin-700-normal.woff2) format('woff2'); font-display: swap; }

/* --------------------------------------------------------------- shared -- */
:root {
  --bg: #F3EBDA; --bg2: #EADFC8; --ink: #2E2619; --muted: #6B5E49; --rule: #D6C8AC;
  --accent: #2F5D3E; --accent-ink: #FFF; --warm: #B5652B;
  --display: 'Bebas Neue', Impact, sans-serif; --body: 'Libre Caslon Text', Georgia, serif;
  --ui: 'Outfit', system-ui, sans-serif; --hand: 'Caveat', 'Bradley Hand', cursive;
  --radius: 4px; --wrap: 1140px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
:where(ul[role=list], ol) { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.wrap.narrow { max-width: 760px; }
.band { padding: clamp(56px, 9vw, 112px) 0; }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 16px max(20px, env(safe-area-inset-left, 0px)); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.corner-logo { display: block; width: auto; height: clamp(88px, 11vw, 132px); filter: drop-shadow(0 4px 10px rgba(40,25,5,.22)); }
.top nav { padding-top: 14px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); font-family: var(--ui); font-size: 0.92rem; }
.top nav a { white-space: nowrap; color: inherit; text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .top nav a:not(:first-child) { display: none; } }

/* hero */
.hero { position: relative; }
.kicker { font-family: var(--ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--warm); margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 18px; }
.hero-game h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-family: var(--ui);
  font-weight: 600; font-size: 1rem; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn { max-width: 100%; overflow-wrap: anywhere; padding-block: 10px; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-store { background: var(--ink); border-color: var(--ink); color: var(--bg); }
span.btn-store { cursor: default; }
span.btn-store:hover { filter: none; }
.logo { width: clamp(150px, 20vw, 230px); margin-bottom: 18px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }

/* sections */
.section-h { font-family: var(--ui); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--warm); margin-bottom: 16px; }
.big { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; max-width: 30ch; margin-bottom: 0.8em; }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.2fr 0.8fr; } }
.split-copy p:not(.big) { max-width: 56ch; }
.split-art { max-width: 340px; justify-self: center; }
.split-art figcaption, .plates figcaption, .landmarks figcaption { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* game cards (studio home) */
.line-head { margin-bottom: 22px; }
.line-name { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0.01em; margin-bottom: 6px; }
.line-head p { max-width: 52ch; color: var(--muted); margin: 0; }
.more-games { margin: 28px 0 0; font-family: var(--ui); color: var(--muted); }
.games { display: grid; gap: 24px; }
@media (min-width: 820px) { .games { grid-template-columns: 1fr 1fr; } }
.game-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.gc-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gc-body { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.gc-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.gc-kind { font-family: var(--ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.game-card h3 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: 0.02em; margin-bottom: 6px; }
.gc-line { margin-bottom: 12px; }
.tag { display: inline-block; font-family: var(--ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; background: var(--bg2); color: var(--accent); margin: 0; }
.game-card.next { justify-content: center; }
.game-card.next h3 { opacity: 0.7; }

/* steps */
.steps { display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps.walk { grid-template-columns: 1fr; gap: 22px; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--display); font-size: 1.6rem;
  background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; }
.steps h3, .feats h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.feats h3 { font-size: 1.7rem; }

/* plates */
.plates { display: grid; gap: 18px; max-width: var(--wrap); margin: 36px auto; padding: 0 max(20px, env(safe-area-inset-left, 0px));
  grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .plates { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.plates img, .landmarks img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.plates figcaption b, .landmarks figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.landmarks { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
@media (max-width: 620px) { .landmarks { grid-template-columns: 1fr 1fr; } .landmarks li:last-child { display: none; } }

.pull { margin: 24px 0 0; padding: 0; max-width: 46ch; }
.pull p { font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; }
.pull cite { font-family: var(--ui); font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* regions */
.regions { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 32px; }
.regions li { position: relative; overflow: hidden; }
.regions img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.regions div { padding: 12px 2px 4px; font-family: var(--ui); }
.regions b { display: block; font-weight: 600; line-height: 1.25; }
.regions span { display: block; line-height: 1.35; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.regions .free span { color: var(--accent); font-weight: 600; }

.feats { display: grid; gap: 28px; }
@media (min-width: 760px) { .feats { grid-template-columns: repeat(3, 1fr); } }

/* footer */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-family: var(--ui); font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: inherit; }

/* ------------------------------------------------------- paper look -- */
body { background-color: var(--bg); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(/img/paper.png); opacity: 0.1; mix-blend-mode: multiply; }
.hero { padding: 150px 0 40px; }
.hero > * { max-width: var(--wrap); margin: 0 auto; }
.hero { display: grid; gap: 36px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.15fr; align-items: center; max-width: var(--wrap); margin: 0 auto; padding-top: 168px; }
  .hero .hero-art { order: 2; }
}
.hero-art { background: #FBF7EE; padding: 12px 12px 14px; box-shadow: 0 2px 0 var(--rule), 0 18px 40px rgba(60,40,10,.22); transform: rotate(1.2deg); position: relative; }
.hero-art::before, .plate-frame::before, .plates figure::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(233, 218, 168, .78); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 2; }
.hero-game .hero-art img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 760px) { .hero-game .hero-art img { aspect-ratio: 4 / 5; } }
.hero-copy h1 { color: var(--ink); }
.band:nth-of-type(even) { background: rgba(255,255,255,.35); border-block: 1px dashed var(--rule); }
.game-card { background: #FBF7EE; box-shadow: 0 14px 30px rgba(60,40,10,.16); }
.game-card:hover { transform: translateY(-3px); transition: transform .2s; }
.game-card.next { background: transparent; box-shadow: none; border: 2px dashed var(--rule); }
.plate-frame, .plates figure { position: relative; background: #FBF7EE; padding: 10px 10px 4px; box-shadow: 0 12px 26px rgba(60,40,10,.2); }
.plate-frame { transform: rotate(-2deg); }
.plates li:nth-child(odd) figure { transform: rotate(-1.4deg); }
.plates li:nth-child(even) figure { transform: rotate(1.2deg); margin-top: 18px; }
.plates figcaption, .split-art figcaption { font-family: var(--hand); font-size: 1.3rem; line-height: 1.1; color: var(--ink); padding: 6px 2px 4px; }
.plates figcaption b { font-weight: 700; font-size: 1.3rem; }
.plates figcaption span { font-size: 1.05rem; color: var(--muted); }
.landmarks figure { border: 1px solid var(--ink); padding: 8px; background: #FBF7EE; }
.landmarks figcaption { font-family: var(--hand); font-size: 1.15rem; line-height: 1.1; }
.landmarks figcaption b { font-size: 1.25rem; }
.pull { border-left: 4px solid var(--warm); padding-left: 22px; }
.regions li { background: #FBF7EE; padding: 8px; box-shadow: 0 8px 18px rgba(60,40,10,.12); }
.regions div { padding: 10px 6px 4px; }
.regions .free { outline: 3px solid var(--accent); outline-offset: -3px; }
.step-n { background: transparent; color: var(--warm); border: 2px solid var(--warm); }
.club { background: var(--accent) !important; color: #F3EBDA; border: 0 !important; }
.club .section-h { color: #E9C98E; }
.club strong { color: #fff; }

/* ------------------------------------------------- The Way's own page -- */
/* The studio's paper, wearing The Way's look: Cinzel and Marcellus, warm
 * parchment, terracotta and gold, with the night blue of its Bethlehem sky. */
@font-face { font-family: 'Cinzel'; font-weight: 600; src: url(/fonts/cinzel-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; font-weight: 700; src: url(/fonts/cinzel-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Marcellus'; src: url(/fonts/marcellus-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url(/fonts/alegreya-sans-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; src: url(/fonts/alegreya-sans-latin-400-italic.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; font-weight: 700; src: url(/fonts/alegreya-sans-latin-700-normal.woff2) format('woff2'); font-display: swap; }

.page-way { --bg: #F2E6CF; --bg2: #E8D6B4; --ink: #2B2117; --muted: #6E5A40; --rule: #D4BE96;
  --accent: #A2482A; --accent-ink: #fff; --warm: #A2482A; --gold: #B8892E; --night: #1F2A4A;
  --display: 'Cinzel', Georgia, serif; --body: 'Alegreya Sans', system-ui, sans-serif; --ui: 'Alegreya Sans', system-ui, sans-serif; }
.page-way body, body.page-way { font-size: 1.12rem; }
.page-way .hero h1, .page-way .steps h3, .page-way .game-card h3 { font-family: 'Marcellus', Georgia, serif; text-transform: none; letter-spacing: 0; }
.page-way .hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; }
.page-way .section-h, .page-way .kicker { font-family: 'Cinzel', serif; letter-spacing: 0.14em; }
.page-way .big { font-family: 'Marcellus', Georgia, serif; }
.way-title { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: clamp(3.4rem, 9vw, 6rem); line-height: 0.95;
  letter-spacing: 0.06em; color: var(--night); margin: 0; }
.way-sub { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.95rem;
  color: var(--gold); margin: 6px 0 22px; }
.way-sub span { letter-spacing: 0; }
.page-way .actions .tag { align-self: center; background: transparent; border: 1px solid var(--gold); color: var(--ink); }
.page-way .btn-store { background: var(--night); border-color: var(--night); color: #F2E6CF; }
.page-way .step-n { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--gold); border-color: var(--gold); }
@media (min-width: 900px) {
  .hero-way { grid-template-columns: 0.8fr 1.2fr !important; }
  .hero-way .hero-art { order: 0 !important; max-width: 400px; justify-self: center; }
}
.hero-way .hero-art { transform: rotate(-1.5deg); max-width: 400px; justify-self: center; width: 100%; }
.page-way .hero-game .hero-art img { aspect-ratio: 9 / 16; }
@media (max-width: 760px) { .page-way .hero-game .hero-art img { aspect-ratio: 4 / 5; object-position: 50% 30%; } }

.way-stations { padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.way-stations figcaption { font-family: var(--body) !important; font-size: 0.98rem !important; line-height: 1.45 !important; padding: 10px 4px 6px; }
.way-stations figcaption b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.25rem !important; margin: 2px 0 4px; }
.way-stations figcaption span:last-child { display: block; color: var(--muted); }
.site-tag { display: inline-block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); }
@media (max-width: 620px) { .way-stations { grid-template-columns: 1fr !important; } .way-stations li:last-child { display: block !important; } .way-stations li { max-width: 340px; margin: 0 auto; } }

@media (min-width: 760px) { .way-road { grid-template-columns: repeat(3, 1fr) !important; max-width: 900px !important; } }
@media (max-width: 759px) { .way-road li:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; } }
.moment-list { font-family: 'Marcellus', serif; color: var(--muted); max-width: 60ch; }
.page-way .plates figcaption { font-family: 'Marcellus', serif; }
.page-way .plates figcaption b { font-weight: 400; }
.page-way .plates figcaption span { display: block; font-family: var(--body); font-size: 0.95rem; }

.travel-h { font-family: 'Cinzel', serif; font-size: 1.05rem; letter-spacing: 0.08em; margin: 26px 0 10px; }
.travel li { padding: 10px 0; border-top: 1px dashed var(--rule); }
.travel li:last-child { border-bottom: 1px dashed var(--rule); }
.travel b { display: inline-block; min-width: 9.5em; font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.15rem; }

.regions-way { display: grid; gap: 28px; }
@media (min-width: 760px) { .regions-way { grid-template-columns: 1fr 1fr; gap: 40px; } }
.regions-way > div { background: #FBF5E8; padding: 26px 28px; box-shadow: 0 12px 26px rgba(60,40,10,.14); }
.regions-way h3 { font-family: 'Cinzel', serif; font-size: 1.7rem; color: var(--night); }
.rw-sub { color: var(--muted); margin: 4px 0 16px; }
.route { counter-reset: r; }
.route li { counter-increment: r; position: relative; padding: 9px 0 9px 44px; font-family: 'Marcellus', serif; font-size: 1.08rem; }
.route li::before { content: counter(r); position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 700 0.8rem/1 'Cinzel', serif; }
.route li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 37px; bottom: -7px; border-left: 2px dashed var(--rule); }

.page-way .club { background: var(--night) !important; color: #F2E6CF; }
.page-way .club .section-h { color: #E3C27A; }
.page-way .club strong { color: #E3C27A; }
