:root {
  --paper: #f0ecdf;
  --ink: #17221d;
  --muted: #6c726c;
  --line: rgba(23, 34, 29, .18);
  --acid: #d9ff45;
  --rust: #d75b35;
  --blue: #8db7c4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 0 4vw;
  background: rgba(240, 236, 223, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
nav { display: flex; gap: 28px; font-size: 13px; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  position: relative;
  min-height: 720px;
  padding: 12vh 7vw 8vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  right: 7vw;
  top: 13vh;
  border: 1px solid var(--ink);
  border-radius: 49% 51% 65% 35% / 48% 37% 63% 52%;
  transform: rotate(17deg);
}
.hero::after {
  content: "✦";
  position: absolute;
  right: 20vw;
  top: 26vh;
  font-size: 90px;
  color: var(--rust);
  transform: rotate(12deg);
}
.eyebrow { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
h1 {
  max-width: 920px;
  margin: 35px 0 30px;
  font-family: Newsreader, serif;
  font-size: clamp(70px, 10.4vw, 158px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.055em;
}
h1 em { color: var(--rust); font-weight: 400; }
.hero-copy { max-width: 470px; margin-left: 31vw; font-size: 18px; line-height: 1.65; }
.round-link {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 50px 0 0 31vw;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 24px;
  transition: .2s;
}
.round-link:hover { background: var(--ink); color: var(--paper); transform: translateY(4px); }
.edition { position: absolute; right: 4vw; bottom: 4vh; font-family: "DM Mono", monospace; font-size: 11px; line-height: 1.5; }

.collection { padding: 100px 4vw 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
h2 { margin: 14px 0 0; font-family: Newsreader, serif; font-size: clamp(45px, 6vw, 85px); font-weight: 400; letter-spacing: -.04em; }
.search { display: flex; align-items: center; gap: 8px; width: min(300px, 100%); padding: 10px 0; border-bottom: 1px solid var(--ink); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; gap: 8px; margin-bottom: 28px; }
.filter { padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; background: transparent; cursor: pointer; font-size: 12px; }
.filter:hover, .filter.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--ink); }
.card {
  grid-column: span 4;
  min-height: 390px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.card:nth-child(3n) { border-right: 0; }
.card:hover { background: rgba(255,255,255,.28); transform: translateY(-4px); }
.card-number, .card-meta { font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.card-shape { display: grid; place-items: center; height: 150px; margin: 28px 0; font-family: Newsreader, serif; font-size: 70px; }
.card[data-category="idee"] .card-shape { background: var(--acid); border-radius: 50%; }
.card[data-category="reflexion"] .card-shape { color: var(--paper); background: var(--rust); border-radius: 50% 8% 50% 8%; }
.card[data-category="note"] .card-shape { background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.card h3 { margin: 0 0 13px; font-family: Newsreader, serif; font-size: 30px; line-height: 1; font-weight: 500; }
.card p { color: var(--muted); line-height: 1.5; }
.card-meta { display: flex; justify-content: space-between; margin-top: 24px; color: var(--muted); }
.empty-state { padding: 60px 0; color: var(--muted); }

.manifesto { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 40px; padding: 120px 7vw; background: var(--ink); color: var(--paper); }
blockquote { margin: 0; font-family: Newsreader, serif; font-size: clamp(42px, 6vw, 82px); line-height: 1.04; letter-spacing: -.035em; }
.manifesto-copy { align-self: end; font-size: 14px; line-height: 1.65; }
.signature { color: var(--acid); font-family: "DM Mono", monospace; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 32px 4vw; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.2); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
footer a:hover { color: var(--acid); }

dialog { width: min(760px, calc(100% - 32px)); max-height: 86vh; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(15, 20, 17, .75); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 24px; }
.reader-inner { padding: 70px 9vw 85px; }
.reader-inner h2 { margin: 30px 0; font-size: clamp(45px, 7vw, 75px); line-height: .95; }
.reader-inner .lead { font-family: Newsreader, serif; font-size: 24px; line-height: 1.4; }
.reader-inner .body { margin-top: 36px; font-size: 17px; line-height: 1.8; white-space: pre-line; }

@media (max-width: 800px) {
  nav { display: none; }
  .hero { min-height: 650px; padding-top: 11vh; }
  .hero::before { width: 210px; height: 210px; right: -65px; top: 46vh; }
  .hero::after { right: 12vw; top: 50vh; font-size: 55px; }
  .hero-copy, .round-link { margin-left: 0; }
  .hero-copy { max-width: 75%; }
  .section-heading { align-items: start; flex-direction: column; }
  .card { grid-column: span 6; }
  .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-copy { max-width: 380px; }
}
@media (max-width: 520px) {
  h1 { font-size: 68px; }
  .hero-copy { max-width: 90%; font-size: 16px; }
  .collection { padding: 75px 5vw 90px; }
  .filters { overflow-x: auto; }
  .card { grid-column: span 12; border-right: 0 !important; }
  footer { flex-direction: column; }
}
