:root {
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --ink: #161513;
  --muted: #625E56;
  --line: #D6CFC2;
  --accent: #B8461F;
  --accent-ink: #FFFFFF;
  --radius-control: 0;
  --radius-md: 2px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.brand-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* hero */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; overflow: hidden; background: #E9E3D6; border-bottom: 1px solid var(--ink); }
.hero svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding: 0 var(--pad) clamp(32px, 6vw, 80px); color: #F4F1EA; max-width: 1100px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 13vw, 190px); line-height: 0.86; letter-spacing: -0.045em; margin: 14px 0 22px; }
.hero p.lede { font-size: clamp(18px, 2vw, 22px); max-width: 560px; margin: 0 0 30px; color: #E9E3D6; }
.btn { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-control); cursor: pointer; }
.btn:hover { background: #9C3A18; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.text-btn { background: none; border: 1px solid var(--ink); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 16px; border-radius: var(--radius-control); cursor: pointer; }
.text-btn:hover { background: var(--ink); color: var(--paper); }
.text-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* sections */
.section { padding: clamp(48px, 7vw, 104px) var(--pad); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; border-top: 3px solid var(--ink); padding-top: 14px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.section-head a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.status { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.status.error { color: #A3261B; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.grid.home { grid-template-columns: 1.6fr 1fr; grid-auto-rows: auto; }
.grid.home .card:first-child { grid-row: span 3; }
.grid.home .card:first-child h3 { font-size: clamp(30px, 3.4vw, 46px); }
.grid.home .card:not(:first-child) { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.grid.home .card:not(:first-child) .card-media { aspect-ratio: 4/3; }
.grid.home .card:not(:first-child) .excerpt { display: none; }
.card { text-decoration: none; display: block; }
.card-media { aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; margin-bottom: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card .meta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.12; letter-spacing: -0.015em; margin: 8px 0 10px; font-weight: 600; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card .excerpt { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* rubriques */
.rubriques { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.rubrique { padding: 28px 28px 32px 0; border-right: 1px solid var(--line); text-decoration: none; }
.rubrique + .rubrique { padding-left: 28px; }
.rubrique:last-child { border-right: 0; }
.rubrique .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.rubrique h3 { font-family: var(--serif); font-size: 30px; margin: 8px 0; font-weight: 600; }
.rubrique p { color: var(--muted); margin: 0 0 14px; }
.rubrique .go { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
a.rubrique:hover h3 { text-decoration: underline; }

/* about strip */
.about-strip { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); background: var(--ink); color: var(--paper); }
.about-strip h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 0; letter-spacing: -0.03em; }
.about-strip p { font-size: 19px; margin: 0 0 18px; color: #DAD4C7; }
.about-strip a { color: var(--paper); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.page-title { padding: clamp(40px, 6vw, 88px) var(--pad) 28px; border-bottom: 1px solid var(--ink); }
.page-title h1 { font-family: var(--serif); font-size: clamp(48px, 8vw, 110px); line-height: 0.92; letter-spacing: -0.04em; margin: 10px 0 0; font-weight: 700; }
.page-title p { color: var(--muted); max-width: 620px; font-size: 19px; }
.more { margin-top: 48px; text-align: center; }

/* post */
.post-cover { height: clamp(220px, 52vh, 600px); background: var(--paper-2); border-bottom: 1px solid var(--ink); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-head { padding: clamp(32px, 5vw, 64px) var(--pad) 24px; max-width: 1100px; }
.post-head h1 { font-family: var(--serif); font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 14px 0 18px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; padding: 5px 10px; border: 1px solid var(--ink); border-radius: var(--radius-control); }
.chip.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.byline { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 16px; flex-wrap: wrap; }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 56px; padding: 0 var(--pad) 64px; }
.post-body { font-size: 19px; line-height: 1.7; }
.post-body h2 { font-family: var(--serif); font-size: 32px; line-height: 1.15; margin: 1.6em 0 0.5em; letter-spacing: -0.015em; }
.post-body h3 { font-family: var(--serif); font-size: 24px; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding: 20px 24px 20px 44px; background: var(--paper-2); border-left: 3px solid var(--accent); }
.post-body li { margin: 4px 0; }
.post-body li p { margin: 0; }
.post-body blockquote { margin: 1.6em 0; padding: 0; border: 0; font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.2; }
.post-body blockquote p { margin: 0; }
.post-body img { margin: 1.4em 0; }
.post-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 24px; border-top: 3px solid var(--ink); padding-top: 16px; }
.post-aside h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 10px; color: var(--muted); font-weight: 500; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* about page */
.prose { max-width: 720px; font-size: 19px; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-size: 32px; margin: 1.4em 0 0.4em; }

/* footer */
.site-footer { padding: 48px var(--pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.site-footer .brand-name { font-size: 22px; color: var(--ink); text-transform: none; letter-spacing: -0.02em; }
.site-footer nav { display: flex; gap: 20px; }

.skeleton { background: var(--paper-2); min-height: 280px; }

@media (max-width: 860px) {
  .nav { gap: 16px; }
  .brand-tag { display: none; }
  .grid.home { grid-template-columns: 1fr; }
  .grid.home .card:first-child { grid-row: auto; }
  .grid.home .card:not(:first-child) { grid-template-columns: 120px 1fr; }
  .rubriques { grid-template-columns: 1fr; }
  .rubrique, .rubrique + .rubrique { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-strip { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .post-cover { height: 34vh; }
}
/* Fraunces soft and wonky */
h1, h2, h3, .brand-name, .post-body blockquote { font-variation-settings: "SOFT" 100, "WONK" 1; }
.brand-name, .hero h1 { font-weight: 800; }

/* playlists */
.playlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 48px 32px; }
.playlist h2 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.015em; }
.playlist p { color: var(--muted); margin: 0 0 16px; }
.playlist iframe { border: 0; border-radius: 12px; display: block; }

@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .nav { flex-wrap: wrap; gap: 6px 18px; font-size: 12px; }
}
