/* ---------- Fonts: self-hosted, unmodified Google Fonts WOFF2 (SIL OFL, see /fonts/). Rename the file if it ever changes. ---------- */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-v24-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-v24-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/outfit-v15-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/outfit-v15-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/silkscreen-v6-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/silkscreen-v6-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg:        #0d1117;   /* Drop's background */
  --surface:   #131922;
  --surface-2: #19212c;
  --line:      #232b38;
  --text:      #f1efdf;
  --muted:     #a9aeb6;   /* 7.9:1 on --bg */
  --accent:    #00ff41;   /* Wasabi green */
  --on-accent: #04140a;
  --focus:     #00ff41;

  --font-body:    "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-pixel:   "Silkscreen", ui-monospace, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --measure: 60ch;
  --page: 1120px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* faint grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s3) var(--s4); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s4); }

.wrap { position: relative; z-index: 1; max-width: var(--page); margin-inline: auto; padding-inline: max(20px, 4vw); }

/* ---------- Type ---------- */
.label {
  font: 400 .78rem/1 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { font-family: var(--font-body); font-weight: 400; margin: 0; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; }
h3 { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
.prose { max-width: var(--measure); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: var(--s5); }
.top .mark {
  font: 400 .8rem var(--font-pixel); letter-spacing: .04em; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; text-transform: lowercase;
}
.top .mark i { color: var(--accent); font-style: normal; }
.top nav { display: flex; gap: var(--s1); }
.top nav a {
  font: 400 .8rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--s3);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.top nav a:hover { color: var(--text); background: var(--surface); }
@media (max-width: 599px) { .top nav a:not(:last-child) { display: none; } }  /* short page: only Contact on phones */

/* ---------- Banner (full-bleed photo under the nav) ---------- */
.banner { position: relative; z-index: 0; width: 100%; aspect-ratio: 4 / 3; max-height: 60vh; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 46%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgb(13 17 23 / 0) 42%); }
@media (min-width: 700px) { .banner { aspect-ratio: 2660 / 1140; max-height: clamp(300px, 44vh, 480px); } }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; margin-top: calc(-1 * clamp(24px, 6vw, 84px)); padding-block: 0 clamp(56px, 9vw, 112px); }
.hero h1 {
  font-size: clamp(3.3rem, 12.4vw, 9.5rem);
  line-height: .96;
  letter-spacing: -.05em;
}
.hero h1 .cursor {
  display: inline-block; width: .09em; height: .7em; margin-left: .07em;
  background: var(--accent); vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
.lead {
  margin-top: var(--s6);
  max-width: 38ch;
  font-size: clamp(1.4rem, 2.9vw, 2rem);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.lead em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: var(--s4); color: var(--muted); font-size: 1.15rem; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  font: 500 .95rem var(--font-body); text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.sec-head .prose { max-width: 70ch; }


.inline-links { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s5); }
.inline-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }

/* ---------- Making ---------- */
.cards { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } .card.wide { grid-column: 1 / -1; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--surface-2); }
.card p { color: var(--muted); max-width: 48ch; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.card .links { margin-top: auto; padding-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.card .links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.card .stretch::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card .links a:not(.stretch) { position: relative; z-index: 2; }

/* WasabiNoise card carries a photo */
.card.wide { padding: 0; gap: 0; }
.card.wide .body { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6); }
.card.wide .media { order: -1; aspect-ratio: 4 / 3; overflow: hidden; }
.card.wide .media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; transition: transform .6s var(--ease); }
.card.wide:hover .media img { transform: scale(1.03); }
@media (min-width: 860px) {
  .card.wide { display: grid; grid-template-columns: 1.1fr 1fr; }
  .card.wide .media { order: 0; aspect-ratio: auto; min-height: 100%; }
}

.release { display: block; }
.release .tag { color: var(--accent); display: block; margin-bottom: 6px; }
.release .title { color: var(--text); max-width: none; }

/* ---------- Archive ---------- */
.strip { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); margin-top: var(--s6); }
.tile { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1; margin: 0; }
.tile.big { grid-column: 1 / -1; aspect-ratio: 5 / 3; }
.tile img.left { object-position: 20% 50%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile a { position: absolute; inset: 0; }
.tile .cap {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  font: 400 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgb(0 0 0 / .7); padding: 6px 10px;
}
.tile.all { display: grid; background: transparent; border: 1px dashed var(--line); }
.tile.all a { display: grid; place-content: center; text-align: center; gap: 8px; }
.tile.all:hover { border-color: var(--accent); }
.tile.all strong { font: 400 1.6rem/1.1 var(--font-body); letter-spacing: -.02em; }
@media (min-width: 860px) {
  .strip { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); aspect-ratio: 16 / 7.6; }
  .tile, .tile.big { aspect-ratio: auto; }
  .tile.big { grid-column: 1; grid-row: 1 / span 2; }
}
.archive-split { display: grid; gap: var(--s6); margin-top: var(--s7); }
@media (min-width: 860px) { .archive-split { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.archive-split h3 { margin-bottom: var(--s3); }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: var(--s8); } }
/* the one round thing on the page, on purpose */
.contact-photo { margin: 0; overflow: hidden; aspect-ratio: 1 / 1; width: min(100%, 280px); border-radius: 50%; justify-self: start; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 32%; border-radius: 50%; }
@media (min-width: 860px) { .contact-photo { justify-self: end; width: min(100%, 340px); } }
.contact h2 { font-size: clamp(1.9rem, 5.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.contact h2 a { text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: .12em; overflow-wrap: anywhere; }
.contact .prose { margin-top: var(--s5); color: var(--muted); }
.socials { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: 0; list-style: none; }
.socials a { min-height: 44px; display: inline-flex; align-items: center; font: 400 .85rem var(--font-mono); letter-spacing: .04em; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: var(--s6) var(--s7); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); }
footer p { font: 400 .8rem var(--font-mono); color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .lead, .cta { animation: rise .7s var(--ease) both; }
  .lead { animation-delay: .12s; }
  .hero-sub  { animation: rise .7s var(--ease) .18s both; }
  .cta  { animation-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .cursor { animation: none; }
  .tile img, .card, .card.wide .media img, .btn { transition: none; }
}


/* ---------- Apps: two equal cards, big icons and ratings ---------- */
:root { --star-empty: #454d5a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }   /* shared star gradients; not display:none, or they stop working */
.sep::before { content: "\00b7"; margin-inline: 4px; opacity: .7; }
.ext { width: 11px; height: 11px; margin-left: 6px; flex: none; opacity: .85; }
.card:focus-within, .app:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }

.apps { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
/* Side by side: both cards share four row tracks (label, icon+name, rating, links) so everything lines up, whatever the text length. */
@media (min-width: 760px) {
  .apps { grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
  .apps .app { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: var(--s5); }
  .apps .app-links { align-self: end; }
}
.app { --icon: 64px; display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 600px) { .app { --icon: 72px; padding: var(--s6); } }
@media (min-width: 1000px) { .app { --icon: 80px; } }

.app-head { display: grid; grid-template-columns: var(--icon) 1fr; column-gap: var(--s4); align-items: center; }
/* Both icons are flat full-bleed squares and get the same iOS-style rounded-square mask (the one deliberate exception to the global square corners). */
.app-icon { width: var(--icon); height: var(--icon); border-radius: 22%; overflow: hidden; }
.app h3 { font-size: 1.9rem; line-height: 1.05; }
.app-desc { margin-top: 6px; color: var(--muted); max-width: none; }

.rating { display: flex; flex-direction: column; gap: var(--s2); }
.score { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.score-num { font: 500 2.5rem/1 var(--font-body); letter-spacing: -.03em; color: var(--text); }
.stars { display: inline-flex; gap: 4px; }
.star { width: 24px; height: 24px; flex: none; }
.star.f100 path { fill: var(--accent); }
.star.f80 path { fill: url(#star-80); }
.star.f50 path { fill: url(#star-50); }
.count { font: 400 .85rem/1.4 var(--font-mono); letter-spacing: .02em; color: var(--muted); max-width: none; }
@media (max-width: 599px) { .score-num { font-size: 2.25rem; } .star { width: 22px; height: 22px; } .app h3 { font-size: 1.7rem; } }

.app-links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.app-links .app-site { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .95rem; }
.app-links .app-site:hover { color: var(--text); }
.apps-note { margin-top: var(--s4); font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 599px) { .card { padding: var(--s5); } .card.wide { padding: 0; } }

/* WasabiNoise card: listen button, and the Wasabi line under it */
.card.wide .links { flex-direction: column; align-items: flex-start; gap: var(--s2); }
.card.wide .more { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.card.wide .more a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.card.wide .links a.btn { min-height: 48px; padding: 0 var(--s5); font-weight: 500; }
.card.wide .release { margin-top: var(--s2); }
.wasabi-line { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s5); padding: var(--s3) var(--s5); border: 1px solid var(--line); }
.wasabi-line a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; font-size: 1.1rem; }
.wasabi-line p { color: var(--muted); max-width: none; }
