/* urtifack gallery: zeit's palette and type (dark by default, light by the visitor's system), flat, no script */
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-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: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-600.woff2") format("woff2"); }

:root {
  --bg: #0a0703; --bg-high: #15110a; --fg: #d5d0c6; --fg-title: #f6f1e7; --fg-dim: #9c988e; --fg-faint: #8f8a80;
  --accent: #6fc0c7; --accent-hover: #7ccdd4; --chip: #231f17; --chip-fg: #e9e4da; --rubric: #b5442f; --gold: #a98c4b;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fffff8; --bg-high: #f8f5ee; --fg: #181611; --fg-title: #070603; --fg-dim: #5f5b54; --fg-faint: #7c776e;
    --accent: #0d5257; --accent-hover: #2a686d; --chip: #f1eee7; --chip-fg: #181611; --rubric: #8e2418; --gold: #7e6326;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.6 var(--font-ui); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.top { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.9rem 1.5rem; background: var(--bg-high); }
.brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: var(--fg-title); letter-spacing: -0.01em; }
.tag { font-family: var(--font-heading); font-size: 0.8rem; color: var(--fg-faint); letter-spacing: 0.04em; text-transform: uppercase; }

main { max-width: 76rem; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.intro { max-width: 44rem; margin: 0 0 2.5rem; }
.intro h1 { font-family: var(--font-heading); font-weight: 600; font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg-title); margin: 0 0 0.7rem; }
.intro p { color: var(--fg-dim); font-size: 1.02rem; margin: 0; }

/* the cards: a large preview, then the book */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2.2rem 1.8rem; }
.card { display: flex; flex-direction: column; background: var(--bg-high); }
.shot { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--chip); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 300ms ease; }
.shot:hover img { transform: scale(1.025); }
.text { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.kicker { margin: 0 0 0.25rem; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.card h2 { margin: 0 0 0.4rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.card h2 a { color: var(--fg-title); }
.card h2 a:hover { color: var(--accent); }
.book { margin: 0 0 0.7rem; font-size: 0.85rem; color: var(--fg-dim); }
.text p { margin-top: 0; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: auto 0 0; padding-top: 0.6rem; }
.btn { display: inline-flex; align-items: center; padding: 0.4em 0.9em; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem;
  color: var(--bg); background: var(--accent); transition: background-color 70ms; }
.btn:hover { color: var(--bg); background: var(--accent-hover); }
.btn-quiet { color: var(--chip-fg); background: var(--chip); }
.btn-quiet:hover { color: var(--fg-title); background: color-mix(in srgb, var(--chip) 70%, var(--fg) 12%); }
.aside { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--fg-faint); }

.foot { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem 2.5rem; font-size: 0.8rem; color: var(--fg-faint); }

@media (max-width: 600px) {
  main { padding: 1.6rem 1rem 2rem; }
  .intro h1 { font-size: 1.6rem; }
  .top { padding: 0.8rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }
