/* Postcard Peaks: the game's site (README.md). The design is the Paper file "Postcard Peaks Website"; the palette is the
   store art's (ink-blue on paper, a sky wash, peach, stamp sage). No script anywhere: the CSP allows none. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #FAF5EC;
  --cream: #FFF8EA;
  --ink: #223E58;
  --ink-2: #2E4A63;
  --muted: #4A6075;
  --sky: #B0D0D8;
  --peach: #F4D6B2;
  --sage: #8CA482;
  --line: rgba(34, 62, 88, 0.14);
  --on-ink: #FFF8EA;
  --on-ink-2: #E6E2D6;
  --on-ink-3: #C9D3DA;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 96px;
  --max: 1248px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--serif); font-size: 18px; line-height: 1.66; font-optical-sizing: auto; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-family: var(--sans); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---- the top bar ---- */
.topbar { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 28px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.topbar nav { display: flex; gap: 32px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.topbar nav a { text-decoration: none; padding: 6px 0; }
.topbar nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- the hero ---- */
.hero { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.identity { display: flex; align-items: center; gap: 20px; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; box-shadow: 0 1px 0 rgba(34, 62, 88, 0.08), 0 10px 24px rgba(34, 62, 88, 0.12); }
.identity h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.subtitle { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.headline { font-size: 76px; line-height: 80px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.story { display: flex; flex-direction: column; gap: 10px; max-width: 540px; font-size: 20px; line-height: 32px; }
.story .turn { font-style: italic; font-weight: 500; color: var(--ink); }
.hero-art { width: 600px; flex-shrink: 1; min-width: 0; }

/* the store row: the "coming soon" pill until a store's link is set (README.md, "The store badges") */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-top: 8px; }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.platforms { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }

/* ---- the panoramas (the credits' painted towns) ---- */
.panorama { display: block; width: 100%; }
.panorama img { width: 100%; height: auto; }
.panorama.market { background: var(--cream); }

/* ---- the screenshots ---- */
.gallery { background: var(--cream); padding: 112px var(--gutter) 120px; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.gallery .intro { max-width: 960px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.gallery h2 { font-size: 44px; line-height: 52px; letter-spacing: -0.02em; }
.gallery .intro p { font-size: 20px; line-height: 32px; max-width: 680px; }
.shots { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; justify-content: center; }
.shots img { width: 232px; border-radius: 24px; box-shadow: 0 1px 0 rgba(34, 62, 88, 0.06), 0 12px 28px rgba(34, 62, 88, 0.10); }
.swipe { display: none; }

/* ---- the trailer (the one ink-blue band) ---- */
.trailer { background: var(--ink); color: var(--on-ink-2); padding: 112px var(--gutter); display: flex; justify-content: center; align-items: center; gap: 112px; }
.trailer-copy { max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
.trailer h2 { color: var(--on-ink); font-size: 52px; line-height: 58px; letter-spacing: -0.02em; }
.trailer p { font-size: 20px; line-height: 32px; }
.trailer p.eyebrow { color: var(--sky); font-size: 13px; line-height: 1.66; }   /* (over .trailer p, on every width) */
.player { width: 300px; flex-shrink: 0; border-radius: 30px; background: #1a3247; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }

/* ---- what's in the bag ---- */
.features { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 120px var(--gutter) 112px; display: flex; flex-direction: column; gap: 56px; }
.features-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.features-head > div { display: flex; flex-direction: column; gap: 14px; }
.features h2, .how h2, .closing h2 { font-size: 44px; line-height: 52px; letter-spacing: -0.02em; }
.aside { font-style: italic; font-size: 20px; line-height: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.feature-grid article { display: flex; flex-direction: column; gap: 20px; }
.feature-grid img { width: 100%; border-radius: 6px; box-shadow: 0 1px 2px rgba(34, 62, 88, 0.10), 0 10px 24px rgba(34, 62, 88, 0.10); }
.feature-grid h3 { font-size: 24px; line-height: 30px; }
.feature-grid p { font-size: 17px; line-height: 27px; }

/* ---- how it plays ---- */
.how { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 136px; display: flex; align-items: center; gap: 96px; }
.how > img { width: 480px; flex-shrink: 0; border-radius: 8px; box-shadow: 0 1px 2px rgba(34, 62, 88, 0.10), 0 14px 32px rgba(34, 62, 88, 0.12); }
.how-copy { max-width: 600px; display: flex; flex-direction: column; gap: 24px; font-size: 19px; line-height: 31px; }
.how-copy .note { font-family: var(--sans); font-size: 15px; line-height: 24px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- the closing ---- */
.closing { background: var(--cream); padding: 104px var(--gutter) 64px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.closing > img { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 10px 24px rgba(34, 62, 88, 0.12); }
.closing > p { font-size: 20px; line-height: 30px; }
.closing .stores { justify-content: center; padding-top: 6px; }

/* ---- the footer ---- */
.site-footer { background: var(--ink); color: var(--on-ink-3); padding: 48px var(--gutter) 56px; font-family: var(--sans); }
.footer-top, .footer-bottom { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; }
.footer-top { align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 248, 234, 0.18); }
.site-footer .brand { color: var(--on-ink); font-family: var(--serif); font-size: 18px; }
.site-footer .brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; font-weight: 500; }
.site-footer a { color: var(--on-ink); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--on-ink); }
.footer-bottom { padding-top: 28px; font-size: 13px; line-height: 20px; }
.footer-bottom .credit { max-width: 640px; text-align: right; }
.store-credits { flex-basis: 100%; font-size: 12px; }

/* ---- the privacy and support pages ---- */
.doc-head { border-bottom: 1px solid var(--line); }
.doc-head > div { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 56px calc(var(--gutter) + 280px); display: flex; flex-direction: column; gap: 16px; }
.doc-head h1 { font-size: 60px; line-height: 64px; letter-spacing: -0.025em; }
.byline { color: var(--muted); }
.doc { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 112px; display: flex; align-items: flex-start; gap: 80px; }
.toc { width: 200px; flex-shrink: 0; position: sticky; top: 24px; font-family: var(--sans); font-size: 14px; line-height: 20px; }
.toc h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 720px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.prose section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.prose h2 { font-size: 28px; line-height: 34px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; overflow-wrap: anywhere; }
.prose .card { padding: 32px 36px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.mail a { font-size: 30px; line-height: 38px; font-weight: 600; overflow-wrap: anywhere; }

/* ---- narrower screens ---- */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .hero-art { width: 46%; }
  .headline { font-size: 64px; line-height: 68px; }
  .shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 100%; padding-bottom: 12px; }
  .shots li { scroll-snap-align: start; flex-shrink: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { gap: 56px; }
  .how > img { width: 40%; }
  .doc-head > div { padding-left: var(--gutter); }
  .trailer { gap: 64px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .topbar { padding: 18px var(--gutter); }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; border-radius: 7px; }
  .topbar nav { gap: 18px; font-size: 14px; }
  .nav-wide { display: none; }
  .hero { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 28px; }
  .hero-copy { gap: 22px; }
  .identity { gap: 14px; }
  .app-icon { width: 68px; height: 68px; border-radius: 16px; }
  .identity h1 { font-size: 22px; line-height: 28px; }
  .subtitle { font-size: 14px; }
  .subtitle .by { display: none; }
  .headline { font-size: 44px; line-height: 48px; }
  .story { font-size: 18px; line-height: 28px; gap: 8px; }
  .soon { font-size: 13px; padding: 10px 14px; gap: 8px; }
  .hero-art { width: 100%; max-width: 420px; align-self: center; margin-top: 8px; }
  .gallery { padding: 64px 0 72px var(--gutter); align-items: stretch; gap: 28px; }
  .gallery .intro { text-align: left; align-items: flex-start; padding-right: var(--gutter); gap: 12px; }
  .gallery h2, .features h2, .how h2 { font-size: 30px; line-height: 36px; }
  .gallery .intro p { font-size: 17px; line-height: 27px; }
  .shots { gap: 14px; padding-right: var(--gutter); }
  .shots img { width: 210px; border-radius: 20px; }
  .swipe { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); }
  .trailer { flex-direction: column; gap: 32px; padding: 64px var(--gutter) 72px; }
  .trailer h2 { font-size: 34px; line-height: 40px; }
  .trailer p { font-size: 17px; line-height: 27px; }
  .player { width: 260px; }
  .features { padding: 72px var(--gutter) 56px; gap: 32px; }
  .features-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .aside { font-size: 17px; line-height: 26px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid article { gap: 14px; }
  .feature-grid h3 { font-size: 22px; line-height: 28px; }
  .how { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px var(--gutter) 72px; }
  .how > img { width: 100%; }
  .how-copy { font-size: 17px; line-height: 27px; gap: 20px; }
  .how-copy .note { font-size: 14px; line-height: 22px; padding-top: 14px; }
  .closing { padding: 64px var(--gutter) 40px; gap: 16px; }
  .closing h2 { font-size: 30px; line-height: 36px; }
  .closing > img { width: 64px; height: 64px; border-radius: 15px; }
  .closing > p { font-size: 17px; }
  .site-footer { padding: 36px var(--gutter) 40px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 22px; }
  .site-footer nav { flex-direction: column; gap: 14px; font-size: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding-top: 22px; }
  .footer-bottom .credit { text-align: left; }
  .doc-head > div { padding: 36px var(--gutter) 28px; gap: 10px; }
  .doc-head h1 { font-size: 40px; line-height: 44px; }
  .byline { font-size: 16px; line-height: 24px; }
  .doc { flex-direction: column; gap: 0; padding: 28px var(--gutter) 64px; }
  .toc { display: none; }
  .prose { gap: 40px; }
  .prose .card { padding: 24px 20px; }
  .mail a { font-size: 22px; line-height: 30px; }
}
