/* Stoned Shit to Do When Stoned · readwhenstoned.com/stoned-shit
   The Read When Stoned look (same as /draw/, /play/, /vibes/). Three big ink-bordered tiles, each led by
   a picture of the real thing on the desk colour; the hover is the highlighter. */
@font-face { font-family: "RWS Sans"; src: url("../fonts/archivo-var.woff") format("woff"); font-weight: 400 900; font-stretch: 62% 100%; font-display: swap; }
@font-face { font-family: "RWS Serif"; src: url("../fonts/fraunces.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "RWS Serif"; src: url("../fonts/fraunces-Italic.woff") format("woff"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --desk: #e7e0d0; --page: #f3eee2; --sheet: #fbf8f1; --ink: #161412; --lead: #5a544b; --faint: #8c8577; --rule: rgba(22, 20, 18, .16); --hi: #ffe100;
  --accent: #ffe100; --on-accent: #161412; --focus: #161412; --scrim: rgba(22,20,18,.78);
  --land: #e7e0d0; --land-line: #c3b9a6; --sea: #f3eee2; --ok: #1f6b3a; --bad: #b3261e;
  --sans: "RWS Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "RWS Serif", Georgia, "Times New Roman", serif;
  --f-display: var(--sans); --f-body: var(--serif); --f-mono: var(--sans);
  --foot-ink: #000; --foot-bg: var(--page);
  color-scheme: light;
}

/* ---------- Studio chrome: identical on every Spread Media Studios site ---------- */
.topbar {
  position: relative; z-index: 20;
  height: 38px;
  padding: env(safe-area-inset-top, 0px) clamp(16px, 3.6vw, 48px) 0;
  background: #000; color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.topbar nav { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.topbar a { display: flex; align-items: center; height: 100%; text-decoration: none; color: #fff; }
.topbar .logo-svg { display: block; height: 17px; width: auto; color: #fff; }
.topbar .tb-text { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.topbar a:hover { opacity: .75; }

.studio-foot { margin-top: auto; }
.studio-foot .legal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 14px;
  padding: 10px clamp(16px, 3.6vw, 48px);
  font: 11px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--foot-ink, #000); background: var(--foot-bg, transparent);
}
.studio-foot .legal p { margin: 0; }
.studio-foot .legal nav { display: flex; gap: 14px; flex-wrap: wrap; }
.studio-foot .legal a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.studio-foot .bars { display: grid; grid-template-columns: repeat(8, 1fr); height: clamp(26px, 6vh, 48px); margin: 0; padding: 0; list-style: none; }
.studio-foot .bars li:nth-child(1) { background: #0b0b0b; } .studio-foot .bars li:nth-child(2) { background: #0000ff; }
.studio-foot .bars li:nth-child(3) { background: #00ffff; } .studio-foot .bars li:nth-child(4) { background: #00ff00; }
.studio-foot .bars li:nth-child(5) { background: #ff00ff; } .studio-foot .bars li:nth-child(6) { background: #ff0000; }
.studio-foot .bars li:nth-child(7) { background: #ffffff; } .studio-foot .bars li:nth-child(8) { background: #ffe100; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: #000; color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- base ---------- */
html { height: 100%; -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; min-height: 100%; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font: 400 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--hi); }
mark { background: linear-gradient(transparent 12%, var(--hi) 12%, var(--hi) 88%, transparent 88%); color: inherit; padding: 0 .12em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; box-sizing: border-box; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.cond { font-family: var(--sans); font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: .95; }
.mono { font-family: var(--sans); }
.sub { color: var(--lead); font-size: 16px; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--page);
  text-decoration: none; cursor: pointer; font: 800 16px/1 var(--sans); font-stretch: 78%; letter-spacing: .06em; text-transform: uppercase; box-sizing: border-box; transition: background .2s, color .2s; }
.btn:hover { background: var(--hi); color: var(--ink); }
.btn.primary { background: var(--hi); color: var(--ink); }
.btn.primary:hover { background: var(--ink); color: var(--page); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: var(--hi); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { font: 700 15px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 5px; color: var(--ink); }
.field, .f { display: grid; gap: 7px; }
.field > label, .field > .lab, .f > span { font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lead); }
.field input, .field textarea, .field select, .f input, .f select { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--sheet); color: var(--ink); font: 400 18px/1.4 var(--serif); box-sizing: border-box; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .f select:focus { outline: none; background: #fff6b3; }
.field select, .f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--bad); }
.field small { color: var(--faint); font-size: 14px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 16px; line-height: 1.45; color: var(--lead); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.status { font-size: 16px; min-height: 1.4em; color: var(--lead); }
.status.error { color: var(--bad); } .status.ok { color: var(--ok); }
.fine { font-size: 14px; color: var(--faint); }
.pill { display: inline-block; font: 800 12px/1 var(--sans); font-stretch: 78%; letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.pill.live { background: var(--hi); }
.pill.pending { background: var(--sheet); }
.pill.declined, .pill.removed { color: var(--bad); border-color: currentColor; }

/* ---------- site header ---------- */
.site-head { border-bottom: 2px solid var(--ink); background: var(--page); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.mark { display: block; text-decoration: none; color: var(--ink); line-height: 0; }
.mark svg { height: 38px; width: auto; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a { text-decoration: none; font: 800 15px/1 var(--sans); font-stretch: 78%; letter-spacing: .06em; text-transform: uppercase; padding: 10px 10px; }
.site-nav a:hover { background: var(--hi); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--hi); }
@media (max-width: 560px) { .site-nav a.hide-s { display: none; } .mark svg { height: 32px; } .site-nav a { padding: 10px 7px; font-size: 14px; } }

main { flex: 1 0 auto; }


.mark img { height: 40px; width: auto; display: block; }
@media (max-width: 560px) { .mark img { height: 34px; } }
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(22px, 4vw, 40px); display: grid; gap: 14px; }
.hero h1 { font-size: clamp(48px, 10.5vw, 132px); max-width: 17ch; letter-spacing: -.01em; }
.lede { display: grid; gap: 12px; max-width: 40em; }
.lede p:first-child { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; }
.lede p:last-child { font-size: 18px; color: var(--lead); max-width: 36em; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 880px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile-link { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); background: var(--sheet); transition: transform .2s, box-shadow .2s; }
.tile-link:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.tile-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.shot { position: relative; display: block; background: var(--desk); border-bottom: 2px solid var(--ink); aspect-ratio: 4 / 3.3; overflow: hidden; }
.shot img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; display: block; }
.t-draw .shot img { inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); filter: drop-shadow(0 10px 14px rgba(30, 20, 10, .22)); }
.body { display: grid; gap: 10px; padding: 20px 22px 22px; align-content: start; }
.verb { font-size: clamp(56px, 7vw, 84px); line-height: .82; }
.brand { font: 800 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.line { font-size: 17px; line-height: 1.5; color: var(--lead); }
.tag { justify-self: start; font: 800 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border: 2px solid var(--ink); }
.go { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; font: 800 16px/1 var(--sans); font-stretch: 78%; letter-spacing: .06em; text-transform: uppercase; }
.go svg { width: 22px; height: 22px; transition: transform .2s; }
.tile-link:hover .go svg { transform: translateX(4px); }
.tile-link:hover .verb { background: var(--hi); box-shadow: 0 0 0 4px var(--hi); }

.nightly { margin-block: clamp(32px, 6vw, 64px) 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 32px; align-items: center; }
.nightly > div:last-child { display: grid; gap: 8px; max-width: 38em; }
.nightly h2 { font-size: clamp(34px, 5vw, 56px); }
.clock { display: flex; align-items: baseline; background: var(--ink); color: var(--hi); padding: 10px 18px 8px; font: 900 clamp(56px, 9vw, 104px)/.9 var(--sans); font-stretch: 62%; font-variant-numeric: tabular-nums; }
.clock .c { animation: blink 2s steps(1) infinite; padding: 0 .04em; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 560px) { .nightly { grid-template-columns: minmax(0, 1fr); } .clock { justify-self: start; } }
.fine { padding-block: 0 48px; }
@media (prefers-reduced-motion: reduce) { .clock .c { animation: none; } .tile-link, .go svg { transition: none; } }
