/* Design chooser (previews/index.html, local only). */
@font-face {
  font-family: "Archivo";
  src: url("../_assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --bg: #f3f4f6; --surface: #ffffff; --ink: #11151b; --ink-2: #576170; --line: #dfe3e9; --accent: #2d5bff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0f13; --surface: #151a21; --ink: #eef1f5; --ink-2: #9aa6b4; --line: #262e39; --accent: #7391ff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, label:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 90rem; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }

.head__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(40px, 7vw, 88px) 28px; }
h1 { margin: 0; font-size: clamp(2.25rem, 5.5vw, 4.25rem); font-weight: 500; font-stretch: 92%; letter-spacing: -0.045em; line-height: 1; }
.lead { max-width: 46rem; margin: 1rem 0 0; color: var(--ink-2); font-size: 1.0625rem; }
.start { flex: none; padding: 0.85rem 1.4rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.start:hover { filter: brightness(1.1); }

.filter { position: absolute; opacity: 0; pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.filters label { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; cursor: pointer; user-select: none; }
.filters label span { margin-left: 0.3rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.filters label:hover { border-color: var(--ink-2); }
#f-all:checked ~ .head label[for="f-all"],
#f-full:checked ~ .head label[for="f-full"],
#f-hero:checked ~ .head label[for="f-hero"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
#f-all:checked ~ .head label[for="f-all"] span,
#f-full:checked ~ .head label[for="f-full"] span,
#f-hero:checked ~ .head label[for="f-hero"] span { color: inherit; opacity: 0.7; }
#f-all:focus-visible ~ .head label[for="f-all"],
#f-full:focus-visible ~ .head label[for="f-full"],
#f-hero:focus-visible ~ .head label[for="f-hero"] { outline: 2px solid var(--accent); outline-offset: 3px; }
#f-full:checked ~ main .card:not(.is-full),
#f-hero:checked ~ main .card.is-full { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; margin: 0; padding: 0 0 96px; list-style: none; }
.card { scroll-margin-top: 24px; }
.shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.03); }
.shot__none { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-size: 0.875rem; }
.card:target .shot { outline: 3px solid var(--accent); outline-offset: 4px; }
.meta { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding-top: 14px; }
.nr { grid-row: span 4; min-width: 1.6em; color: var(--ink-2); font-size: 1.625rem; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.meta h2 { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.meta h2 a { text-decoration: none; }
.meta h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.90625rem; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px !important; }
.links a, .links span { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; text-decoration: none; }
.links a:hover { border-color: var(--ink); color: var(--ink); }
.links .tag { border-color: transparent; background: var(--accent); color: #fff; }
.links .tag--full { background: var(--ink); color: var(--bg); }

.foot { padding-block: 28px 48px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }
.foot code { padding: 0.1rem 0.35rem; border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 0.85em; }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }
