@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/source-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/source-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/source-sans-400i.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #f3eee4;
  --paper-2: #fffaf2;
  --ink: #1b140f;
  --ink-soft: #5e534a;
  --rule: #ddcfc0;
  --red: #b10e28;
  --red-fill: #b10e28;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: min(68rem, calc(100% - 2.5rem));
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110e;
    --paper-2: #1d1915;
    --ink: #f4ecdf;
    --ink-soft: #c3b4a4;
    --rule: #3a322b;
    --red: #ff8d98;
    --red-fill: #c8102e;
  }
}

@media (max-width: 600px) {
  :root {
    --wrap: min(68rem, calc(100% - 2rem));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--red-fill);
  color: #fff;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.mast {
  padding-top: 1.15rem;
}

.mast-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand clips"
    "search search";
  gap: 0.35rem 1rem;
  align-items: end;
}

.brand {
  grid-area: brand;
  min-width: 0;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.brand-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.brand-name {
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--red);
}

.search {
  grid-area: search;
}

.search input {
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.4rem 0;
}

.search input::placeholder {
  color: var(--ink-soft);
}

.search input:focus-visible {
  border-bottom-color: var(--red);
}

.clips-link {
  grid-area: clips;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.1rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.clips-link span {
  min-width: 1.6rem;
  text-align: center;
  border: 1px solid var(--ink);
  padding: 0.12rem 0.35rem;
  font-variant-numeric: tabular-nums;
}

.clips-link[aria-current="page"] span {
  background: var(--ink);
  color: var(--paper);
}

.mast-note {
  margin: 0.7rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.mast-rules {
  box-sizing: content-box;
  height: 3px;
  margin-top: 0.85rem;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--ink);
}

.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
  padding: 0.45rem 0 0.2rem;
}

.sections a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.sections a[aria-current="page"] {
  border-bottom-color: var(--red);
}

.sections .count {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

#desk {
  min-height: 58vh;
  padding-bottom: 3rem;
}

#desk:focus {
  outline: none;
}

.volume {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.lead {
  display: block;
  text-decoration: none;
  margin-top: 0.85rem;
  padding: 1.1rem 0 1.25rem;
  border-top: 1px solid var(--ink);
}

.kicker {
  margin: 0;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-title,
.clipping h2,
.empty h2,
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lead-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}

.lead .dek,
.dek-card .dek,
.clipping .dek {
  text-wrap: pretty;
}

.lead .dek {
  margin: 0.8rem 0 0;
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.lead .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--red);
}

.lead:hover .lead-title,
.dek-card:hover .title,
.row:hover .title {
  color: var(--red);
}

.block-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.8rem 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.block-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.dek-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.dek-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  padding: 1rem 1rem 1.15rem;
  background: var(--paper);
  text-decoration: none;
}

.dek-card .title,
.row .title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.dek-card .title {
  font-size: 1.35rem;
}

.dek-card .dek {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  color: var(--ink-soft);
  font-style: italic;
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: block;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.row:last-child {
  border-bottom: 1px solid var(--rule);
}

.row .title {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.archive-jump {
  margin: 1.4rem 0 0;
}

.archive-jump a,
.back {
  font-weight: 600;
}

.section-head {
  padding-top: 1.1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.section-note {
  max-width: 40rem;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.years {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-top: 0.8rem;
  padding-bottom: 0.2rem;
}

.years a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid transparent;
  text-decoration: none;
}

.years a[aria-current="page"] {
  border-color: var(--ink);
}

.more-btn,
.clip-btn,
.leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.leave {
  margin-top: 0;
  border-color: var(--red-fill);
  background: var(--red-fill);
  color: #fff;
}

.leave:hover,
.more-btn:hover,
.clip-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.clip-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.empty {
  max-width: 36rem;
  padding: 1.5rem 0 2rem;
}

.empty h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.clipping {
  max-width: 40rem;
  padding: 1.15rem 0 1rem;
}

.clipping h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 5vw, 3.05rem);
}

.clipping .dek {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

.clipping .dek.quiet {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.actions .clip-btn,
.actions .leave {
  margin-top: 0;
}

.fine {
  max-width: 36rem;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.loading {
  padding: 2rem 0;
  color: var(--ink-soft);
}

.site-foot {
  padding: 0 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-foot p {
  margin: 0;
  max-width: 44rem;
}

.noscript {
  padding: 1rem 0;
}

@media (min-width: 800px) {
  .mast-top {
    grid-template-columns: auto minmax(16rem, 1fr) auto;
    grid-template-areas: "brand search clips";
    gap: 0.5rem 1.75rem;
    align-items: center;
  }

  .lead {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    column-gap: 2rem;
    align-items: end;
  }

  .lead .dek {
    margin-top: 0;
  }

  .dek-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .sections {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
  }
}
