:root {
  /* An equipment data plate: stamped condensed headings, mono field labels, gold rules. The machine stands behind the plate. */
  --bg: #04090a;
  --ink: #f3efe3;
  --mute: #98a59b;
  --gold: #f2c14e;
  --green: #35a063;
  --silver: #d5dade;
  --line: rgba(242, 193, 78, .28);
  --panel: rgba(6, 14, 12, .74);
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.6vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; scroll-behavior: smooth; }
html[data-motion="off"] { scroll-behavior: auto; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body[data-view="feed"] { overflow: hidden; }
a { color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; background: var(--bg); }
#scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--scrim, 0);
  background: linear-gradient(90deg, rgba(4, 9, 10, .95) 0%, rgba(4, 9, 10, .88) 56%, rgba(4, 9, 10, .1) 100%); }
body.no3d #stage { background: radial-gradient(120% 80% at 70% 30%, #12301f 0%, var(--bg) 60%); }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--gutter) 26px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(rgba(4, 9, 10, .97) 48%, rgba(4, 9, 10, 0)); }
.top a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.top a:hover { color: var(--gold); }
.top .mark { color: var(--gold); font-weight: 600; white-space: nowrap; }
.top .mark .tld { color: var(--ink); }
.top nav { display: flex; gap: clamp(14px, 3vw, 30px); }
/* the name with ".ai" and three links must stay on one line down to a 320px phone */
@media (max-width: 400px) { .top { letter-spacing: .06em; gap: 10px; } .top nav { gap: 12px; } }

main { position: relative; z-index: 2; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

.hero { min-height: 100vh; min-height: 100svh; display: grid; align-content: end; gap: 28px; padding: 96px var(--gutter) 44px; }
.hero > * { max-width: min(600px, 46vw); }
.hero-copy { display: grid; gap: 18px; }
h1 { font: 900 clamp(4.4rem, 10.6vw, 11.5rem)/.84 var(--display); letter-spacing: -.012em; text-transform: uppercase; white-space: nowrap; }
h1 .dot { color: var(--gold); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 34em; color: var(--ink); text-shadow: 0 1px 14px rgba(4, 9, 10, .9); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 2px; cursor: pointer;
  font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.btn.gold { background: var(--gold); color: #1b1404; border: 1px solid var(--gold); }
.btn.gold:hover { background: #ffd66e; }
.btn.line { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.btn.line:hover, .btn.line[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

.plate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background-color: var(--panel); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  background-image: radial-gradient(circle at 9px 9px, var(--silver) 0 2px, transparent 2.6px), radial-gradient(circle at calc(100% - 9px) 9px, var(--silver) 0 2px, transparent 2.6px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--silver) 0 2px, transparent 2.6px), radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--silver) 0 2px, transparent 2.6px); }
.plate > div { padding: 15px 20px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.plate > div:nth-child(3n) { border-right: 0; }
.plate > div:nth-last-child(-n+3) { border-bottom: 0; }
.plate dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.plate dd { font: 800 1.7rem/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; font-variant-numeric: tabular-nums; margin-top: 4px; }

.band { padding: clamp(64px, 11vh, 120px) var(--gutter) 0; max-width: min(820px, 64vw); display: grid; gap: 18px; }
h2 { font: 800 clamp(2.6rem, 6.4vw, 4.6rem)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
h3 { font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.band > h3 { margin-top: 30px; scroll-margin-top: 84px; }
.say { max-width: 36em; color: #dcd9cd; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; margin-top: 10px; }
.tiles li { display: grid; gap: 2px; align-content: start; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.tiles b { font: 900 clamp(2.3rem, 4.6vw, 3.3rem)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.tiles li > span { font-weight: 500; line-height: 1.3; }
.tiles i { font: 400 12px/1.4 var(--mono); color: var(--mute); font-style: normal; }

.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 170px; margin-top: 6px; padding-top: 16px; border-bottom: 1px solid var(--line); }
.hours div { position: relative; min-height: 2px; background: linear-gradient(var(--gold), var(--green)); border-radius: 1px 1px 0 0; }
.hours div[data-n="0"] { background: rgba(213, 218, 222, .22); }
.hours div span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: 3px; font: 500 9.5px/1 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.hours-x { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--mute); }

.latest { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 30px; align-items: end; margin-top: 6px; }
.latest-copy { display: grid; gap: 18px; justify-items: start; padding-bottom: 6px; }

.frame { position: relative; aspect-ratio: 9 / 16; width: 100%; background: #020506; border: 1px solid var(--line); overflow: hidden; }
.frame .live { position: absolute; inset: 0; }
.post-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.frame .tag { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
  font: 500 10.5px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 8px #020506, 0 0 2px #020506; font-variant-numeric: tabular-nums; }
.frame .cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 64px 16px 16px; pointer-events: none;
  background: linear-gradient(rgba(2, 5, 6, 0), rgba(2, 5, 6, .9) 52%); }
.frame .cap h3 { font-size: clamp(1.45rem, 4.4vw, 1.9rem); }
.frame .cap .c { font-size: 14.5px; line-height: 1.42; color: #e4e1d5; }
.frame .cap .hint { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.frame .cap .more { pointer-events: auto; justify-self: start; margin-top: 2px; padding: 6px 0 2px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.frame .cap .more:hover { color: var(--gold); }
.frame .fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--mute); }

/* the list of every post, on the home page */
.postlist { margin-top: 2px; border-top: 1px solid var(--line); }
.postlist a { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.postlist a:hover b { color: var(--gold); }
.postlist span, .postlist i { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--mute); white-space: nowrap; }
.postlist span { color: var(--gold); }
.postlist b { font: 800 1.35rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }

/* a post's own page (p/<name>/): the piece running on one side, its words on the other */
body[data-view="post"] { background: radial-gradient(110% 70% at 78% 0%, #0f2a1c 0%, var(--bg) 62%) fixed var(--bg); }
.post-page { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: 96px var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.post-stage { position: sticky; top: 84px; }
.post-stage .frame { width: auto; height: min(78vh, 760px); height: min(78svh, 760px); max-width: 100%; }
.post-words { display: grid; gap: 18px; align-content: start; max-width: 38em; padding-top: 6px; }
.post-words h1 { font: 800 clamp(2.6rem, 5.6vw, 4.4rem)/.92 var(--display); letter-spacing: -.005em; white-space: normal; text-wrap: balance; }
.post-words .lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink); text-shadow: none; }
.post-words > p { color: #dcd9cd; }
.post-words .hint { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.post-words .by { font-size: 14.5px; color: var(--mute); padding-top: 16px; border-top: 1px solid var(--line); }
.post-nav { display: grid; margin-top: 14px; border-top: 1px solid var(--line); }
.post-nav a { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font: 800 1.3rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.post-nav a span { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; color: var(--gold); }
.post-nav a:hover { color: var(--gold); }
.lost { position: relative; z-index: 2; display: grid; gap: 18px; align-content: center; min-height: 100vh; min-height: 100svh; padding: 96px var(--gutter) 60px; max-width: 760px; }

.about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 6px; }
.about > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.about p { font-size: 15.5px; color: #dcd9cd; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(64px, 11vh, 120px); padding: 22px var(--gutter) 30px; border-top: 1px solid var(--line);
  font: 400 11.5px/1.5 var(--mono); letter-spacing: .08em; color: var(--mute); background: rgba(4, 9, 10, .7); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; letter-spacing: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

#feed { position: fixed; inset: 0; z-index: 10; background: var(--bg); }
.feed-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter);
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); background: linear-gradient(rgba(4, 9, 10, .9), rgba(4, 9, 10, 0)); }
.feed-top a { color: var(--gold); text-decoration: none; padding: 6px 0; }
.feed-scroll { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
.feed-post { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 52px 12px 12px; }
.feed-post .frame { width: auto; height: min(100%, calc((100vw - 24px) * 16 / 9)); }

/* The stacked layout: a narrow screen, or any screen taller than it is wide (hero.js puts the head top-centre on
   exactly the same rule). The words never start higher than just under the head, however short the screen is:
   on a short phone they run below the first screen and scroll, the head keeps its room. */
@media (max-width: 760px), (max-aspect-ratio: 105/100) {
  #scrim { background: rgba(4, 9, 10, .88); }
  .hero { min-height: 0; padding: 0 var(--gutter) 36px; }
  .hero > * { max-width: none; }
  .hero-copy { min-height: 100vh; min-height: 100svh; align-content: end; padding: max(96px, 49vh) 0 30px; padding-top: max(96px, 49lvh); }
  h1 { font-size: clamp(4.2rem, 21vw, 7rem); }
  .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .plate > div:nth-child(2n) { border-right: 0; }
  .plate > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .plate > div:nth-last-child(-n+2) { border-bottom: 0; }
  .band { max-width: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .latest { grid-template-columns: minmax(0, 1fr); }
  .latest #latest-frame { max-width: 340px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .hours div span { font-size: 8px; }
  .postlist a { grid-template-columns: 5em minmax(0, 1fr); }
  .postlist i { grid-column: 2; }
  .post-page { grid-template-columns: minmax(0, 1fr); padding-top: 78px; }
  .post-stage { position: static; display: grid; justify-items: center; }
  .post-stage .frame { height: min(70vh, calc((100vw - 2 * var(--gutter)) * 16 / 9)); height: min(70svh, calc((100vw - 2 * var(--gutter)) * 16 / 9)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
