/* Layout: the newest project shown large, the rest as plain rows. Fonts are served from this site, so a page view contacts no third party. */
@font-face {
  font-family: "Figtree";
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext-wght-normal.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: "Figtree";
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-wght-normal.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;
}
:root {
  --bg: #fbfcfc;
  --tint: #dfe7ea;
  --ink: #26343d;
  --muted: #4c5e69;
  --line: #c9d3d7;
  --accent: #2f565c;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18232a;
    --tint: #22313a;
    --ink: #e3ebee;
    --muted: #a9bac2;
    --line: #34454f;
    --accent: #8fd0cf;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.5 var(--font);
  padding: 56px max(20px, 6vw) 72px;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.masthead, main { max-width: 980px; margin: 0 auto; }
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 36px; }
.wordmark { font-size: 2.5rem; line-height: 1; font-weight: 300; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.gloss, .meta { color: var(--muted); font-size: 1rem; }

.lead { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; color: inherit; text-decoration: none; margin-bottom: 36px; }
.lead img, .cover { background: var(--tint); border-radius: 3px; aspect-ratio: 3 / 2; object-fit: cover; }
.lead img { flex: 1 1 340px; min-width: 0; width: 340px; }
.lead-text { flex: 1 1 300px; min-width: 0; display: grid; gap: 12px; }
.lead h2, .project h1 { font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1.05; font-weight: 300; }
.lead .summary, .project .summary { font-size: 1.3rem; max-width: 34em; }
.status { font-size: 1.05rem; font-weight: 600; color: var(--accent); }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; padding: 22px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.row img { width: 132px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--tint); border-radius: 3px; }
.row-text { flex: 1 1 280px; min-width: 0; }
.row h2 { font-size: 1.5rem; font-weight: 600; }
.lead:hover h2, .row:hover h2 { color: var(--accent); }

.project, .notice { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.project > *, .notice > * { max-width: 760px; }
.cover { width: 100%; }
.details { display: grid; gap: 14px; }
.more { font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px 18px; width: 100%; max-width: none !important; }
.gallery figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--tint); border-radius: 3px; }
.gallery figcaption { color: var(--muted); font-size: 1rem; }
.notice { margin-top: 12vh; }
