/* Content pages (blog, guides, "Games like", FAQ), built by scripts/build-pages.mjs. Each page sets --tint and --accent
   inline; everything else lives here so it's cached across pages.
   LAYOUT: one 1040px container (.page) for the header, cover and body, so every left edge lines up. Posts are a 680px
   column plus a 272px sidebar on wide screens; index pages use the full width.
   SPACING: only the --s* steps. Sections --s8 apart (--s7 on phones), blocks --s5 above and --s6 below, paragraphs --s4. */
:root {
  --ink: #121212; --ink2: #5a5a5a; --line: #dcdcd8; --paper: #f8f7f3;
  --ui: "Outfit", -apple-system, Helvetica, Arial, sans-serif; --display: "Clash Grotesk", var(--ui);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gut: 24px; --r-sm: 12px; --r: 18px; --r-lg: 24px;
  --pd-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
/* same page-to-page dissolve as the games and the hub (see shared/games.js) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.65 var(--ui); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, #121212); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }

/* ---------- grid ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 0 var(--gut); }
.layout { display: grid; grid-template-columns: minmax(0, 680px) 272px; justify-content: space-between; gap: var(--s7); padding-top: var(--s7); }
.layout.wide { grid-template-columns: minmax(0, 1fr); }
.wide main > :not(.grid):not(.posts):not(.featured):not(.endcta) { max-width: 680px; }
main { min-width: 0; }
main > :first-child { margin-top: 0; }

/* ---------- header band ---------- */
.band { position: relative; isolation: isolate; background: var(--tint); overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--pd-grain), linear-gradient(135deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,.09) 100%); background-size: 200px 200px, auto; }
@supports (color: oklch(from red l c h)) {
  .band::before { background-image: var(--pd-grain), linear-gradient(135deg, oklch(from var(--tint) calc(l + .05) calc(c * .7) h) 0%, var(--tint) 50%, oklch(from var(--tint) calc(l - .055) calc(c * 1.5) h) 100%); }
}
.bar { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "back logo links"; align-items: center; gap: var(--s3); height: 64px; padding-top: env(safe-area-inset-top, 0px); }
.back { grid-area: back; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; padding: 6px 0; }
.back:hover { text-decoration: underline; }
.logo { grid-area: logo; display: block; line-height: 0; }
.logo img { display: block; height: 28px; width: auto; }
.links { grid-area: links; justify-self: end; display: flex; }
.links a.playnow { background: #121212; color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.links a.playnow::after { content: " \2192"; }
.links a.playnow:hover { background: #2a2a2a; }

/* ---------- cover: title on the left, real game screens fanned on the right ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); justify-content: space-between; gap: var(--s6); align-items: end; padding-top: var(--s5); }
.cover.solo { grid-template-columns: minmax(0, 760px); }
.cover .copy { padding-bottom: var(--s7); align-self: center; }
.eyebrow, .kicker { margin: 0; font: 700 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(18,18,18,.62); }
h1 { margin: var(--s3) 0 var(--s4); font: 600 clamp(34px, 5.4vw, 54px)/1.03 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.sub { font-size: 19px; line-height: 1.45; color: rgba(18,18,18,.78); margin: 0 0 var(--s5); max-width: 34em; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: var(--s2) var(--s4); flex-wrap: wrap; font-size: 14.5px; color: rgba(18,18,18,.66); margin: 0 0 var(--s5); }
.byline span + span::before { content: "\00b7"; margin-right: var(--s4); opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); height: 36px; padding: 0 var(--s3) 0 5px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); font: 600 14px/1 var(--ui); text-decoration: none; }
.chip:hover { background: #fff; }
.ic { display: grid; place-items: center; overflow: hidden; background: var(--tint); flex: none; width: 26px; height: 26px; border-radius: 8px; }
.ic svg { width: 100%; height: 100%; display: block; }
.fan { position: relative; height: 440px; }
.phone { position: relative; width: 200px; aspect-ratio: 540 / 1169; border-radius: 30px; background: #121212; padding: 7px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #fff; }
.fan .phone { position: absolute; bottom: -80px; }
.fan.n3 .phone:nth-child(1) { left: 0; transform: rotate(-9deg); z-index: 1; }
.fan.n3 .phone:nth-child(2) { left: calc(50% - 100px); bottom: -48px; transform: rotate(1deg); z-index: 3; }
.fan.n3 .phone:nth-child(3) { right: 0; transform: rotate(9deg); z-index: 2; }
.fan.n2 .phone:nth-child(1) { left: calc(50% - 190px); transform: rotate(-7deg); }
.fan.n2 .phone:nth-child(2) { left: calc(50% - 10px); bottom: -56px; transform: rotate(6deg); }
.fan.n1 .phone { left: calc(50% - 100px); bottom: -60px; transform: rotate(3deg); }

/* ---------- body type ---------- */
h2 { margin: var(--s8) 0 var(--s3); font: 600 clamp(26px, 3.4vw, 32px)/1.12 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: var(--s6) 0 var(--s2); font: 600 21px/1.25 var(--display); text-wrap: balance; }
h2 + h3 { margin-top: var(--s4); }
p, li { margin: 0 0 var(--s4); text-wrap: pretty; }
strong { font-weight: 700; }
main > p:first-child { font-size: 20px; line-height: 1.55; }

/* the short answer: the first paragraph, boxed, on posts that open with a direct answer */
.answer { margin: 0 0 var(--s6); padding: var(--s5); border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.answer .kicker { display: block; margin-bottom: var(--s3); }
.answer p { font-size: 19px; line-height: 1.55; margin: 0; }

/* numbered steps and bullets */
ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 var(--s5); }
ol > li { counter-increment: step; position: relative; padding: 2px 0 0 52px; min-height: 36px; margin-bottom: var(--s3); }
ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 2px var(--accent); display: grid; place-items: center; font: 600 17px/1 var(--display); }
ul { list-style: none; padding: 0; margin: 0 0 var(--s5); }
ul > li { position: relative; padding-left: 26px; margin-bottom: var(--s3); }
ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
ul > li.dtip { margin: var(--s1) 0 var(--s5); padding: 40px 20px 6px; background: color-mix(in srgb, var(--tint) 65%, #fff); border-radius: var(--r-sm); box-shadow: inset 0 0 0 2px var(--accent); }
ul > li.dtip::before { content: "Designer\2019s tip"; left: 20px; top: 14px; width: auto; height: auto; border-radius: 0; background: none; font: 700 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }

/* callouts, code, tables */
.callout { margin: 0 0 var(--s5); padding: var(--s4) var(--s5) 2px; background: color-mix(in srgb, var(--tint) 55%, #fff); border-radius: var(--r-sm); border-left: 6px solid var(--accent); }
.callout p { margin: 0 0 14px; }
code, pre { font: 500 15.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
code { background: color-mix(in srgb, var(--tint) 45%, #fff); padding: 2px 6px; border-radius: 6px; }
pre { position: relative; margin: 0 0 var(--s5); padding: 40px 20px 16px; background: var(--paper); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
pre::before { content: "Example"; position: absolute; left: 20px; top: 14px; font: 700 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.tablewrap { overflow-x: auto; margin: 0 0 var(--s5); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: color-mix(in srgb, var(--tint) 55%, #fff); font: 600 14px/1.3 var(--ui); letter-spacing: .02em; }
th:first-child, td:first-child { font-weight: 600; }

/* buttons */
.playrow { margin: var(--s5) 0 var(--s6); }
.play { display: inline-flex; align-items: center; gap: var(--s2); padding: 14px 24px; border-radius: 999px; background: #121212; color: #fff; font: 700 17px/1 var(--ui); text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.play::after { content: "\2192"; font-weight: 600; }
.play:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.play.game { background: var(--accent); color: #121212; }
.play.sm { padding: 11px 18px; font-size: 15px; }

/* ---------- sidebar: contents + play card ---------- */
.side { position: sticky; top: var(--s5); align-self: start; display: grid; gap: var(--s5); }
.toc { border-left: 2px solid var(--line); padding-left: var(--s4); }
.toc .kicker { display: block; margin-bottom: var(--s3); }
.toc a { display: block; padding: 5px 0; font-size: 15px; line-height: 1.35; color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.sidecard { border-radius: var(--r); padding: var(--s5); background: var(--tint); }
.sidecard .ic { width: 48px; height: 48px; border-radius: var(--r-sm); margin-bottom: var(--s3); background: #fff; }
.sidecard p:first-of-type { font: 600 20px/1.2 var(--display); margin: 0 0 var(--s2); }
.sidecard p { font-size: 15px; line-height: 1.45; color: rgba(18,18,18,.75); margin: 0 0 var(--s4); }

/* every visual block gets the same space around it */
.ways, .feature, .minis, .days, .howto, .scales, .wyr, .grid { margin: var(--s5) 0 var(--s6); }

/* ---------- crops of real screens ---------- */
.crop { position: relative; overflow: hidden; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 16px 28px -18px rgba(0,0,0,.3); }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }

/* game feature card */
.feature { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s5); border-radius: var(--r-lg); background: var(--tint); position: relative; isolation: isolate; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pd-grain), linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,0) 55%, rgba(0,0,0,.06)); background-size: 200px, auto; }
.feature .crop { height: 232px; }
.feature .head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.feature .head .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.feature .head h3 { margin: 0; font-size: 24px; }
.feature p { font-size: 16.5px; line-height: 1.55; margin: 0 0 var(--s5); }

/* compact game cards */
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.minis.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.minis.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini { border-radius: var(--r); background: var(--tint); padding: var(--s3) var(--s3) var(--s4); text-decoration: none; display: flex; flex-direction: column; transition: transform .12s; }
.mini:hover { transform: translateY(-2px); }
.mini .crop { height: 140px; margin-bottom: var(--s3); }
.mini b { font: 600 18px/1.15 var(--display); margin-bottom: var(--s1); padding: 0 var(--s1); }
.mini small { font-size: 14px; line-height: 1.4; color: rgba(18,18,18,.72); padding: 0 var(--s1); }

/* the ways: a picture and a short step */
.ways { display: grid; gap: var(--s3); }
.way { border-radius: var(--r); padding: var(--s3); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); align-items: center; }
.way .pic { height: 136px; border-radius: var(--r-sm); background: var(--tint); display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; }
.way .pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pd-grain); background-size: 200px; }
.way .step { padding: var(--s2) var(--s3) var(--s2) 0; }
.way .kicker { display: block; margin-bottom: var(--s2); }
.way h3 { margin: 0 0 var(--s2); font-size: 19px; }
.way p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
.vote { display: flex; gap: var(--s2); }
.vote b { display: grid; place-items: center; width: 70px; height: 60px; border-radius: var(--r-sm); border: 2px solid #121212; font: 700 15px/1 var(--display); }
.vote b:first-child { background: #e6efff; } .vote b:last-child { background: #ffe8dc; }
.sharecard { background: #fff; border-radius: 14px 14px 14px 4px; padding: var(--s2) var(--s3); font: 500 12.5px/1.4 ui-monospace, Menlo, monospace; box-shadow: 0 8px 18px -10px rgba(0,0,0,.35); white-space: pre; }
.board { background: #fff; border-radius: var(--r-sm); padding: var(--s2) var(--s3); width: 170px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.35); font-size: 13px; }
.board div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eee; }
.board div:last-child { border: 0; }
.board .me { font-weight: 700; }

/* date tiles */
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
.day { border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.day .top { background: #121212; color: #fff; padding: var(--s2) var(--s1); font: 700 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.day .date { padding: var(--s3) var(--s1) 0; font: 600 38px/1 var(--display); letter-spacing: -.02em; }
.day .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; padding: var(--s1) var(--s2) var(--s3); color: var(--ink2); }
.day .icons { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: center; padding: var(--s3) var(--s2); border-top: 1px dashed var(--line); margin-top: auto; }
.day .icons .ic { width: 22px; height: 22px; border-radius: 6px; }

/* how-to: device steps */
.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.dev { border-radius: var(--r); padding: var(--s5); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.dev h3 { margin: 0; }
.dev ol { margin: var(--s4) 0 0; display: grid; gap: var(--s3); }
.dev ol > li { margin: 0; padding: 0 0 0 40px; font-size: 16px; line-height: 1.5; min-height: 28px; }
.dev ol > li::before { width: 28px; height: 28px; top: -1px; background: #121212; color: #fff; box-shadow: none; font-size: 14px; }
.dev code { font: 600 14.5px/1.4 var(--ui); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); padding: 1px 8px; border-radius: 7px; white-space: nowrap; }

/* debate scales: tap to say where you land */
.scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.q { border-radius: var(--r); padding: var(--s4); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; }
.q .num { font: 700 11px/1 var(--ui); letter-spacing: .1em; color: var(--ink2); }
.q .t { font: 600 18px/1.28 var(--display); margin: var(--s2) 0 var(--s4); text-wrap: balance; }
.q .ends { display: flex; justify-content: space-between; gap: var(--s3); font: 600 13.5px/1.25 var(--ui); margin: auto 0 var(--s2); }
.q .ends span:last-child { text-align: right; }
.q .track { position: relative; height: 10px; border-radius: 6px; background: #e9e9e4; margin: 7px 0; }
.q .dot { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #121212; transition: left .2s; }
.q.set .dot { background: var(--accent); }
.q .hint { font-size: 13px; line-height: 1.3; color: var(--ink2); margin-top: var(--s3); }
.q.set .hint { color: var(--ink); font-weight: 600; }

/* would you rather: one card per question, options side by side */
.wyr { display: grid; gap: var(--s3); }
.pair { border-radius: var(--r); padding: var(--s4); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.pair .kicker { display: block; margin-bottom: var(--s3); }
.pair .opts { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.pair b { display: grid; place-items: center; min-height: 72px; padding: var(--s3) var(--s5); border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 17px/1.25 var(--display); text-align: center; text-wrap: balance; }
.pair i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #121212; color: #fff; font: 700 11px/1 var(--ui); letter-spacing: .06em; font-style: normal; text-transform: uppercase; }

/* game grid on index pages: a screen crop on every card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.gcard { display: flex; flex-direction: column; background: var(--tint); border-radius: var(--r); padding: var(--s3) var(--s3) var(--s4); text-decoration: none; transition: transform .12s; }
.gcard:hover { transform: translateY(-2px); }
.gcard .crop { height: 150px; margin-bottom: var(--s3); }
.gcard .gtop { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s1); }
.gcard .gtop .ic { width: 30px; height: 30px; border-radius: 9px; background: #fff; }
.gcard .gname { font: 600 19px/1.1 var(--display); }
.gcard .gdesc { font-size: 14.5px; line-height: 1.4; color: rgba(18,18,18,.74); margin-top: var(--s2); padding: 0 var(--s1); }

/* blog index: a featured post and a cover on every card */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; margin: var(--s5) 0; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.featured .art { position: relative; min-height: 340px; background: var(--tint); overflow: hidden; isolation: isolate; }
.featured .art .phone { position: absolute; width: 164px; bottom: -96px; }
.featured .art .phone:nth-child(1) { left: calc(50% - 222px); transform: rotate(-8deg); }
.featured .art .phone:nth-child(2) { left: calc(50% - 82px); bottom: -64px; z-index: 2; }
.featured .art .phone:nth-child(3) { left: calc(50% + 58px); transform: rotate(8deg); }
.featured .txt { padding: var(--s6); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: #fff; }
.featured .txt b { display: block; margin: var(--s3) 0; font: 600 clamp(26px, 3.2vw, 34px)/1.1 var(--display); letter-spacing: -.01em; }
.featured .txt span.d { color: var(--ink2); margin-bottom: var(--s5); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin: 0 0 var(--s6); }
.card { text-decoration: none; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .12s; }
.card:hover { transform: translateY(-3px); }
.art { position: relative; overflow: hidden; background: var(--tint); isolation: isolate; }
.art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pd-grain); background-size: 200px; }
.card .art { height: 184px; }
.card .art .phone { position: absolute; width: 108px; border-radius: 18px; padding: 4px; }
.card .art .phone img { border-radius: 14px; }
.card .art.p1 .phone { left: calc(50% - 54px); top: 28px; transform: rotate(-4deg); }
.card .art.p2 .phone:nth-of-type(1) { left: calc(50% - 106px); top: 34px; transform: rotate(-8deg); }
.card .art.p2 .phone:nth-of-type(2) { left: calc(50% - 2px); top: 24px; transform: rotate(6deg); }
.card .art.icons { display: grid; place-items: center; }
.card .art.icons .row { display: flex; gap: var(--s3); transform: rotate(-5deg); }
.card .art.icons .ic { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 18px -10px rgba(0,0,0,.4); background: #fff; }
.card .art.type { display: grid; place-items: center; padding: var(--s5); }
.card .art.type .big { font: 600 28px/1.05 var(--display); letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.tag { position: absolute; left: var(--s3); top: var(--s3); z-index: 3; padding: 6px 10px; border-radius: 999px; background: #121212; color: #fff; font: 700 11px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.card .txt { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; flex: 1; }
.card .txt b { font: 600 19px/1.22 var(--display); margin: 0 0 var(--s2); text-wrap: balance; }
.card .txt span.d { margin: 0 0 var(--s4); font-size: 15px; line-height: 1.45; color: var(--ink2); }
.card .meta { margin-top: auto; font-size: 13px; color: var(--ink2); display: flex; gap: var(--s2); align-items: center; }
.card .meta .ic { width: 20px; height: 20px; border-radius: 6px; }

/* ---------- closing card with the icon wall ---------- */
.endcta { border-radius: var(--r-lg); padding: var(--s6); background: #121212; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; overflow: hidden; margin: var(--s8) 0 0; }
.endcta .k { margin: 0 0 var(--s2); font: 700 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.endcta .h { margin: 0 0 var(--s2); font: 600 clamp(26px, 3.4vw, 32px)/1.12 var(--display); letter-spacing: -.01em; }
.endcta p { margin: 0 0 var(--s5); color: rgba(255,255,255,.72); }
.endcta .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin: 0; }
.endcta .play { background: #fff; color: #121212; }
.endcta .alt { color: #fff; font-weight: 600; text-decoration-color: rgba(255,255,255,.5); }
.iconwall { display: grid; grid-template-columns: repeat(5, 40px); gap: var(--s2); transform: rotate(-6deg); }
.iconwall .ic { width: 40px; height: 40px; border-radius: 10px; }

/* sticky play bar: phones only */
.stickyplay { display: none; }

footer { border-top: 1px solid var(--line); margin-top: var(--s8); }
footer .page { padding-top: var(--s5); padding-bottom: var(--s6); color: var(--ink2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
footer a { color: var(--ink2); }
footer .social { display: flex; gap: 14px; align-items: center; }
footer .social a { display: inline-flex; color: inherit; text-decoration: none; }
footer .social a:hover { color: var(--ink); }
footer .social svg { display: block; }

/* ---------- tablet: the sidebar goes, the column stays aligned ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 680px); justify-content: start; }
  .side { display: none; }
  .cover { grid-template-columns: minmax(0, 1fr) 340px; }
  .fan { height: 380px; }
  .fan .phone { width: 160px; border-radius: 24px; padding: 6px; }
  .fan .phone img { border-radius: 19px; }
  .fan.n3 .phone:nth-child(2), .fan.n1 .phone { left: calc(50% - 80px); }
  .fan.n2 .phone:nth-child(1) { left: calc(50% - 160px); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .featured .art { min-height: 280px; }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
  :root { --gut: 20px; }
  body { font-size: 17px; }
  h2 { margin-top: var(--s7); }
  main > p:first-child { font-size: 18.5px; }
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "logo links"; }
  .back { display: none; }
  .logo { justify-self: start; }
  .layout { padding-top: var(--s6); }
  .cover { grid-template-columns: 1fr; gap: 0; padding-top: var(--s3); }
  .cover .copy { padding-bottom: var(--s5); }
  .fan { height: 270px; margin: 0 calc(-1 * var(--gut)); }
  .fan .phone { width: 140px; border-radius: 22px; padding: 5px; bottom: -110px; }
  .fan .phone img { border-radius: 18px; }
  .fan.n3 .phone:nth-child(1) { left: calc(50% - 190px); }
  .fan.n3 .phone:nth-child(2) { left: calc(50% - 70px); bottom: -80px; }
  .fan.n3 .phone:nth-child(3) { right: auto; left: calc(50% + 50px); }
  .fan.n2 .phone:nth-child(1) { left: calc(50% - 135px); }
  .fan.n2 .phone:nth-child(2) { left: calc(50% - 5px); }
  .fan.n1 .phone { left: calc(50% - 70px); bottom: -90px; }
  .answer, .feature, .dev, .endcta { padding: var(--s4); }
  .answer p { font-size: 18px; }
  .way { grid-template-columns: 1fr; gap: var(--s3); }
  .way .pic { height: 128px; }
  .way .step { padding: 0 var(--s2) var(--s2); }
  .feature { grid-template-columns: 1fr; gap: var(--s4); }
  .feature .crop { height: 180px; }
  .minis, .minis.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .mini .crop { height: 120px; }
  .days { grid-template-columns: repeat(5, 124px); overflow-x: auto; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) var(--s2); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); }
  .day { scroll-snap-align: start; }
  .howto, .scales { grid-template-columns: 1fr; gap: var(--s3); }
  .pair b { min-height: 64px; padding: var(--s3) var(--s4); font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .gcard .crop { height: 120px; }
  .gcard .gname { font-size: 17px; }
  .posts { grid-template-columns: 1fr; gap: var(--s4); }
  .featured .art { min-height: 240px; }
  .featured .art .phone { width: 128px; bottom: -110px; }
  .featured .art .phone:nth-child(1) { left: calc(50% - 176px); }
  .featured .art .phone:nth-child(2) { left: calc(50% - 64px); bottom: -84px; }
  .featured .art .phone:nth-child(3) { left: calc(50% + 48px); }
  .featured .txt { padding: var(--s5) var(--s4); }
  .card .txt { padding: var(--s4); }
  .endcta { grid-template-columns: 1fr; }
  .iconwall { display: none; }
  footer .page { padding-bottom: 104px; }
  .stickyplay { display: flex; position: fixed; left: var(--s3); right: var(--s3); bottom: max(var(--s3), env(safe-area-inset-bottom)); z-index: 40; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s3); border-radius: var(--r); background: rgba(18,18,18,.94); color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); transform: translateY(150%); transition: transform .25s; }
  .stickyplay.on { transform: none; }
  .stickyplay .ic { width: 36px; height: 36px; border-radius: 10px; }
  .stickyplay .t { flex: 1; font: 600 15px/1.25 var(--ui); }
  .stickyplay small { display: block; font-weight: 400; color: rgba(255,255,255,.7); font-size: 13px; }
  .stickyplay .play { padding: 11px 16px; font-size: 15px; background: #fff; color: #121212; }
}
@media (prefers-reduced-motion: reduce) { .stickyplay, .q .dot { transition: none; } }
