/* Newbroo "Box Art" design: royal blue, gold and cream, like the Specimen box. */
:root {
  --blue: #0b3aa6;
  --blue-deep: #072a7c;
  --navy: #061a4d;
  --gold: #eac04c;
  --cream: #fef8ee;
  --gray: #c9cfdb;
  --gray-dim: #9aa6c2;
  --ink: #0a1233;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--cream);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* The twin stripes from the logo and the box, straight or slanted */
.stripes { height: 26px; background:
  linear-gradient(var(--gold) 0 8px, transparent 8px 14px, var(--cream) 14px 20px, transparent 20px); }
.slant { transform: skewY(-2.2deg); margin: 56px 0; }

/* Header */
header { padding: 22px 0 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bar .logo { width: 220px; height: auto; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a {
  text-decoration: none; font-weight: 700; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
  padding: 4px 0; border-bottom: 3px solid transparent;
}
nav a:hover { border-color: var(--gold); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 24px; }
.eyebrow { font-weight: 800; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--gold); }
h1 {
  font-size: clamp(3rem, 8vw, 6.2rem); line-height: .92; margin: 14px 0 22px;
  font-weight: 900; font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase;
}
h1 span { color: var(--gold); }
.lede { font-size: 1.2rem; max-width: 34rem; color: #e6ecfb; margin: 0; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-stretch: 115%;
  text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
  padding: 15px 24px; border-radius: 3px;
}
.btn.primary { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #b48d22; }
.btn.primary:hover { transform: translateY(2px); box-shadow: 0 3px 0 #b48d22; }
.btn.ghost { border: 2px solid var(--cream); }
.btn.ghost:hover { background: var(--cream); color: var(--blue); }
.box {
  transform: perspective(1200px) rotateY(-14deg) rotateZ(1.5deg);
  box-shadow: 30px 30px 0 rgba(0,0,0,.18), 0 30px 60px rgba(0,0,0,.35);
  border-radius: 4px; max-width: 420px; width: 100%; height: auto; justify-self: center;
}

/* Fact strip */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { border-left: 4px solid var(--gold); padding: 4px 0 4px 16px; }
.stat b { display: block; font-size: 2.4rem; font-weight: 900; font-stretch: 125%; line-height: 1.1; }
.stat span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }

/* Sections */
section { padding: 24px 0 8px; }
h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; margin: 0 0 8px; line-height: 1;
}
.sub { color: var(--gray); margin: 0 0 28px; max-width: 42rem; }
/* Abandoned Projects: the playfield tombstone sits on the heading's baseline. */
.rip-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 0 0 8px; }
.rip-head h2 { margin: 0; }
.rip { height: clamp(60px, 11vw, 112px); width: auto; flex: none; }

/* Screens in TV bezels */
.tv { background: #14161c; padding: 12px; border-radius: 18px; box-shadow: inset 0 0 0 3px #2b2f38, 0 12px 24px rgba(0,0,0,.3); margin: 0; }
.tv img, .tv video { width: 100%; height: auto; aspect-ratio: 640 / 456; object-fit: contain; image-rendering: pixelated; border-radius: 10px; background: #000; }
.tv figcaption { margin: 10px 4px 2px; font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.tour { max-width: 820px; margin: 0 auto 32px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Try the demo / Fetch '83 panels */
.panel { background: var(--navy); border-radius: 6px; padding: 36px; margin-top: 40px; }
.panel h3 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 900; font-stretch: 120%; text-transform: uppercase; }
.panel p { margin: 0; color: #dfe6f8; max-width: 44rem; }
.fetch { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.fetch img { border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.4); width: 100%; height: auto; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 2px; margin-bottom: 10px;
}
.tag.done { background: var(--gold); color: var(--ink); }
.tag.free { background: var(--cream); color: var(--blue); }
.panel .note { font-size: 14px; color: var(--gray-dim); margin-top: 20px; }
.panel .note.fine { margin-top: 4px; }

.tag.plan { border: 2px dashed var(--gray-dim); color: var(--gray); }
.tag.dev { background: var(--gold); color: var(--ink); }
.tag.beta { background: var(--cream); color: var(--blue); }
.tag.hold { border: 2px solid var(--gray-dim); color: var(--gray); }
.tag.gone { background: var(--navy); color: var(--gray); }

/* Games */
h3.minor { font-size: 1.3rem; font-weight: 900; font-stretch: 120%; text-transform: uppercase;
  color: var(--gold); margin: 44px 0 18px; letter-spacing: .04em; }
.devnotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dn { border-left: 4px solid var(--gold); padding: 2px 0 2px 16px; }

/* Fetch '83's Technical Details accordion */
.fetch { align-items: start; }
details.tech { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
details.tech summary {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: .08em;
  font-size: 14px; color: var(--gold); padding: 4px 0;
}
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary:hover { color: var(--cream); }
details.tech summary:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 2px; }
details.tech .chev {
  width: 9px; height: 9px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
details.tech[open] .chev { transform: translateY(2px) rotate(-135deg); }
details.tech .devnotes { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.dn h4 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.dn p { margin: 0; font-size: 15px; color: #dfe6f8; }
.game { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px; align-items: center;
  background: var(--blue-deep); border-radius: 6px; padding: 28px; margin-bottom: 24px; }
.game h3 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 900; font-stretch: 120%; text-transform: uppercase; }
.game p { margin: 0; color: #dfe6f8; font-size: 15px; }
.game .note { font-size: 14px; color: var(--gray-dim); margin-top: 12px; }
.game .note.fine { margin-top: 4px; }
/* Why an abandoned game was dropped, under its description. */
.epitaph { border-left: 4px solid var(--gray-dim); padding: 2px 0 2px 16px; margin-top: 16px; }
.epitaph h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.epitaph p + p { margin-top: 10px; }
/* Abandoned Projects: an accordion, one closed row per project; the row opens its card. */
.graves { display: grid; gap: 12px; }
details.grave { background: var(--blue-deep); border-radius: 6px; }
details.grave summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; cursor: pointer; list-style: none; padding: 18px 28px;
}
details.grave summary::-webkit-details-marker { display: none; }
details.grave summary:focus-visible { outline: 2px solid var(--cream); outline-offset: -2px; border-radius: 6px; }
details.grave .name { font-size: 1.25rem; font-weight: 900; font-stretch: 120%; text-transform: uppercase; }
details.grave .kind { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-dim); }
details.grave summary:hover .name { color: var(--gold); }
details.grave .chev {
  width: 9px; height: 9px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
details.grave[open] .chev { transform: translateY(2px) rotate(-135deg); }
details.grave .game { margin: 0; padding-top: 4px; }
details.grave .game h3 { display: none; } /* the row already shows the name */
.game .board { padding-bottom: 14px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.media .clip { padding: 8px; border-radius: 12px; }
.media .credit { margin: 0; }
.media .clip video { border-radius: 6px; }
.media .clip figcaption { font-size: 12px; margin: 8px 2px 0; }
.shots.two { grid-template-columns: repeat(2, 1fr); }
.shots.four { grid-template-columns: repeat(4, 1fr); }

/* Lunar Lather: the Fetch panel's layout, with the video and GIFs added */
.release .clip { margin-top: 24px; max-width: 640px; padding: 8px; border-radius: 12px; }
.release .clip video { border-radius: 6px; }
.release .clip figcaption { font-size: 12px; margin: 8px 2px 0; }
.release .gifs { grid-column: 1 / -1; }

/* "Created by StellaStream", above the GIFs */
.credit, .panel p.credit { margin: 0 0 12px; font-size: 13px; color: var(--cream); }

/* Specimen Update, under the hero text */
.update { border-left: 4px solid var(--gold); padding: 2px 0 2px 16px; margin: 22px 0 28px; max-width: 34rem; }
.update h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); }
.update ul { margin: 0; padding-left: 18px; color: #dfe6f8; font-size: 15px; }

/* The first physical copy, under the hero's buttons; the photo opens full size */
.first-copy { display: flex; align-items: center; gap: 18px; margin: 32px 0 0; }
.first-copy a { flex: 0 0 140px; border-radius: 4px; overflow: hidden; box-shadow: 0 12px 24px rgba(0,0,0,.35); cursor: zoom-in; }
.first-copy a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.first-copy img { width: 100%; height: auto; }
.first-copy figcaption { font-weight: 800; font-stretch: 112%; font-size: 1.05rem; max-width: 15rem; }
.first-copy figcaption small { display: block; margin-top: 8px; font-weight: 400; font-stretch: 100%; font-size: 13px; line-height: 1.5; color: var(--gray); }
.first-copy figcaption small a { color: var(--gray); }
.post p + p { margin-top: 10px; }
.post a { color: var(--gold); }
.post p.fine { font-size: 13px; color: var(--gray-dim); }
.shots .tv { padding: 8px; border-radius: 12px; }
.shots .tv img, .shots .tv video { border-radius: 6px; }
.shots .tv figcaption { font-size: 12px; margin: 8px 2px 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }

/* Hardware boards */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.board { background: var(--blue-deep); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.board .pic { aspect-ratio: 4 / 3; background: #000; position: relative; overflow: hidden; }
.board .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.board .pic a.zoom { position: absolute; inset: 0; cursor: zoom-in; }
.board .pic a.zoom::after {
  content: "⤢ Full size"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,.65); color: var(--cream); border-radius: 3px; padding: 3px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.board .pic a.zoom:hover::after, .board .pic a.zoom:focus-visible::after { background: var(--gold); color: var(--ink); }
.board .pic a.zoom:focus-visible { outline: 3px solid var(--cream); outline-offset: -3px; }

/* Full-size viewer */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh;
  overflow: visible; text-align: center; cursor: zoom-out; }
dialog.lightbox::backdrop { background: rgba(4, 10, 30, .9); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto;
  margin: 0 auto 14px; border-radius: 6px; background: #000; }
dialog.lightbox .btn { color: var(--cream); background: transparent; cursor: pointer; font-family: inherit; }
.board .body { padding: 20px 22px 24px; }

/* Picture switcher under a board's picture */
.thumbs { display: flex; align-items: flex-start; gap: 8px; padding: 14px 22px 0; }
/* A quarter of the row (four fit on any card), at most 96 px, the same size on every card. */
.thumb { flex: 0 0 calc((100% - 24px) / 4); max-width: 96px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--gray-dim);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; line-height: 1.25; min-width: 0; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #000;
  border: 2px solid var(--gray-dim); border-radius: 4px; opacity: .5; margin-bottom: 5px; }
.thumb:hover img { opacity: .85; }
.thumb[aria-pressed="true"] { color: var(--cream); }
.thumb[aria-pressed="true"] img { border: 3px solid var(--gold); opacity: 1; }
.thumb:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 4px; }
.board h3 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 900; font-stretch: 120%; text-transform: uppercase; }
.board p { margin: 0; color: #dfe6f8; font-size: 15px; }
.board p + p { margin-top: 10px; }

/* StellaStream */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 0; }
.tool img { border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.4); width: 100%; height: auto; }

/* Dev notes */
.log { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.post { border-top: 4px solid var(--gold); padding-top: 14px; }
.post time { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.post h3 { margin: 6px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.post p { margin: 0; font-size: 15px; color: #dfe6f8; }
.log.three { grid-template-columns: repeat(3, 1fr); }
/* The heading and titles link to the blog: cream like the text, underlined in gold on hover. */
#notes h2 a, .post h3 a { color: inherit; text-decoration: none; }
#notes h2 a:hover, #notes h2 a:focus-visible, .post h3 a:hover, .post h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Blog: the pages tools/build-blog.mjs makes in public/blog/ */
nav a[aria-current="page"] { border-color: var(--gold); }
.wrap.blog { max-width: 820px; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0; margin: 0 0 8px; line-height: 1; }
.entry { border-top: 4px solid var(--gold); padding-top: 14px; margin-top: 44px; }
.entry time { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.entry > h2, .entry > h1 { margin: 6px 0 12px; font-size: 1.6rem; line-height: 1.25; font-weight: 900;
  font-stretch: 112%; text-transform: none; letter-spacing: 0; }
.entry > h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.entry > h2 a { text-decoration: none; }
.entry > h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.crumb { margin: 40px 0 0; }
.crumb a, .prose a { color: var(--gold); }
.crumb a { font-weight: 700; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.prose { color: #dfe6f8; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 14px; }
.prose h2, .prose h3, .prose h4 { color: var(--cream); font-size: 1.25rem; font-stretch: 112%; text-transform: none;
  letter-spacing: 0; line-height: 1.3; margin: 26px 0 8px; }
.prose h3, .prose h4 { font-size: 1.1rem; }
.prose img { height: auto; border-radius: 4px; margin: 6px 0; }
.prose blockquote { border-left: 4px solid var(--gold); padding: 2px 0 2px 16px; color: var(--gray); }
.prose pre { background: var(--navy); padding: 14px 16px; border-radius: 4px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; white-space: pre; }
.prose hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 24px 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid rgba(255,255,255,.2); padding: 4px 10px; text-align: left; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.pager .count { color: var(--gray); font-size: 14px; }

footer { background: var(--ink); margin-top: 72px; padding: 48px 0 36px; color: var(--gray); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-end; }
footer .logo { width: 180px; height: auto; margin-bottom: 14px; }
footer a { color: var(--cream); }

@media (max-width: 900px) {
  .hero, .fetch, .tool, .game { grid-template-columns: 1fr; }
  .boards, .devnotes { grid-template-columns: 1fr 1fr; }
  .log.three { grid-template-columns: 1fr; }
  .box { transform: none; max-width: 320px; }
  .fetch img { max-width: 280px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .screens, .shots.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav { gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .screens, .boards, .log, .devnotes, .shots, .shots.two { grid-template-columns: 1fr; }
  .panel, .game { padding: 24px 20px; }
  details.grave summary { padding: 16px 20px; }
}

/* The small centred page: 404 (body class "simple") */
body.simple { min-height: 100vh; display: grid; place-items: center; padding: 16px; line-height: 1.5; }
body.simple main { width: min(100%, 600px); text-align: center; }
body.simple .logo { display: block; width: 100%; height: auto; }
.soon {
  margin: 0; color: var(--gold); font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 900; font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase;
}
body.simple p { margin: .5rem 0; }
body.simple a { color: var(--gold); font-weight: 700; }

@media (max-width: 560px) {
  details.tech .devnotes { grid-template-columns: 1fr; }
}
