/*
Theme Name: Ineffable Dad
Theme URI: https://ineffabledad.com
Author: Ineffable Dad
Description: The Ineffable Dad site. Page content lives in the theme's content/ folder.
Version: 1.8.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ineffabledad
*/

@font-face {
  font-family: "Jersey 25";
  src: url("assets/fonts/jersey25.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/silkscreen.woff") format("woff");
  font-display: swap;
}

/* One look, on purpose: "Rad". Orange and sky blue with navy outlines, the
   same look the games offer, borrowed from a mid-eighties track jacket. */
:root {
  color-scheme: light;
  --page: #CDE7F6;
  --panel: #FFF8EC;
  --ink: #1D2B3A;
  --muted: #46607A;
  --rule: #9CC3DB;
  --orange: #FF7A1A;
  --orange-text: #D9540A;
  --amber: #FFB23F;
  --link: #1B4FB5;
  --display: "Jersey 25", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(52px, 11vw, 112px); line-height: 0.92; letter-spacing: 0.005em; }
h2 { font-size: clamp(36px, 6vw, 56px); line-height: 0.98; }
h3 { font-size: 28px; line-height: 1; }
p { margin: 0; max-width: 62ch; }

.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 22px; }
.label {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.muted { color: var(--muted); }
.accent { color: var(--orange-text); }

/* The retro surface: heavy outline, flat shadow straight down. */
.panel {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--ink);
}

/* Header */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header .brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 24px; line-height: 1; }
.site-nav a:hover { color: var(--orange-text); }

/* The four stripes: the one flourish from the cartridge-box era. */
.stripes { display: flex; flex-direction: column; gap: 6px; width: min(300px, 70%); }
.stripes i { display: block; height: 8px; }
.stripes i:nth-child(1) { background: var(--orange); width: 100%; }
.stripes i:nth-child(2) { background: var(--amber); width: 82%; }
.stripes i:nth-child(3) { background: var(--panel); width: 64%; }
.stripes i:nth-child(4) { background: var(--ink); width: 46%; }

main { display: flex; flex-direction: column; gap: clamp(64px, 10vw, 112px); padding-block: clamp(28px, 5vw, 56px) clamp(72px, 10vw, 120px); }
section { display: flex; flex-direction: column; gap: 22px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero .lede { font-size: clamp(19px, 2.2vw, 22px); max-width: 30em; }

/* An arcade button: it sinks onto its shadow when pressed. */
.button {
  align-self: flex-start;
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  padding: 14px 24px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 60ms, box-shadow 60ms;
}
.button:hover { background: var(--amber); color: var(--ink); }
.button:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }

/* Phone screenshots of the real game. */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; min-width: 0; }
.phone {
  flex: 1 1 0;
  min-width: 0;
  max-width: 230px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 6px 0 var(--ink);
}
.phone:nth-child(2) { transform: translateY(-22px); }
.phone img { width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pillars > div { padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pillars > div::before { content: ""; width: 26px; height: 8px; background: var(--orange); }
.pillars > div:nth-child(2)::before { background: var(--amber); }
.pillars > div:nth-child(3)::before { background: var(--rule); }
.pillars > div:nth-child(4)::before { background: var(--ink); }

/* The first game, laid out like the back of a cartridge box. */
.cartridge {
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.cartridge > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Each game is a cartridge you can pick up: it lifts on hover and seats when pressed. */
.games a {
  background: var(--page);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--ink);
  padding: 10px 12px 8px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 60ms, box-shadow 60ms;
}
.games a::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--dot, var(--orange)); border: 1.5px solid var(--ink); }
.games a::after { content: "\2192"; margin-left: auto; font-family: var(--body); font-size: 18px; color: var(--muted); }
.games a:hover { background: var(--panel); color: var(--ink); }
.games a:hover::after { color: var(--orange-text); }
.games a:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.status { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges img { height: 48px; width: auto; }
/* Google's badge has transparent padding built in; this matches Apple's height. */
.badges .google_play img { height: 71px; margin: -11.5px -9px; }

.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.rules li {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.about { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.about img { width: 150px; }
.about > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* The shelf on the home page: one card per game, like boxes on a store shelf. */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.shelf-card {
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 60ms, box-shadow 60ms;
}
.shelf-card:hover { background: #FFFDF7; color: var(--ink); }
.shelf-card:hover .more { color: var(--orange-text); }
.shelf-card:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.shelf-shot { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; align-self: start; }
.shelf-shot img { width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; }
.shelf-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shelf-copy h3 { font-size: clamp(32px, 4vw, 40px); }
.shelf-copy .muted { font-size: 17px; }
.more { margin-top: auto; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink); }

/* How a night works: numbered panels. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: step; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--pixel); font-size: 13px; letter-spacing: 0.08em; color: var(--orange-text); }

/* The TV: a screenshot in a chunky set with a little stand. */
.tv-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.tv-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tv { position: relative; border: 3px solid var(--ink); border-radius: 14px; padding: 10px; background: var(--ink); box-shadow: 0 6px 0 var(--orange); margin-bottom: 24px; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 34%; height: 12px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 8px 8px; }
.tv img { width: 100%; border-radius: 6px; }

/* The free six. */
.six { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.six > div { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.six img { width: 100%; border: 2px solid var(--ink); border-radius: 6px; }
.rest li { font-size: 13px; padding: 8px 12px; }

/* Pass the controller: one phone beside the copy. */
.pass { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 6vw, 64px); align-items: center; }
.pass .phone { max-width: 240px; width: 100%; }

/* One game's page: the screen on the left, the back of the box on the right. */
.game-page { gap: 28px; }
.back { align-self: flex-start; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink); text-decoration: none; }
.back:hover { color: var(--orange-text); }
.game-intro { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.game-intro .phone { max-width: 300px; width: 100%; }
.game-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.game-copy h1 { font-size: clamp(56px, 10vw, 96px); display: flex; align-items: center; gap: 18px; }
.game-copy h1::before { content: ""; width: 0.32em; height: 0.32em; flex: none; background: var(--dot, var(--orange)); border: 3px solid var(--ink); }
.game-copy .tagline { font-family: var(--display); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.05; }
.game-copy .lede { font-size: clamp(18px, 2vw, 21px); }
.gist { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.game-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  transition: transform 60ms, box-shadow 60ms;
}
.game-nav a:last-child { text-align: right; }
.game-nav a:hover { background: var(--amber); color: var(--ink); }
.game-nav a:hover .label { color: var(--ink); }
.game-nav a:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }

/* Plain text pages: privacy and support. */
.prose { gap: 18px; max-width: 720px; }
.prose h1 { font-size: clamp(44px, 8vw, 72px); }
.prose h2 { font-size: 32px; margin-top: 18px; }
.prose h2.game-heading { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--rule); }
.prose h3 { font-family: var(--body); font-weight: 700; font-size: 20px; line-height: 1.3; margin-top: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--ink); text-decoration: none; padding: 9px 12px 7px; background: var(--panel); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 3px 0 var(--ink); }
.jump a:hover { background: var(--amber); }
[id] { scroll-margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }

.site-footer { border-top: 2px solid var(--rule); padding-block: 32px; font-size: 16px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cartridge { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .tv-section { grid-template-columns: minmax(0, 1fr); }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass .phone { max-width: 200px; margin-inline: auto; }
  .about img { width: 110px; }
  .game-intro { grid-template-columns: minmax(0, 1fr); }
  .game-intro .phone { max-width: 240px; margin-inline: auto; }
  .game-copy { order: -1; }
}
@media (max-width: 420px) {
  .games { grid-template-columns: minmax(0, 1fr); }
  .shelf-card { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); gap: 16px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .games a, .game-nav a, .shelf-card { transition: none; }
}

/* /get and /crew/<CODE> (1.8.0) */
.hero.get, .hero.crew { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.crew-code { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.crew-code .code { margin: 0; font-family: var(--display); font-size: clamp(56px, 12vw, 88px); line-height: 1; letter-spacing: 0.12em; color: var(--ink); }
