/* Clutch pages. Colours and type come from the game: an arena at night, the orange ball,
   the red game clock. The top bar and footer are the studio's. */

@font-face { font-family: "Clutch Logo"; src: url("../assets/fonts/clutch-logo.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Big Shoulders"; font-weight: 700 900; src: url("../assets/fonts/clutch-display.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Anton"; src: url("../assets/fonts/Anton-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../assets/fonts/PermanentMarker-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; src: url("../assets/fonts/Inter-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; src: url("../assets/fonts/Inter-SemiBold.woff") format("woff"); font-display: swap; }

:root {
  --night: #0a1024;     /* house lights down */
  --deep: #060914;
  --panel: #1a2144;     /* the game's panels */
  --rule: #2c3666;
  --chalk: #eef2ff;
  --steel: #9aa4c7;
  --ball: #ff7a1a;      /* the ball, and the logo */
  --clock: #ff3d3d;     /* game clock digits */
  --ink: #15121A;       /* studio */
  --glass: #2A2533;
  --cap: #FFD23F;
  --tape: #EFE6CC;
  --logo: "Clutch Logo", "Anton", Impact, sans-serif;
  --display: "Big Shoulders", "Anton", "Arial Narrow", sans-serif;
  --studio: "Anton", Impact, "Arial Narrow", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--night); color: var(--chalk);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cap); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--cap); color: var(--ink); padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Studio top bar (same as the home page) ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(21, 18, 26, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--glass); --jar-line: #fff; color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--studio); text-transform: uppercase; font-size: 22px; letter-spacing: .04em; }
.brand svg { width: 38px; height: 40px; }
.top nav { display: flex; gap: 6px; }
.top nav a { padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; }
.top nav a:hover { background: var(--glass); }
.top nav a[aria-current] { background: var(--glass); }

/* ---------- Type ---------- */
h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 5.2vw, 64px); line-height: .98; letter-spacing: .005em; }
h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; letter-spacing: .01em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--steel); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.cbtn {
  display: inline-block; text-decoration: none; background: var(--ball); color: var(--deep);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; line-height: 1;
  padding: 15px 24px 14px; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 5px 0 var(--deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cbtn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--deep); }
.cbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--deep); }
.cbtn small { display: block; font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: 0; text-transform: none; margin-bottom: 4px; opacity: .8; }
.soon { font-size: 15px; color: var(--steel); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(255, 122, 26, .16), transparent 60%),
    linear-gradient(180deg, #131a3a 0%, var(--night) 62%, var(--deep) 100%);
  padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.status { display: inline-block; background: var(--tape); color: var(--ink); font-family: var(--marker); font-size: 20px; line-height: 1; padding: 9px 22px 7px; transform: rotate(-2deg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 17%, 100% 33%, calc(100% - 6px) 50%, 100% 67%, calc(100% - 6px) 83%, 100% 100%, 0 100%, 6px 83%, 0 67%, 6px 50%, 0 33%, 6px 17%); }
.wordmark { margin: 30px 0 8px -4px; width: min(100%, 560px); height: auto; overflow: visible; }
.wordmark text { font-family: var(--logo); font-size: 150px; fill: var(--ball); stroke: #fff; stroke-width: 14px; stroke-linejoin: round; paint-order: stroke; }
.wordmark .shade { fill: var(--deep); stroke: var(--deep); stroke-width: 20px; }
.tagline { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--steel); }

/* the phone, with the game clock hung on its corner */
.device { position: relative; justify-self: center; width: min(100%, 330px); }
.device img { border-radius: 34px; border: 6px solid #fff; background: var(--deep); transform: rotate(2.5deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.clock {
  position: absolute; left: -48px; bottom: 15%; z-index: 2; transform: rotate(-5deg);
  background: var(--deep); border: 4px solid var(--rule); border-radius: 14px; padding: 6px 18px 4px;
  font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1; color: var(--clock); font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .45);
}
.clock small { display: block; font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: .14em; color: var(--steel); text-transform: uppercase; margin-bottom: -2px; }

/* ---------- Bands ---------- */
.band { padding: clamp(64px, 8vw, 108px) 0; }
.band--panel { background: var(--panel); }
.band--deep { background: var(--deep); }
.band h2 { margin-bottom: 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.cols p + p { margin-top: 14px; }

/* Read the defender: what he does, what you do */
.reads-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.clip { border-radius: 30px; border: 5px solid #fff; background: var(--deep); width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.reads { margin-top: 8px; border-top: 2px solid var(--rule); }
.reads li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0 14px; border-bottom: 2px solid var(--rule); }
.reads .tell { font-size: 17px; color: var(--steel); }
.reads .move { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 3vw, 34px); line-height: 1; color: var(--ball); }
.reads-note { margin-top: 18px; max-width: 52ch; }

/* Screenshots: a rail you can swipe */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px 24px 22px; margin: 0 -24px; scroll-snap-type: x proximity; scrollbar-color: var(--rule) transparent; }
.rail figure { flex: 0 0 auto; width: clamp(190px, 22vw, 236px); scroll-snap-align: start; }
.rail img { border-radius: 22px; border: 4px solid var(--rule); background: var(--deep); width: 100%; }
.rail figcaption { margin-top: 10px; font-size: 14px; color: var(--steel); }

/* Features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.feats li { border-top: 3px solid var(--ball); padding: 18px 0 34px; }
.feats h3 { margin-bottom: 8px; }
.feats p { font-size: 16px; color: #cfd6f0; }

/* Closing call */
.call { background: var(--ball); color: var(--deep); padding: clamp(52px, 7vw, 88px) 0; }
.call h2 { margin-bottom: 10px; }
.call p { max-width: 46ch; font-weight: 600; }
.call .actions { margin-top: 26px; }
.call .cbtn { background: var(--deep); color: #fff; border-color: var(--deep); box-shadow: 0 5px 0 rgba(6, 9, 20, .35); }
.call .soon { color: var(--deep); opacity: .75; }
.call .follow { margin-top: 24px; font-size: 16px; }
.call .follow a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.call .follow a:hover { color: #fff; }

/* Game links and the studio footer */
.game-links { background: var(--deep); padding: 30px 0 6px; font-size: 15px; }
.game-links ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.game-links a { font-weight: 600; color: var(--chalk); text-underline-offset: 3px; }
.game-links a:hover { color: var(--ball); }
.foot { background: var(--deep); color: rgba(238, 242, 255, .62); font-size: 14px; padding: 22px 0 34px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 2px solid var(--rule); padding-top: 20px; }
.foot a { color: inherit; }

/* ---------- Document pages: support, privacy, terms ---------- */
.doc { background: var(--tape); color: var(--ink); }
.doc-head { background: var(--night); color: var(--chalk); padding: clamp(36px, 5vw, 60px) 0 clamp(30px, 4vw, 46px); }
.crumb { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--steel); margin-bottom: 18px; }
.crumb img { width: 34px; height: 34px; border-radius: 8px; }
.crumb:hover { color: #fff; }
.doc-head h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 6.4vw, 76px); line-height: .96; }
.doc-head p { margin-top: 10px; color: var(--steel); font-size: 15px; }
.sheet { width: min(72ch, 100% - 48px); margin-inline: auto; padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 7vw, 88px); }
.sheet h2 { font-size: clamp(26px, 3vw, 32px); margin: 42px 0 12px; line-height: 1.05; }
.sheet > h2:first-child, .sheet > .short + h2 { margin-top: 0; }
.sheet p + p, .sheet ul + p, .sheet p + ul { margin-top: 12px; }
.sheet ul { padding-left: 1.15em; list-style: disc; }
.sheet li + li { margin-top: 6px; }
.sheet a { color: #9a3d00; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sheet a:hover { color: var(--ink); }
.short { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 22px 24px 20px; margin-bottom: 40px; }
.short h2 { margin: 0 0 10px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 22px 24px; margin-bottom: 40px; }
.contact-card p { max-width: 40ch; }
.contact-card .cbtn { color: var(--deep); font-size: 20px; border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.faq dt { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.1; margin-top: 26px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin-top: 6px; }
.doc-links { margin-top: 44px; padding-top: 20px; border-top: 2px solid rgba(21, 18, 26, .18); display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }
.doc .foot { background: var(--ink); }
.doc .foot-in { border-top: 0; padding-top: 0; }
.doc :focus-visible { outline-color: var(--ink); }
.doc .top :focus-visible, .doc .doc-head :focus-visible { outline-color: var(--cap); }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(1120px, 100% - 36px); }
  .hero-grid, .cols, .reads-grid { grid-template-columns: minmax(0, 1fr); }
  .device { width: min(72%, 280px); margin-top: 12px; }
  .clock { left: -30px; font-size: 58px; padding: 5px 14px 3px; }
  .reads-grid .clip { width: min(70%, 280px); justify-self: center; }
  .rail { padding-inline: 18px; margin-inline: -18px; }
  .sheet { width: min(72ch, 100% - 36px); }
}
@media (max-width: 520px) {
  .brand span { font-size: 19px; }
  .top nav a { padding: 8px 8px; font-size: 14px; }
  .top nav { gap: 0; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .reads li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cbtn { font-size: 20px; padding: 13px 20px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
