/* homepage only: hero, marquee, projects, devlog list, about */

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); position: relative; z-index: 2;
}
.hero .kicker { color: var(--orange); font-size: 14px; margin-bottom: 12px; }
.word {
  font-size: clamp(72px, 18vw, 260px); font-weight: 700; letter-spacing: -.06em; line-height: .85;
  display: flex; user-select: none;
}
.word .no { color: var(--fg); transition: color .6s ease; display: inline-flex; }
html.dark .word .no { color: var(--bg); }
.word .no span, .word .iggy span { display: inline-block; }
.word .dot { color: var(--orange); }
/* extra top margin clears the g/y descenders, which hang ~.22em below the wordmark */
.hero p.tag { max-width: 520px; margin-top: calc(28px + min(4vw, 58px)); font-size: clamp(17px, 2vw, 21px); line-height: 1.45; }
.hero p.tag em { font-style: normal; color: var(--orange); }
.scroll-cue { position: absolute; bottom: 28px; left: var(--gutter); font-size: 12px; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { border-block: 2px solid var(--line); background: var(--orange); color: #0d0d0d; overflow: hidden; white-space: nowrap; position: relative; z-index: 2; }
/* trailing padding = gap, so each copy is exactly 1/3 of the track and the loop has no jump */
.marquee .track { display: inline-flex; gap: 48px; padding: 14px 48px 14px 0; font-weight: 700; font-size: 20px; }
.marquee .track span::after { content: "✦"; margin-left: 48px; }

/* ---------- sections ---------- */
section.block { padding: 120px var(--gutter); position: relative; z-index: 2; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(40px, 7vw, 88px); letter-spacing: -.04em; line-height: 1; }
.sec-head .num { color: var(--orange); font-size: 14px; }
.sec-head .aside { color: var(--muted); font-size: 14px; margin-left: auto; }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; min-height: 420px;
  transition: background .5s, box-shadow .2s, transform .2s;
  box-shadow: 6px 6px 0 var(--line);
}
.card:hover { box-shadow: 10px 10px 0 var(--orange); transform: translate(-3px, -3px); }
.card .shot {
  border: 2px solid var(--line); border-radius: 12px; aspect-ratio: 16/10; overflow: hidden;
  display: grid; place-items: center; position: relative; background: var(--bg);
}
.card .shot.phone { aspect-ratio: auto; height: 210px; background: transparent; border: 0; }
.phone-frame {
  width: 108px; height: 206px; border: 3px solid var(--line); border-radius: 20px; background: #0d0d0d;
  position: relative; overflow: hidden;
}
/* Emberbound: the game's own background, font and phoenix */
.phone-frame.ember { background: #111012; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0 16px; }
.ember-title { font: 400 10px "Tiny5", ui-monospace, monospace; color: #ff784f; letter-spacing: .04em; }
.ember-bird { width: 96px; height: 104px; }
.ember-bird svg { display: block; width: 100%; height: 100%; }
.ember-bird .t { fill: var(--tint); }
.ember-btn { font: 400 10px/1 "Tiny5", ui-monospace, monospace; color: #111012; background: #ff784f; border: 2px solid #b84f38; box-shadow: 2px 2px 0 #743126; padding: 4px 8px; }
/* Project Incremental: the Nursery world, rendered live by a port of the game's renderer */
.phone-frame.nursery { background: #0d0c0e; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px 0 12px; }
.nursery-title { font: 400 9px/1.15 "Tiny5", ui-monospace, monospace; color: #ffc65a; letter-spacing: .06em; text-align: center; }
.nursery-world { width: 96px; height: 96px; image-rendering: pixelated; }
.nursery-stage { font: 400 10px/1 "Tiny5", ui-monospace, monospace; color: #0d0c0e; background: #f58a2a; border: 2px solid #942a14; box-shadow: 2px 2px 0 #5a1a14; padding: 4px 8px; }
.nursery-seed { font: 400 8px/1 "Tiny5", ui-monospace, monospace; color: #72727a; }
/* the title link covers the whole card; the footer links sit above it */
.game-card { position: relative; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 4px; }
.card .foot .links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; white-space: nowrap; position: relative; z-index: 1; }
.card .badge { align-self: flex-start; font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 1.5px solid var(--line); }
.badge.live { background: var(--orange); color: #0d0d0d; border-color: #0d0d0d; }
.badge.wip { background: repeating-linear-gradient(45deg, var(--orange) 0 8px, #0d0d0d 8px 16px); color: #fff; border-color: #0d0d0d; text-shadow: 0 0 3px #000; }
.card h3 { font-size: 26px; letter-spacing: -.02em; }
.card p { color: var(--muted); line-height: 1.5; font-size: 15px; }
.card .foot { margin-top: auto; display: flex; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; }
.card .foot a { text-decoration: none; font-weight: 700; }
.card .foot a:hover { color: var(--orange); }
.progress { height: 10px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); }
.progress-label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.mini-browser { width: 100%; height: 100%; display: flex; flex-direction: column; }
.mini-browser .bar { height: 22px; border-bottom: 2px solid var(--line); display: flex; gap: 5px; align-items: center; padding: 0 8px; }
.mini-browser .bar b { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.mini-browser .dots { display: inline-block; width: 3ch; text-align: left; }
.mini-browser .body { flex: 1; display: grid; place-items: center; font-weight: 700; font-size: 34px; letter-spacing: -.05em; }
/* minoko: her catalogue's paper colour, a few product photos tossed on the table, the logo in the middle */
.mini-browser.minoko .body { position: relative; background: #fbf6ee; }
.minoko .snap {
  position: absolute; left: var(--x); top: var(--y); width: 26%; transform: rotate(var(--r));
  border: 4px solid #fffdf8; border-bottom-width: 10px; box-shadow: 0 3px 8px rgb(30 34 64 / .18); transition: transform .3s;
}
.card:hover .minoko .snap { transform: rotate(calc(var(--r) * -1)); }
.minoko .logo { position: relative; width: 22%; }

/* ---------- devlog ---------- */
.log { border-top: 2px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 20px; border-bottom: 2px solid var(--line); cursor: pointer; position: relative;
  text-decoration: none; color: inherit;
}
.entry::before { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform .3s ease; z-index: -1; }
.entry:hover::before, .entry:focus-visible::before { transform: scaleY(1); }
.entry:hover, .entry:focus-visible { color: #0d0d0d; }
.entry:hover .date, .entry:hover .sub, .entry:focus-visible .date, .entry:focus-visible .sub { color: #0d0d0d; }
.entry:focus-visible { outline: 3px solid #0d0d0d; outline-offset: -3px; }
.entry .date { color: var(--muted); font-size: 13px; }
.entry h4 { font-size: clamp(20px, 3vw, 30px); letter-spacing: -.02em; }
.entry .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.entry .tag { font-size: 11px; border: 1.5px solid currentColor; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
/* drafts: ideas that aren't posts yet. no link, no orange, no lying */
.log-label { font-size: 12px; color: var(--muted); padding: 36px 20px 12px; border-bottom: 2px solid var(--line); }
.entry.draft { cursor: default; }
.entry.draft::before { display: none; }
.entry.draft h4, .entry.draft .tag { opacity: .45; }
.entry.draft:hover, .entry.draft:hover .date, .entry.draft:hover .sub { color: inherit; }
.entry.draft:hover .date, .entry.draft:hover .sub { color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about p { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.01em; }
/* Space Grotesk has no italic, so emphasis here is bold (an underline cut through the y) */
.about p em { font-style: normal; font-weight: 700; }
.about p .hl { background: var(--orange); color: #0d0d0d; padding: 0 6px; }
/* spec sheet: label, dotted leader, number. A parts list for the studio */
.spec { border: 2px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 6px 6px 0 var(--line); overflow: hidden; transition: background .5s; }
.spec-head { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 2px solid var(--line); font-size: 12px; color: var(--muted); }
.spec .row { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; }
.spec .row + .row { border-top: 1.5px solid color-mix(in srgb, var(--line) 15%, transparent); }
.spec .row::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--muted); transform: translateY(-.3em); }
.spec dt { order: 0; font: 14px "JetBrains Mono", ui-monospace, monospace; }
/* every value looks the same: orange means "the answer". The lights value follows the real lights
   through the light-only/dark-only spans, no JS needed */
.spec dd { order: 2; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: right; color: var(--orange); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .entry .tag { justify-self: start; }
}
