/* oddly working: studio homepage.
   Layout: one pair of tight margins; the name runs huge, the apps are a full-bleed log of rows,
   work in progress is a shelf, support is a split. Pixel art only in icons, the caret and the footer TV.
   Fonts: Geologica for text, Martian Mono for small labels (both OFL), Departure Mono (MIT) for the pixel wordmark. See fonts/. */
@font-face { font-family:"Geologica"; src:url("fonts/Geologica-latin-400.woff2") format("woff2"); font-weight:400; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Geologica"; src:url("fonts/Geologica-cyrillic-400.woff2") format("woff2"); font-weight:400; font-display:swap; unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Geologica"; src:url("fonts/Geologica-latin-600.woff2") format("woff2"); font-weight:600; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Geologica"; src:url("fonts/Geologica-cyrillic-600.woff2") format("woff2"); font-weight:600; font-display:swap; unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Geologica"; src:url("fonts/Geologica-latin-700.woff2") format("woff2"); font-weight:700; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Geologica"; src:url("fonts/Geologica-cyrillic-700.woff2") format("woff2"); font-weight:700; font-display:swap; unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Martian Mono"; src:url("fonts/MartianMono-latin-400.woff2") format("woff2"); font-weight:400; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Martian Mono"; src:url("fonts/MartianMono-cyrillic-400.woff2") format("woff2"); font-weight:400; font-display:swap; unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Departure Mono"; src:url("fonts/DepartureMono-Regular.woff2") format("woff2"); font-weight:400; font-display:swap; }

:root {
  color-scheme:dark;
  --bg:#0a0a0a; --step:#141414; --ink:#ececea; --soft:#a3a3a0; --faint:#7d7d7a; --ember:#c8414f;
  --text:"Geologica", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --label:"Martian Mono", ui-monospace, Menlo, monospace;
  --pixel:"Departure Mono", ui-monospace, Menlo, monospace;
  --m:max(16px, min(2.4vw, 32px));
  --gap:clamp(96px, 14vw, 200px);
}

* { box-sizing:border-box; }
html { background:var(--bg); -webkit-text-size-adjust:100%; }
body { margin:0; color:var(--ink); background:var(--bg); font:17px/1.55 var(--text); overflow-x:hidden; }
img { max-width:100%; }
a { color:inherit; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.2em; text-decoration-color:var(--faint); transition:text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color:var(--ember); }
a:focus-visible, summary:focus-visible { outline:2px solid var(--ember); outline-offset:3px; border-radius:2px; }
h1, h2, h3, p, dl, dd { margin:0; }
.wrap { padding-left:max(var(--m), env(safe-area-inset-left, 0px)); padding-right:max(var(--m), env(safe-area-inset-right, 0px)); }
.nowrap { white-space:nowrap; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:var(--m); top:-100px; background:var(--ink); color:var(--bg); padding:8px 12px; z-index:2; }
.skip:focus { top:12px; }

/* bar */
.bar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:max(16px, env(safe-area-inset-top, 0px)); min-height:64px; }
.mark { font:11px/1 var(--pixel); text-decoration:none; color:var(--ink); }
.bar nav { display:flex; gap:4px 20px; flex-wrap:wrap; justify-content:flex-end; }
.bar nav a { display:inline-block; padding:10px 0; font-size:16px; text-decoration-color:transparent; color:var(--soft); }
.bar nav a:hover { color:var(--ink); text-decoration-color:var(--ember); }

/* hero */
.hero { padding-top:clamp(48px, 9vw, 120px); }
h1 { font-weight:700; font-size:min(14.2vw, 270px); line-height:.84; letter-spacing:-.055em; margin-left:-.04em; white-space:nowrap; }
.caret { display:inline-block; width:.14em; height:.62em; margin-left:.06em; background:var(--ember); animation:blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity:0; } }
.hero-foot { display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); gap:24px var(--m); align-items:end; margin-top:clamp(32px, 4vw, 56px); }
.lead { font-size:clamp(22px, 2.3vw, 34px); line-height:1.25; letter-spacing:-.015em; max-width:24ch; }
.signal { font:12px/1.6 var(--label); color:var(--soft); min-height:1.6em; justify-self:end; text-align:right; }
.prompt { color:var(--ember); }

/* sections */
.block { margin-top:var(--gap); }
.head { display:flex; justify-content:space-between; align-items:baseline; gap:8px 24px; flex-wrap:wrap; margin-bottom:clamp(20px, 3vw, 40px); }
h2 { font-weight:700; font-size:clamp(40px, 6vw, 96px); line-height:.95; letter-spacing:-.045em; }
.count { font:12px/1.6 var(--label); color:var(--soft); }

/* the log of released apps */
.apps { list-style:none; margin:0; padding:0; }
.apps li {
  display:grid; grid-template-columns:72px minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap:12px var(--m); align-items:center;
  padding:22px max(var(--m), env(safe-area-inset-right, 0px)) 22px max(var(--m), env(safe-area-inset-left, 0px));
}
.apps li:nth-child(odd) { background:var(--step); }
.apps img { display:block; width:72px; height:72px; image-rendering:pixelated; }
.apps h3 { font-weight:600; font-size:clamp(22px, 2.1vw, 30px); line-height:1.1; letter-spacing:-.025em; }
.desc { margin-top:6px; max-width:44ch; }
.year { font:12px/1.6 var(--label); color:var(--faint); margin-left:6px; white-space:nowrap; }
.line { color:var(--soft); }
.links { display:flex; flex-wrap:wrap; gap:0 18px; }
.apps .links { justify-content:flex-end; }
.links a { display:inline-block; padding:6px 0; }

/* the shelf of things in progress */
.shelf { list-style:none; margin:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:var(--m); }
.shelf li { display:flex; flex-direction:column; gap:10px; }
.shelf img, .blank { display:block; width:96px; height:96px; image-rendering:pixelated; margin-bottom:8px; }
.blank { background:var(--step); }
.shelf h3 { font-weight:600; font-size:clamp(22px, 2.1vw, 30px); line-height:1.1; letter-spacing:-.025em; }
.shelf p { color:var(--soft); max-width:28ch; }
.redacted { background:var(--soft); color:transparent; user-select:none; }

/* support */
.support { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:40px var(--m); align-items:start; }
.ask { display:flex; flex-direction:column; gap:20px; }
.ask p { max-width:36ch; }
.main-mail { font-size:clamp(20px, 2vw, 28px); font-weight:600; letter-spacing:-.02em; overflow-wrap:anywhere; }
.mail { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 var(--m); background:var(--step); padding:clamp(16px, 2.4vw, 32px); }
.mail div { padding:12px 0; min-width:0; }
.mail dt { font:12px/1.6 var(--label); color:var(--soft); }
.mail dd { overflow-wrap:anywhere; }

/* end */
.end { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:24px var(--m); align-items:end; margin-top:var(--gap); padding-bottom:max(40px, env(safe-area-inset-bottom, 0px)); }
.tv img { display:block; width:288px; height:auto; image-rendering:pixelated; }
.end-text { display:flex; flex-direction:column; gap:10px; align-items:flex-end; text-align:right; color:var(--soft); font-size:15px; }
.end-text .links { justify-content:flex-end; color:var(--ink); }
.ghost { font:12px/1.6 var(--label); color:var(--faint); }
details summary { cursor:pointer; list-style:none; color:var(--faint); letter-spacing:.2em; padding:6px 0; }
details summary::-webkit-details-marker { display:none; }
details[open] summary { color:var(--ink); }
details p { color:var(--soft); }

@media (max-width:900px) {
  .apps li { grid-template-columns:48px minmax(0, 1fr); gap:6px 16px; align-items:start; }
  .apps img { width:48px; height:48px; }
  .apps .line, .apps .links { grid-column:2; }
  .apps .links { justify-content:flex-start; }
  .shelf { grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:40px; }
  .support { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  h1 { font-size:23vw; white-space:normal; }
  .hero-foot { grid-template-columns:1fr; }
  .signal { justify-self:start; text-align:left; }
  .mail { grid-template-columns:1fr; }
  .end { grid-template-columns:1fr; }
  .tv img { width:192px; }
  .end-text { align-items:flex-start; text-align:left; }
  .end-text .links { justify-content:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  .caret { animation:none; }
  a { transition:none; }
}
