/* Oh, Okay! (ohokay.app). Printed like the pieces: paper stock, two spot inks, the second out of register, grain over
   the page. Each visit picks one of the twelve ink pairs (site.js); these are the blue and pink defaults. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #F4EFE6;
  --a: #0078BF;
  --b: #FF48B0;
  --over: #002284;
  --ink-text: #2A2622;
  --soft: #6E655C;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font: 400 18px/1.55 "Archivo", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* the grain of the paper, over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.32  0 0 0 0 0.3  0 0 0 1 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

a { color: var(--over); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--a); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* the name, inked twice */
.inked {
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.025em;
  color: var(--a);
  text-shadow: 0.06em 0.045em 0 var(--b);
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}

.mark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
}
.mark svg { width: 0.95em; height: 0.95em; margin-left: -0.3em; margin-right: -0.2em; transform: translateY(0.1em); overflow: visible; }
.mark:hover svg { animation: wiggle 0.5s ease-in-out; }

.reprint {
  font: 600 14px/1 "Archivo", sans-serif;
  color: var(--soft);
  background: transparent;
  border: 1.5px dashed currentColor;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.reprint:hover { color: var(--a); }

/* the first screen */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px 0 40px;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding: 48px 0 64px; }
}

h1 {
  font-size: clamp(64px, 13vw, 132px);
  line-height: 0.95;
  margin: 0;
}
h1 .bang { display: inline-block; width: 0.62em; height: 0.95em; margin-left: -0.1em; vertical-align: -0.08em; overflow: visible; }
h1 .bang svg { width: 100%; height: 100%; overflow: visible; }

.tagline {
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 46px);
  color: var(--b);
  margin: 10px 0 22px;
  mix-blend-mode: multiply;
}

.lede { font-size: 21px; max-width: 34ch; margin: 0 0 28px; }

/* the store button: "coming soon" until the app is live (site.js sets the link) */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--over);
  color: var(--paper);
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 22px 14px 18px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 6px 5px 0 var(--b);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store small { display: block; font-weight: 500; font-size: 13px; opacity: 0.85; }
.store svg { width: 26px; height: 26px; flex: none; }
.store:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 9px 8px 0 var(--b); }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; box-shadow: 6px 5px 0 var(--b); }
.fine { font-size: 14px; color: var(--soft); margin-top: 14px; }

/* the phone, playing an end card */
.phone {
  justify-self: center;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #1C1A18;
  padding: 11px;
  box-shadow: 14px 12px 0 var(--b);
  transform: rotate(3deg);
  position: relative;
}
.phone video, .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  display: block;
  background: var(--paper);
}
.phone .sound {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font: 700 14px/1 "Archivo", sans-serif;
  color: var(--paper);
  background: var(--over);
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

/* the ideas, as a pile of stickers */
section.ideas { padding: 20px 0 50px; }
h2 { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-weight: 700;
  font-size: 17px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 2px solid var(--a);
  color: var(--a);
  background: var(--paper);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.15s ease;
}
.chips li:nth-child(3n) { border-color: var(--b); color: var(--over); }
.chips li:hover { transform: rotate(0deg) scale(1.08); }

/* how it works */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 10px 0 60px; list-style: none; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: #FFFDF9;
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 6px 5px 0 var(--b);
  border: 2px solid var(--a);
}
.steps b { display: block; font-size: 24px; color: var(--a); margin-bottom: 4px; }
.steps span { color: var(--soft); }

/* plain pages: privacy, terms, support */
main.doc { max-width: 720px; padding: 18px 20px 60px; margin: 0 auto; }
main.doc h1 { font-size: clamp(44px, 9vw, 72px); margin: 18px 0 6px; }
main.doc h2 { font-size: 26px; margin: 34px 0 8px; color: var(--a); }
main.doc p, main.doc li { max-width: 62ch; }
main.doc .updated { color: var(--soft); font-size: 15px; margin: 0 0 24px; }
details.q { border-top: 2px dashed color-mix(in srgb, var(--a) 40%, transparent); padding: 14px 0; }
details.q summary { font-weight: 700; font-size: 19px; cursor: pointer; color: var(--over); }
details.q[open] summary { color: var(--a); }

footer.bottom {
  border-top: 2px solid color-mix(in srgb, var(--a) 25%, transparent);
  padding: 22px 0 40px;
  font-size: 15px;
  color: var(--soft);
}
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
footer.bottom a { color: var(--soft); }
footer.bottom a:hover { color: var(--a); }

@keyframes wiggle {
  0%, 100% { transform: translateY(0.1em) rotate(0); }
  25% { transform: translateY(0.1em) rotate(-12deg); }
  60% { transform: translateY(0.1em) rotate(9deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
