:root {
  --ink: #0f1b2d;
  --ink-soft: #3d4a5e;
  --paper: #f6f7f9;
  --white: #ffffff;
  --red: #c8102e;
  --line: #dde1e8;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: var(--ink); color: #fff;
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1;
}
.brand:hover { color: #ff8a9b; }
.tagline { margin: 0; font-size: .95rem; color: #b9c3d4; font-style: italic; }

/* hero scroller */
.hero { position: relative; background: var(--ink); }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  height: clamp(420px, 74vh, 760px);
  display: flex; align-items: flex-end; overflow: hidden; color: #fff;
}
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,27,45,.94) 0%, rgba(15,27,45,.62) 38%, rgba(15,27,45,.08) 75%);
}
.slide-text {
  position: relative; z-index: 2; width: 100%; max-width: 62rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2.5rem, 7vw, 4.5rem);
}
.slide-date { margin: 0 0 .6rem; font-size: .95rem; color: #d6dce7; }
.slide h2 {
  margin: 0 0 .8rem; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.slide h2 a { text-decoration: none; }
.slide h2 a:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.slide-excerpt {
  margin: 0; max-width: 40rem; color: #e6eaf1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-controls {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; gap: .5rem; z-index: 3; color: #fff;
}
.count { font-family: var(--display); font-weight: 500; margin-right: .5rem; font-size: .95rem; }
.hero-controls button {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0 .2rem;
}
.hero-controls button:hover { background: var(--red); border-color: var(--red); }

/* lists */
.earlier { max-width: 62rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); }
.earlier h1, .earlier h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.list { display: grid; gap: 2.25rem; }
.item { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1.5rem; align-items: start; }
.item:not(:has(.item-img)) { grid-template-columns: 1fr; }
.item-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.item h3 { margin: 0 0 .2rem; font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.015em; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { color: var(--red); }
.item p { margin: .35rem 0 0; color: var(--ink-soft); }
.item .meta { margin: 0; }
.meta { font-size: .95rem; color: var(--ink-soft); }
.meta a { color: var(--red); text-underline-offset: .15em; }
.sep { opacity: .7; }

/* single post */
.post { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 3rem; }
.post-head h1 {
  margin: 0 0 .7rem; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance;
}
.post-img { width: 100%; margin: 1.5rem 0 2rem; }
.post-body { font-size: 1.2rem; line-height: 1.75; }
.post-body > * { margin-top: 0; margin-bottom: 1.2em; }
.post-body a { color: var(--red); text-underline-offset: .15em; }
.post-body img { margin: 1.5rem auto; }
.post-body blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 4px solid var(--red); color: var(--ink-soft); font-style: italic; }
.post-body h2, .post-body h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin-top: 2em; }
.back { margin-top: 3rem; font-family: var(--display); font-weight: 500; }
.back a { text-decoration: none; }
.back a:hover { color: var(--red); }

/* footer */
.site-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem clamp(1rem, 4vw, 3rem); background: var(--ink); color: #b9c3d4; font-size: .95rem;
}
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .item { grid-template-columns: 1fr; gap: .9rem; }
  .slide { height: clamp(460px, 78vh, 640px); }
  .hero-controls { position: static; justify-content: flex-end; padding: .75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
