/* confused_dev — studio site.
   Dark ground, typewriter display face, spec charts borrowed from a parts list.
   Palette and type are deliberately narrow. One animated moment: on load the
   wordmark's amber bloom sputters twice before it holds, and the caret settles
   with it. Nothing else moves on its own. */

:root {
  --ground: #0b1618;
  --raised: #102023;
  --rule: #22383c;
  --text: #dfe8e4;
  --muted: #8fa6a3;
  --mint: #79b3a6;
  --amber: #e8a33d;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --measure: 62ch;
  --column: 64rem;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --chart: "Special Elite", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd { margin: 0; }

a { color: var(--text); text-decoration-color: var(--mint); text-underline-offset: .22em; }
a:hover { color: var(--mint); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 1px; }

.skip {
  position: absolute; left: -9999px;
  padding: .5rem .75rem; background: var(--raised); color: var(--text);
}
.skip:focus { left: var(--gutter); top: .75rem; z-index: 5; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 14vh, 9rem) var(--gutter) clamp(3.5rem, 9vh, 6rem);
  border-bottom: 1px solid var(--rule);
}

.hero > * { position: relative; z-index: 1; }

/* the name sputters twice before it holds */
@keyframes catch {
  0%, 5%   { opacity: 0; }
  7%       { opacity: .85; }
  11%      { opacity: .05; }
  16%      { opacity: 1; }
  21%      { opacity: .15; }
  30%      { opacity: .8; }
  40%, 100%{ opacity: 1; }
}

.hero__nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: flex-end;
  max-width: var(--column);
  margin: 0 auto clamp(3rem, 10vh, 6rem);
  font-family: var(--chart);
  font-size: .82rem;
  letter-spacing: .04em;
}
.hero__nav a { color: var(--muted); text-decoration: none; }
.hero__nav a:hover { color: var(--mint); }

.hero__plate { max-width: var(--column); margin: 0 auto; }

.byline {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--muted);
}

.wordmark {
  position: relative;
  margin-top: .5rem;
  font-family: var(--chart);
  font-size: clamp(2.2rem, 7.6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.05;
  color: #f4f8f5;
  text-shadow: 0 0 34px rgba(232,163,61,.16);
}

/* the light in the hero is cast by the name itself */
.wordmark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2.5rem;
  top: 50%;
  width: clamp(20rem, 48vw, 36rem);
  height: clamp(13rem, 26vw, 21rem);
  transform: translateY(-50%);
  pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% 50%,
      rgba(232,163,61,.20) 0%, rgba(232,163,61,.08) 45%, rgba(232,163,61,0) 75%);
  animation: catch 1.8s steps(1, end) 1 both;
}

/* a prompt caret: it blinks with the bloom's stutter, then stays lit */
.wordmark__caret {
  display: inline-block;
  width: .19em;
  height: .72em;
  margin-left: .14em;
  vertical-align: -.02em;
  background: var(--mint);
  animation: catch 1.8s steps(1, end) 1 both;
}

.lede {
  max-width: 46ch;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

/* ---------- sections ---------- */

.section {
  max-width: var(--column);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) var(--gutter);
}
.section + .section { border-top: 1px solid var(--rule); }

.section__title {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.005em;
  color: #b9cac6;
  margin-bottom: clamp(1.75rem, 5vh, 3rem);
}

.section__note {
  max-width: var(--measure);
  margin-top: -1rem;
  margin-bottom: clamp(1.75rem, 5vh, 2.75rem);
  color: var(--muted);
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: #f2f7f4; font-weight: 700; }

/* ---------- games ---------- */

.game + .game { margin-top: clamp(2.5rem, 6vh, 3.5rem); padding-top: clamp(2.25rem, 5vh, 3rem); border-top: 1px solid var(--rule); }

.game__name {
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.015em;
}

.game__name a {
  text-decoration: none;
  background-image: linear-gradient(var(--rule), var(--rule));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .15s ease, color .15s ease;
}
.game__name a:hover {
  color: var(--mint);
  background-image: linear-gradient(var(--mint), var(--mint));
}

.game__pitch {
  max-width: var(--measure);
  margin-top: .85rem;
  color: var(--muted);
}

.chart {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  margin-bottom: 0;
  max-width: 44rem;
  font-size: .95rem;
}
.chart > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: .25rem 1.5rem;
  padding: .6rem 0;
  border-top: 1px solid var(--rule);
}
.chart dt {
  font-family: var(--chart);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--muted);
  padding-top: .15rem;
}

.dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  margin-right: .55rem;
  vertical-align: .08em;
  border-radius: 50%;
  background: var(--rule);
  box-shadow: 0 0 0 1px var(--rule);
}
.dot--live { background: var(--amber); box-shadow: 0 0 10px rgba(232,163,61,.55); }

/* ---------- contact, footer ---------- */

.contact { margin-top: 1.25rem; font-size: clamp(1.15rem, 3vw, 1.5rem); }
.contact a { text-decoration-thickness: 1px; }

.fineprint { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }

.footer {
  max-width: var(--column);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4rem) var(--gutter) 4rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--muted);
}
.footer p + p { margin-top: .4rem; }
.footer .footer__meta { margin-top: 1.25rem; }
.footer__meta a { margin-left: .75rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .wordmark::before, .wordmark__caret { animation: none; opacity: 1; }
}

@media (max-width: 34rem) {
  .chart > div { grid-template-columns: 1fr; gap: .15rem; padding: .7rem 0; }
}

/* ---------- inner pages ---------- */

.page-head {
  max-width: var(--column);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
}
.page-head__back {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.doc .prose h2 {
  margin-top: clamp(2rem, 5vh, 2.75rem);
  margin-bottom: .5rem;
  font-family: var(--chart);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--mint);
}
.doc .prose p + p { margin-top: .9rem; }
.doc .fineprint { margin-bottom: 1.5rem; }

.doc .section__title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  color: #f2f7f4;
  margin-bottom: clamp(1.25rem, 3vh, 1.75rem);
}

/* ---------- a game page ---------- */

.alsoby {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding-top: clamp(1.5rem, 4vh, 2rem);
  border-top: 1px solid var(--rule);
}
.alsoby h2 {
  font-family: var(--chart);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
}
.alsoby ul {
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}
.alsoby a { text-decoration-thickness: 1px; }

/* ---------- the company card ---------- */

.card { padding-top: clamp(3.5rem, 10vh, 6rem); }
.lede-sm {
  max-width: 48ch;
  margin-bottom: clamp(1rem, 3vh, 1.5rem);
  font-size: 1.1rem;
  color: #c3d2ce;
}
.chart--wide { max-width: var(--measure); }
.chart--wide > div:last-child { border-bottom: 1px solid var(--rule); }
