/* HWOK Games — Hard work, ok games. */
:root {
  --ink: #1B2340;
  --ink-soft: #2A3358;
  --paper: #F2F4F8;
  --white: #FFFFFF;
  --steel: #646B85;
  --line: #D5D9E4;
  --stamp: #F6C445;
  --red: #D9423B;

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 0.833rem;
  --s0: 1rem;
  --s1: 1.2rem;
  --s2: 1.44rem;
  --s3: 2.074rem;
  --s4: 2.986rem;
  --s5: clamp(3rem, 9vw, 7.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible { outline-color: var(--stamp); }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--stamp); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; font-size: var(--s-1); }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

/* Hero */
.hero { padding: clamp(3rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem); }
.hero h1 {
  font-size: var(--s5);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: 11ch;
  position: relative;
}
.hero h1 .line { display: block; }
.hero h1 .ok-word { position: relative; display: inline-block; }
.stamp {
  position: absolute;
  right: -0.15em;
  top: 50%;
  translate: 100% -55%;
  font-family: var(--f-display);
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: var(--red);
  border: 0.09em solid var(--red);
  border-radius: 0.14em;
  padding: 0.08em 0.22em 0.12em;
  rotate: -9deg;
  mix-blend-mode: multiply;
  opacity: .92;
  animation: stamp 520ms cubic-bezier(.2,.9,.3,1.3) 650ms both;
  pointer-events: none;
}
@keyframes stamp {
  0% { opacity: 0; scale: 2.4; rotate: -2deg; }
  60% { opacity: .95; scale: .94; rotate: -10deg; }
  100% { opacity: .92; scale: 1; rotate: -9deg; }
}
.hero-lede { margin-top: 2.25rem; max-width: var(--measure); font-size: var(--s1); color: var(--ink-soft); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem;
  font: 700 1rem/1 var(--f-body);
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-stamp { background: var(--stamp); border-color: var(--stamp); color: var(--ink); }
.btn-stamp:hover { background: #FFD666; }
.on-ink .btn-ghost { color: var(--paper); border-color: var(--paper); }
.on-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .muted { color: #AEB4CB; }
.muted { color: var(--steel); }

/* Game feature */
.game { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.game-art { border-radius: 14px; overflow: hidden; background: #121933; aspect-ratio: 16 / 10; }
.game-art svg { width: 100%; height: 100%; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--s-1); font-weight: 700;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(246, 196, 69, .14); color: var(--stamp);
  margin-bottom: 1.25rem;
}
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--stamp); }
.game h2 { font-size: var(--s4); margin-bottom: 1rem; }
.game p { max-width: var(--measure); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 1.5rem 0 2rem; padding: 0; }
.facts dt { color: #AEB4CB; }
.facts dd { margin: 0; font-weight: 700; }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.studio h2 { max-width: 10ch; }
.studio-body p { max-width: var(--measure); }
.promises { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.promises li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.promises strong { font-family: var(--f-display); font-size: var(--s1); line-height: 1.25; }
.promises span { color: var(--steel); }

/* Contact */
.contact { text-align: left; }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); max-width: 14ch; margin-bottom: 1.25rem; }
.contact p { max-width: var(--measure); }
.contact-mail { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.2rem); word-break: break-word; }

/* Footer */
.site-footer { background: var(--ink); color: #C7CCDD; padding: 3rem 0 2rem; font-size: var(--s-1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: baseline; align-self: flex-start; gap: .5rem 1.5rem; }
.site-footer nav a, .site-footer button.linklike { line-height: 1.6; }
.site-footer a { color: var(--paper); }
.site-footer button.linklike { appearance: none; background: none; border: 0; margin: 0; padding: 0; font: inherit; color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.site-footer button.linklike:hover { text-decoration-thickness: 2px; }

/* Legal / prose pages */
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); letter-spacing: -0.035em; }
.page-head p { margin-top: 1rem; color: var(--steel); max-width: var(--measure); }
.prose { max-width: 44rem; padding-bottom: 5rem; }
.prose h2 { font-size: var(--s2); margin: 2.5rem 0 .75rem; }
.prose h3 { font-size: var(--s1); margin: 1.75rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--s-1); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; }
.todo { background: #FFF3CC; padding: 0 .25em; border-radius: 3px; }
.note { border-left: 4px solid var(--stamp); background: var(--white); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }

/* Game page */
.game-hero { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.game-hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.04em; max-width: 12ch; margin: 1rem 0 1.5rem; }
.game-hero .game-art { margin-top: 2.5rem; aspect-ratio: 21 / 9; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.pillars h3 { margin-bottom: .6rem; }
.pillars p { color: var(--steel); margin: 0; }

/* Cookie banner */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
  max-width: 30rem; margin-left: auto;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 6px 6px 0 var(--ink);
}
.cookie[hidden] { display: none; }
.cookie h2 { font-size: var(--s1); margin-bottom: .5rem; letter-spacing: -0.01em; }
.cookie p { font-size: var(--s-1); margin-bottom: .9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { min-height: 42px; padding: .55rem 1rem; font-size: .9rem; flex: 1 1 auto; }
.cookie-prefs { margin: .25rem 0 1rem; border-top: 1px solid var(--line); }
.cookie-prefs[hidden] { display: none; }
.pref { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: var(--s-1); }
.pref strong { display: block; font-size: .95rem; }
.pref span { color: var(--steel); }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(27,35,64,.3); transition: translate .15s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { translate: 20px 0; }
.switch input:disabled + .track { opacity: .55; }
.switch input:focus-visible + .track { outline: 3px solid var(--stamp); outline-offset: 2px; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(3rem, 12vw, 9rem); letter-spacing: -0.05em; }

/* Responsive */
@media (max-width: 860px) {
  .game, .studio { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .promises li { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 520px) {
  .stamp { position: static; display: inline-block; translate: none; margin-left: .15em; vertical-align: middle; }
  .cookie { left: .75rem; right: .75rem; bottom: .75rem; box-shadow: 4px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
