/* Peek & Piece website — static, no web fonts, scripts or trackers (the privacy policy says so).
   Layout: dark like the game's album (the pictures bring the colour), the "How to play" band light like its puzzle
   table, the icon's gold as the one accent. */
:root {
  --bg: #0B0B0D; --surface: #17171A; --surface-2: #222226; --line: #2E2E33;
  --text: #F5F5F7; --soft: #A6A6AE; --gold: #E8C46B; --gold-deep: #C79E43;
  --paper: #EFEDE8; --paper-2: #E4E1DA; --ink: #1C1C1E; --ink-soft: #5B5B62;
  --radius: 22px;
  /* SF Pro on Apple devices (the game's own face), the system's sans elsewhere — nothing loaded from others */
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system-headline, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { 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; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #F3D78E; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -.2px; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden;
  background: radial-gradient(1200px 520px at 78% 30%, #24201A 0%, transparent 62%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-block: 64px 56px; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; font-size: 12.5px;
  color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-family: var(--display); font-size: clamp(44px, 7vw, 76px); line-height: 1.02; margin: 20px 0 14px; font-weight: 800;
  letter-spacing: -1.5px; text-wrap: balance; }
.hero h1 .sub { display: block; font-size: .42em; font-weight: 600; letter-spacing: -.3px; color: var(--gold); margin-top: 12px; }
.hero p.lead { font-size: clamp(18px, 2.1vw, 20px); color: #D9D9DE; max-width: 33em; margin: 0 0 28px; }
.cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); border-radius: 14px;
  padding: 12px 20px; font-weight: 700; text-decoration: none; }
.store:hover { color: var(--bg); background: #fff; }
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .7; letter-spacing: .2px; }
.store .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232,196,107,.28); }
.meta { color: var(--soft); font-weight: 600; font-size: 15px; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone { width: 250px; border-radius: 42px; padding: 9px; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 0 1.5px #3A3A40; }
.phone img { border-radius: 34px; }
.phone.back { position: absolute; transform: rotate(-7deg) translate(-96px, 6px); width: 228px; opacity: .96; }
.phone.front { position: relative; transform: rotate(4deg) translate(70px, 0); }

/* ---------- sections ---------- */
section { padding-block: 84px; }
.sec-title { font-family: var(--display); font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin: 0 0 12px; font-weight: 800;
  letter-spacing: -.8px; text-wrap: balance; }
.sec-lead { color: var(--soft); font-size: 19px; max-width: 40em; margin: 0 0 40px; }
.light { background: var(--paper); color: var(--ink); }
.light .sec-lead { color: var(--ink-soft); }
.light a { color: #8A6418; }

/* how to play: three steps, each with a screen from the game */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: #fff; border-radius: var(--radius); padding: 18px 18px 22px; box-shadow: 0 1px 0 var(--paper-2), 0 14px 30px rgba(28,28,30,.08); }
.step .shot { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 16px; background: #000; }
.step .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-size: 21px; letter-spacing: -.2px; }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 700; flex: none; }
.step p { margin: 0; color: var(--ink-soft); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.2px; }
.feature p { margin: 0; color: var(--soft); }
.feature .tag { display: inline-block; margin-bottom: 12px; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }

/* special albums: the twelve covers */
.albums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.album { margin: 0; }
.album img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.album figcaption { margin-top: 10px; font-weight: 650; font-size: 15px; line-height: 1.3; }
.album figcaption small { display: block; color: var(--soft); font-weight: 500; font-size: 13px; }
.note { margin-top: 30px; color: var(--soft); font-size: 15px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shots img { border-radius: 22px; border: 1px solid var(--line); background: #000; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 34px 44px; color: var(--soft); font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-foot .op { margin: 10px 0 0; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--soft); text-decoration: none; font-weight: 600; }
.site-foot nav a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.page-head { padding-block: 64px 24px; }
.page-head h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); margin: 0 0 8px; letter-spacing: -1px; }
.page-head p { color: var(--soft); margin: 0; }
.legal { padding-bottom: 80px; }
.legal h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -.3px; }
.legal h3 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { color: #D7D7DC; }
.legal ul { padding-left: 22px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 14px; padding: 18px 20px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.faq details p { margin: 0 0 14px; }
.contact-card { margin-top: 30px; background: var(--surface-2); border-radius: var(--radius); padding: 24px; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .albums { grid-template-columns: repeat(4, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 40px; }
  .phones { min-height: 470px; }
  .phone { width: 210px; } .phone.back { width: 190px; }
  .steps, .features { grid-template-columns: 1fr; }
  .step { max-width: 460px; }
  .hide-s { display: none; }
}
@media (max-width: 560px) {
  section { padding-block: 60px; }
  .albums { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .phone.back { transform: rotate(-7deg) translate(-62px, 6px); } .phone.front { transform: rotate(4deg) translate(44px, 0); }
  .nav { gap: 14px; }
}
