/* saplinggame.com: one stylesheet for the home page and the support and privacy pages. Colors from the game's title screen. */
:root {
  --night: #101712; --deep: #18221a; --ink: #f1f3ee; --soft: #b9c2b6; --line: rgba(255, 255, 255, 0.12);
  --leaf: #8fd19b; --ember: #f0a35e;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: var(--leaf); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

/* The top bar, over the hero on the home page. */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, env(safe-area-inset-left)) 0; max-width: 1200px; margin: 0 auto; }
.bar .home { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.bar .home img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav a { color: var(--ink); text-decoration: none; margin-left: 20px; font-size: 15px; opacity: 0.85; }
.bar nav a:hover { opacity: 1; }

/* Hero: the world full-bleed, the vine wordmark over it. */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 11, 0.55) 0%, rgba(10, 14, 11, 0.15) 38%, rgba(10, 14, 11, 0.35) 70%, var(--night) 100%); }
.hero .inner { padding: 120px 16px 72px; max-width: 760px; }
.wordmark { width: min(440px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)); }
.tagline { font: italic 400 clamp(1.4rem, 3.2vw, 2rem)/1.3 var(--serif); margin: 18px 0 8px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.lede { color: #e4e9e1; margin: 0 auto 28px; max-width: 560px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.get { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.badge img { height: 54px; width: auto; }
.badge.soon { pointer-events: none; }
.soon-note { font-size: 14px; color: var(--soft); }
.facts { font-size: 14px; color: #dfe5dc; letter-spacing: 0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }

/* Sections. */
section { padding: clamp(56px, 9vw, 104px) 16px; }
.wrap { max-width: 1120px; margin: 0 auto; }
h2 { font: 500 clamp(1.7rem, 3.6vw, 2.5rem)/1.15 var(--serif); margin: 0 0 14px; letter-spacing: -0.01em; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--ember); margin: 0 0 10px; font-weight: 600; }
.intro { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.intro p { color: var(--soft); margin: 0; }

.film { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); border: 1px solid var(--line); background: #000;
  aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }

.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .shot { order: 2; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feature p { color: var(--soft); margin: 0 0 12px; }
.feature ul { margin: 0; padding: 0; list-style: none; color: var(--soft); }
.feature li { padding-left: 22px; position: relative; margin: 6px 0; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

.trees { background: var(--deep); border-block: 1px solid var(--line); }
.tree-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tree-list li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 15px; }
.tree-list li.fun { border-color: rgba(240, 163, 94, 0.5); color: #ffd7b0; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; text-align: center; }
.promise div { padding: 22px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.promise strong { display: block; font: 500 1.25rem var(--serif); margin-bottom: 4px; }
.promise span { color: var(--soft); font-size: 15px; }

.cta { text-align: center; }
.cta .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }

.foot { border-top: 1px solid var(--line); padding: 28px 16px 40px; color: var(--soft); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--soft); }

/* The support and privacy pages: plain reading. */
.doc { max-width: 700px; margin: 0 auto; padding: 104px 16px 64px; }
.doc h1 { font: 500 2.2rem/1.15 var(--serif); margin: 0 0 6px; }
.doc h2 { font: 600 1.15rem/1.3 var(--sans); margin: 34px 0 6px; }
.doc .sub { color: var(--soft); margin: 0 0 24px; }
.doc p, .doc li { color: #d7ddd4; }

/* The cookie choice, for Google Analytics (`site.js`). */
.consent { position: fixed; z-index: 10; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  background: rgba(24, 34, 26, 0.97); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); font-size: 15px; display: none; }
.consent.show { display: block; }
.consent p { margin: 0 0 12px; color: #d7ddd4; }
.consent .row { display: flex; gap: 10px; justify-content: flex-end; }
.consent button { font: 600 15px var(--sans); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.consent .no { background: transparent; color: var(--ink); }
.consent .yes { background: var(--leaf); color: #0d1a10; border-color: transparent; }

@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .promise { grid-template-columns: 1fr; }
  .bar nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
