/* =========================================================================
   ONE IS FAKE - public site, printed in the same language as the app.
   A broadsheet: paper stock, halftone screen, masthead rules, columns, and
   one element always set out of register.

   Fonts are served from this origin, not a CDN: the app bundles the same
   three faces, and a font request to a third party is a tracking request the
   privacy policy would then have to describe.
   ========================================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --stock: #f3eee3;
  --ink: #17130d;
  --dim: #574936;
  --mute: #8d7d67;
  --rule: rgba(20, 17, 12, 0.34);
  --hair: rgba(20, 17, 12, 0.15);
  --red: #c33409;
  --brand: #ff4a18;
  --wonk: "SOFT" 0, "WONK" 1;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --data: "Plex Mono", ui-monospace, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

html { background: var(--stock); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--stock);
  /* The halftone screen: this is what makes it read as printed. */
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 17, 12, 0.07) 0.85px, transparent 0);
  background-size: 3px 3px;
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ------------------------------------------------------------- masthead */

.nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem 0 0.6rem;
  border-bottom: 3px double var(--ink);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
}

/* The mark keeps the reversed E: the wrong thing, printed on purpose. */
.brand .mark {
  color: var(--red);
  letter-spacing: 0.02em;
}

.brand span:last-child {
  font-family: var(--data);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-family: var(--data);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}

.nav-links a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.nav-links a:hover { color: var(--red); border-bottom-color: var(--red); }

/* The dateline under the masthead. */
.dateline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--data);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.dateline b { font-weight: 600; color: var(--ink); }

/* ----------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.4rem 0 3rem;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

.eyebrow {
  font-family: var(--data);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.6rem;
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-copy {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--dim);
  max-width: 46ch;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.3rem;
  background: var(--ink);
  color: var(--stock);
  text-decoration: none;
  font-family: var(--data);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.button:hover { background: var(--red); }

.button.secondary {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.button.secondary:hover { background: var(--ink); color: var(--stock); }

/* ------------------------------------------------- the sample, in columns */

.game-card {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-top: 0.8rem;
}

.card-label {
  display: block;
  font-family: var(--data);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.game-card h2 {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1rem;
}

/* Three claims, three columns. One is printed out of register. */
.answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.answer {
  position: relative;
  padding: 0.9rem 0.7rem 1.1rem;
  border-right: 1px solid var(--hair);
  font-size: 0.95rem;
  line-height: 1.3;
}

.answer:last-child { border-right: 0; }

.answer > span { display: block; }

.answer > span::first-letter {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  font-size: 1.5em;
  line-height: 1;
}

.answer.fake {
  color: var(--stock);
  background: var(--red);
  transform: translateY(6px);
  z-index: 1;
}

/* The black plate, struck a hair off the red one underneath it. */
.answer.fake::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translate(-4px, 4px);
}

.answer.fake > * { position: relative; z-index: 1; }
.answer.fake { isolation: isolate; }

.answer strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.6rem;
  font-family: var(--data);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

@media (max-width: 560px) {
  .answers { grid-template-columns: minmax(0, 1fr); }
  .answer { border-right: 0; border-bottom: 1px solid var(--hair); }
  .answer.fake { transform: none; }
  .answer.fake::before { transform: translate(-3px, 3px); }
}

/* ------------------------------------------------------- document pages */

.page { padding: 2.2rem 0 3rem; }

.page-card { max-width: 68ch; }

.page-card h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }

.date {
  font-family: var(--data);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0.9rem 0 0;
  padding-bottom: 1.1rem;
  border-bottom: 3px double var(--ink);
}

.page-card section { padding: 1.4rem 0; border-bottom: 1px solid var(--hair); }

.page-card h2 {
  font-family: var(--data);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.6rem;
}

.page-card p { margin: 0 0 0.8rem; color: var(--dim); }
.page-card p:last-child { margin-bottom: 0; }
.page-card ol, .page-card ul { color: var(--dim); padding-left: 1.2rem; margin: 0 0 0.8rem; }
.page-card li { margin-bottom: 0.4rem; }
.page-card .button { margin-top: 1.6rem; }

/* --------------------------------------------------------------- folio */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 2.4rem;
  margin-top: 1rem;
  border-top: 3px double var(--ink);
  font-family: var(--data);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
