/* Editorial notes layout. IBM Plex only. One accent: EpochCore orange.
   Featured note uses a typographic panel (no photography).
   Light only: `color-scheme: only light` so an OS dark preference does not recolor the page. */
:root {
  color-scheme: only light;
  --paper: #F6F3EE;
  --ink: #1A1814;
  --muted: #5C564C;
  --line: #E3DCD2;
  --accent: #C2410C;
  --panel: #1C1916;
  --panel-ink: #F6F3EE;
  --panel-accent: #FF7A3C;
  --code: #EFEAE3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 28px; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"] { font-weight: 600; }

main { padding: 48px 0 88px; }

.page-head { max-width: 40rem; padding: 8px 0 36px; }
h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.lede {
  margin: 16px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.feature a {
  display: grid;
  grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr);
  min-height: 300px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.feature a:hover { color: inherit; }
.feature a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.feature a:hover .panel-bar { width: 72px; }
.panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 260px;
  padding: 28px 32px;
  background: var(--panel);
  color: var(--panel-ink);
}
.panel-kicker {
  font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--panel-accent);
}
.panel-date { align-self: center; }
.panel-day {
  display: block;
  font-size: clamp(80px, 9vw, 112px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.panel-month {
  display: block;
  margin-top: 14px;
  font: 400 15px/1 "IBM Plex Mono", ui-monospace, monospace;
}
.panel-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--panel-accent);
  transition: width 160ms ease;
}
.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 8px 36px 48px;
}
.feature time, .byline, .entries time {
  font: 400 13px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.feature h2 {
  margin: 12px 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.feature p {
  margin: 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.feature .read {
  margin-top: 22px;
  font-weight: 500;
  color: var(--accent);
}

.section { margin-top: 64px; }
.section h2 {
  margin: 0;
  font: 500 13px/1 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
}
.entries {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.entries li {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 8px 32px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.entries time { padding-top: 5px; }
.entries a.title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.entries a.title:hover { color: var(--accent); }
.entries p {
  margin: 4px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}
.more { margin: 20px 0 0; }
.more a { font-weight: 500; }

.stack { margin-top: 12px; border-top: 1px solid var(--ink); }
.review, .quiet {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 8px 32px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.who { font-weight: 600; }
.who small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); }
.review blockquote {
  margin: 0;
  max-width: 40rem;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.stars { margin-top: 10px; color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.quiet p { margin: 0; color: var(--muted); }
.quiet strong { color: var(--ink); font-weight: 600; }

.entry { max-width: 40rem; padding-top: 4px; }
.entry h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.rule { width: 48px; height: 3px; margin: 0 0 18px; background: var(--accent); }
.byline { margin: 0 0 14px; }
.post { margin-top: 28px; font-size: 17.5px; line-height: 1.7; }
.post > :first-child { margin-top: 0; }
.post p { margin: 0 0 1.1em; }
.post h2, .post h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.8em 0 0.5em;
}
.post ul, .post ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.post li { margin: 0.25em 0; }
.post a { color: var(--accent); }
.post img { max-width: 100%; height: auto; }
.post pre {
  overflow-x: auto;
  background: var(--code);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.post code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.88em; }
.post blockquote {
  margin: 1.4em 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.post hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.back {
  display: inline-block;
  margin-top: 36px;
  font: 500 14px/1 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--ink);
  text-decoration: none;
}
.back:hover { color: var(--accent); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .panel-bar { transition: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  header.site .wrap { min-height: 60px; align-items: center; padding-top: 16px; padding-bottom: 14px; }
  nav.main { gap: 16px; }
  main { padding: 32px 0 64px; }
  .page-head { padding-bottom: 28px; }
  .feature a { grid-template-columns: 1fr; }
  .panel, .feature a { min-height: 0; }
  .panel { min-height: 180px; }
  .panel-day { font-size: 80px; }
  .feature-body { padding: 24px 0 8px; }
  .entries li, .review, .quiet { grid-template-columns: 1fr; gap: 4px; }
  .entries time { padding-top: 0; }
  .section { margin-top: 48px; }
}
