@font-face{font-family:"Commissioner";src:url("/assets/fonts/commissioner-latin-flar-normal.woff2") format("woff2-variations");font-weight:100 900;font-display:swap;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:"Commissioner";src:url("/assets/fonts/commissioner-latin-ext-flar-normal.woff2") format("woff2-variations");font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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:"Commissioner";src:url("/assets/fonts/commissioner-greek-flar-normal.woff2") format("woff2-variations");font-weight:100 900;font-display:swap;unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF,U+1F00-1FFF}

:root {
  color-scheme: light;
  --paper: #f2f5fb;
  --card: #fff;
  --ink: #0f1a36;
  --muted: #485373;
  --line: #d3dbec;
  --accent: #2441d9;
  --live: #0b7048;
  --gap: clamp(1rem, 3vw, 2rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  /* Commissioner's flare axis: open, slightly chiselled stroke ends for headings. */
  --flare: "FLAR" 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 "Commissioner", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; font-variation-settings: var(--flare); }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.75rem); font-weight: 720; letter-spacing: -.022em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 680; letter-spacing: -.012em; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - 2rem, 74rem); margin-inline: auto; }
section.wrap:not(.hero) { margin-top: var(--space); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 5; background: var(--card); padding: .5rem 1rem; }

/* Header. The wordmark carries the one drawn element: a stitched scar. */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-block: 1.25rem; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 1.5rem; font-weight: 780; letter-spacing: -.03em; font-variation-settings: var(--flare); padding-bottom: .55rem; background: url("/assets/scar.svg") left bottom / 100% .6rem no-repeat; line-height: 1.1; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.top nav a { color: var(--ink); text-decoration: none; padding-block: .35rem; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { margin: 0; }
.hero .lead { margin: 1.25rem 0 0; }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; gap: 3.5rem; }
  .hero .lead { margin: 0 0 .35rem; }
}
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 58ch; line-height: 1.55; }
section.hero + section.wrap:not(.hero) { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Screenshots sit in a plain window frame labelled with the real address. */
.window { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px -32px rgb(15 26 54 / .45); }
.window figcaption { display: flex; align-items: center; gap: .6rem; padding: .45rem .8rem; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.window figcaption::before { content: ""; flex: none; width: 2.1rem; height: .5rem; background: radial-gradient(circle at .25rem 50%, var(--line) .25rem, transparent .27rem) 0 0 / .8rem 100%; }
.window img { width: 100%; }
.handset { margin: 0; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 36px -18px rgb(15 26 54 / .55); }
.handset img { border-radius: 16px; }

.feature { display: grid; gap: var(--gap); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.feature-shot { position: relative; display: block; text-decoration: none; }
.feature-shot .handset { position: absolute; right: -.25rem; bottom: -1.5rem; width: clamp(5.5rem, 19%, 9.5rem); }
.feature-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.feature-text h3 a { color: var(--ink); text-decoration: none; }
.feature-text h3 a:hover { color: var(--accent); }
.tech, .when { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; }
  .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .feature:nth-of-type(even) .feature-shot { order: 2; }
  .feature:nth-of-type(even) .handset { right: auto; left: -.25rem; }
}

.status { display: inline-flex; align-items: center; gap: .45em; font-size: .92rem; font-weight: 600; margin-right: .75rem; }
.status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; border: 2px solid var(--muted); }
.status-live::before, .status-online::before { border-color: var(--live); background: var(--live); }
.status-source::before { border-color: var(--accent); background: var(--accent); }

/* A "cover" link stretches over its whole list item. */
.cover { color: inherit; text-decoration: none; }
.cover::after { content: ""; position: absolute; inset: 0; }
li:has(> .cover), li:has(> h3 > .cover) { position: relative; list-style: none; }
li:hover .cover { color: var(--accent); text-decoration: underline; }
li:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.cover:focus-visible { outline: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem var(--gap); }
.grid li { list-style: none; }
.grid h3 { margin: .9rem 0 .35rem; }
.grid p { color: var(--muted); margin-bottom: .5rem; }
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }

.rows { border-top: 2px solid var(--ink); }
.rows li { display: grid; gap: .25rem var(--gap); padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.rows h3, .rows p { margin: 0; }
.rows p { color: var(--muted); }
.row-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
.row-meta .status { color: var(--ink); }
@media (min-width: 900px) { .rows li { grid-template-columns: 17rem minmax(0, 1fr) 17rem; align-items: baseline; } }
.note { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

.section-lead { color: var(--muted); max-width: 60ch; }
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 14rem), 1fr)); gap: 1.5rem 1rem; margin-block: 1.5rem 2rem; }
.sheet li { list-style: none; }
.sheet img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; background: var(--card); margin-bottom: .5rem; }
.sheet .cover { display: block; font-weight: 600; line-height: 1.35; }
.button { display: inline-block; padding: .7rem 1.3rem; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); font-weight: 650; text-decoration: none; }
.button:hover { background: var(--ink); color: #fff; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--gap); }
.team li { list-style: none; border-top: 2px solid var(--ink); padding-top: 1.1rem; }

.foot { margin-top: var(--space); background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; }
.foot h2 { max-width: 22ch; }
.foot a { color: #b4c2ff; }
.foot :focus-visible { outline-color: #b4c2ff; }
.reach { font-size: 1.15rem; }
.mail { font-size: clamp(1.4rem, 4vw, 2.25rem); font-weight: 600; overflow-wrap: anywhere; }
.fine { color: #bcc4dc; font-size: .95rem; margin: 2.5rem 0 0; }

.project-head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.project-head h1 { max-width: 20ch; overflow-wrap: break-word; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem var(--gap); border-block: 1px solid var(--line); padding-block: 1.25rem; margin: 2rem 0 2.5rem; }
.facts dt { font-size: .88rem; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.stage { display: grid; gap: var(--gap); align-items: end; }
.stage .handset { width: min(16rem, 70%); justify-self: center; }
@media (min-width: 900px) { .stage-phone { grid-template-columns: minmax(0, 1fr) 15rem; } .stage-phone .handset { width: 100%; } }
/* Small old screenshots are shown near their real size instead of being blown up. */
.stage-small { max-width: 26rem; }
.prose { max-width: 66ch; margin-top: 2.5rem; font-size: 1.125rem; }
.prose li { margin: 0 0 .5rem 1.2rem; }
.prose ul { margin-bottom: 1.25rem; }
.then { margin-top: 3.5rem; max-width: 47rem; }
.back { margin-top: 3rem; }
.year { margin-top: 3.5rem; }
.year h2 { border-bottom: 2px solid var(--ink); padding-bottom: .35rem; margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
