@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f3efe5;
  --paper-light: #faf8f1;
  --ink: #171714;
  --muted: #6c6a62;
  --blue: #2543d8;
  --orange: #ff5c35;
  --rule: #22221d;
  --soft-rule: #c9c4b9;
  --sans: "Work Sans", Arial, sans-serif;
  --serif: "Literata", Georgia, serif;
  --shell: min(1320px, calc(100vw - 72px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.utility-bar p {
  margin: 0;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 74px;
  align-items: center;
  min-height: 174px;
}

.wordmark {
  width: max-content;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(64px, 8.4vw, 126px);
  font-weight: 700;
  letter-spacing: -0.078em;
  line-height: 0.76;
  text-decoration: none;
}

.wordmark span:last-child {
  color: var(--blue);
  font-style: italic;
  font-weight: 520;
}

.tagline {
  margin: 0 48px 0 24px;
  color: #4c4b45;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.25;
}

.edition-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
}

.topic-nav {
  background: var(--ink);
  color: #fff;
}

.topic-nav-inner {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 32px;
}

.topic-nav a,
.topic-nav button {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.topic-nav a:hover,
.topic-nav button:hover {
  color: #ff8c70;
}

.nav-note {
  margin-left: auto;
  color: #c9c7be;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.intro {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 270px;
  gap: 30px;
  align-items: end;
  padding-block: 83px 91px;
}

.intro-kicker {
  display: flex;
  align-self: start;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sun-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgb(255 92 53 / 15%);
}

.intro h1 {
  margin: 0;
  max-width: 850px;
  font-family: var(--serif);
  font-size: clamp(43px, 5.35vw, 76px);
  font-weight: 490;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.intro > p {
  margin: 0 0 4px;
  color: #4e4c46;
  font-size: 15px;
  line-height: 1.65;
}

.browse {
  padding-bottom: 112px;
}

.browse-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.browse-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-count {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px 190px;
  gap: 18px;
  padding: 24px 0 36px;
}

.control-label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-input-wrap,
.select-wrap {
  position: relative;
  display: block;
}

.search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input,
.select-field select,
.saved-toggle {
  width: 100%;
  height: 51px;
  border: 1px solid #aba69a;
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
}

.search-field input {
  padding: 0 18px 0 50px;
  appearance: none;
}

.search-field input::placeholder {
  color: #858177;
}

.select-field select {
  padding: 0 44px 0 16px;
  appearance: none;
  cursor: pointer;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transform: translateY(-50%);
  pointer-events: none;
}

.saved-toggle {
  display: flex;
  align-items: center;
  padding: 0 12px 0 15px;
  cursor: pointer;
}

.saved-toggle svg {
  width: 19px;
  height: 19px;
  margin-right: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.saved-toggle[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.saved-toggle[aria-pressed="true"] svg {
  fill: currentColor;
}

.saved-count {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 54px;
}

.story-card {
  grid-column: span 4;
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.story-card:first-child {
  grid-column: span 8;
}

.story-card:nth-child(2) {
  grid-column: span 4;
}

.story-card:nth-child(6),
.story-card:nth-child(7) {
  grid-column: span 6;
}

.story-link {
  border: 0;
  padding: 4px 0;
  background: transparent;
  cursor: pointer;
}

.story-image-wrap {
  position: relative;
  margin: 0 0 19px;
  overflow: hidden;
  background: #d5d0c4;
}

.story-image {
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 500ms ease;
}

.story-card:first-child .story-image {
  aspect-ratio: 1.93 / 1;
}

.story-card:nth-child(6) .story-image,
.story-card:nth-child(7) .story-image {
  aspect-ratio: 1.7 / 1;
}

.story-image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 60%, rgb(0 0 0 / 23%));
  pointer-events: none;
}

.story-image-wrap figcaption {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 8px;
  color: #fff;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-number {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.story-card:hover .story-image,
.story-card:has(.story-link:focus-visible) .story-image {
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.025);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-category {
  color: var(--blue);
}

.story-category::after {
  margin-left: 8px;
  color: #969187;
  content: "•";
}

.story-time {
  color: var(--muted);
}

.story-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 540;
  letter-spacing: -0.038em;
  line-height: 1.08;
  text-wrap: balance;
}

.story-card:first-child .story-title {
  max-width: 720px;
  font-size: clamp(34px, 3vw, 48px);
}

.story-summary {
  max-width: 600px;
  margin: 12px 0 23px;
  color: #57554f;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.58;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--soft-rule);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-cue {
  color: var(--blue);
}

.read-cue span {
  display: inline-block;
  margin-left: 4px;
  font-size: 15px;
  transition: transform 180ms ease;
}

.story-link:hover .read-cue span {
  transform: translate(3px, -3px);
}

.empty-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 70px max(28px, 8vw);
  border: 1px solid var(--rule);
  background: var(--paper-light);
}

.empty-state[hidden] {
  display: none;
}

.empty-symbol {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 530;
  letter-spacing: -0.04em;
}

.empty-state p:not(.eyebrow) {
  margin: 8px 0 24px;
  color: var(--muted);
}

.empty-state button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 3px;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto {
  padding-block: 94px;
  background: var(--blue);
  color: #fff;
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 180px 1fr 90px;
  gap: 30px;
  align-items: start;
}

.manifesto .eyebrow {
  color: #c5cdfc;
}

.manifesto blockquote {
  max-width: 950px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 61px);
  font-weight: 480;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.manifesto-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  color: var(--orange);
  font-size: 22px;
}

.site-footer {
  padding-block: 56px;
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.footer-logo {
  color: #fff;
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #aaa89f;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--paper-light);
  color: var(--ink);
  overflow-y: auto;
}

.detail-dialog::backdrop {
  background: rgb(12 12 10 / 70%);
}

.detail-dialog[open] {
  animation: detail-in 260ms ease-out both;
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.detail-sheet {
  min-height: 100%;
}

.detail-topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 32px;
  border-bottom: 1px solid var(--rule);
  background: rgb(250 248 241 / 94%);
  backdrop-filter: blur(8px);
}

.mini-logo {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 650;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.close-detail {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  padding: 8px 0 8px 12px;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.close-detail svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.detail-article {
  padding-bottom: 100px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  min-height: calc(100vh - 62px);
  border-bottom: 1px solid var(--rule);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 65px clamp(42px, 6vw, 100px);
}

.detail-meta-top {
  display: flex;
  gap: 11px;
  margin-bottom: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-category {
  color: var(--blue);
}

.detail-category::after {
  margin-left: 11px;
  color: var(--muted);
  content: "—";
}

.detail-copy h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 5.6vw, 86px);
  font-weight: 510;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.detail-deck {
  max-width: 600px;
  margin: 29px 0 42px;
  color: #54524b;
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
}

.byline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 640px;
  padding-top: 17px;
  border-top: 1px solid var(--soft-rule);
}

.byline-row p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.byline-row p span {
  color: var(--muted);
}

.save-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ink);
  padding: 10px 14px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.save-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.save-button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.save-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.detail-figure {
  position: relative;
  min-height: 630px;
  margin: 0;
  overflow: hidden;
  background: #d0ccc0;
}

.detail-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.detail-figure figcaption {
  position: absolute;
  right: 15px;
  bottom: 14px;
  padding: 5px 7px;
  background: rgb(20 20 17 / 74%);
  color: #fff;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-body {
  width: min(680px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 92px 0 48px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.82;
}

.article-body p {
  margin: 0 0 1.65em;
}

.article-body p:first-child::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--blue);
  font-size: 4.7em;
  font-weight: 600;
  line-height: 0.68;
}

.article-end {
  display: flex;
  width: min(680px, calc(100vw - 48px));
  margin: 0 auto;
  align-items: center;
  gap: 15px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.article-end span {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
  font-weight: 650;
}

.article-end p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 40px, 760px);
  }

  .masthead {
    grid-template-columns: 1fr auto;
  }

  .tagline {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .intro-kicker {
    margin: 0;
  }

  .intro > p {
    max-width: 500px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .story-card,
  .story-card:first-child,
  .story-card:nth-child(2),
  .story-card:nth-child(6),
  .story-card:nth-child(7) {
    grid-column: span 6;
  }

  .story-card:first-child .story-image,
  .story-card:nth-child(6) .story-image,
  .story-card:nth-child(7) .story-image {
    aspect-ratio: 1.4 / 1;
  }

  .story-card:first-child .story-title {
    font-size: clamp(25px, 4vw, 34px);
  }

  .manifesto-inner {
    grid-template-columns: 1fr auto;
  }

  .manifesto blockquote {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .manifesto-mark {
    grid-column: 2;
    grid-row: 1;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    padding: 65px 36px 55px;
  }

  .detail-figure {
    min-height: 580px;
    max-height: 72vh;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 30px);
  }

  .utility-bar {
    min-height: 34px;
    font-size: 9px;
  }

  .issue-date {
    display: none;
  }

  .masthead {
    min-height: 112px;
  }

  .wordmark {
    font-size: 58px;
  }

  .edition-mark {
    width: 48px;
    height: 48px;
    font-size: 9px;
  }

  .topic-nav-inner {
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topic-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .topic-nav a,
  .topic-nav button {
    flex: 0 0 auto;
    font-size: 10px;
  }

  .nav-note {
    display: none;
  }

  .intro {
    gap: 18px;
    padding-block: 51px 58px;
  }

  .intro h1 {
    font-size: 41px;
    line-height: 1.02;
  }

  .intro > p {
    font-size: 14px;
  }

  .browse {
    padding-bottom: 76px;
  }

  .browse-heading {
    align-items: start;
    padding-bottom: 18px;
  }

  .browse-heading h2 {
    font-size: 33px;
  }

  .result-count {
    margin-top: 28px;
    font-size: 12px;
  }

  .filters {
    grid-template-columns: 1fr 138px;
    gap: 12px;
    padding-block: 21px 36px;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .saved-field {
    min-width: 0;
  }

  .search-field input,
  .select-field select,
  .saved-toggle {
    height: 49px;
    font-size: 14px;
  }

  .saved-toggle {
    padding-inline: 12px;
  }

  .saved-toggle svg {
    margin-right: 7px;
  }

  .story-grid {
    display: block;
  }

  .story-card {
    margin-bottom: 46px;
  }

  .story-card:last-child {
    margin-bottom: 0;
  }

  .story-link {
    padding-block: 5px;
  }

  .story-card .story-image,
  .story-card:first-child .story-image,
  .story-card:nth-child(6) .story-image,
  .story-card:nth-child(7) .story-image {
    aspect-ratio: 1.38 / 1;
  }

  .story-title,
  .story-card:first-child .story-title {
    font-size: 29px;
  }

  .story-summary {
    margin-bottom: 19px;
  }

  .empty-state {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 40px 24px;
  }

  .empty-state h3 {
    font-size: 30px;
  }

  .manifesto {
    padding-block: 65px;
  }

  .manifesto blockquote {
    font-size: 36px;
  }

  .manifesto-mark {
    width: 54px;
    height: 54px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner > p {
    margin-top: 34px;
  }

  .detail-topbar {
    min-height: 56px;
    padding: 0 18px;
  }

  .close-detail {
    gap: 10px;
    font-size: 9px;
  }

  .close-detail svg {
    width: 21px;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-copy {
    padding: 46px 20px 40px;
  }

  .detail-meta-top {
    margin-bottom: 22px;
  }

  .detail-copy h2 {
    font-size: 45px;
  }

  .detail-deck {
    margin: 22px 0 31px;
    font-size: 17px;
  }

  .byline-row {
    align-items: flex-end;
    gap: 12px;
  }

  .save-button {
    max-width: 150px;
    padding: 9px 10px;
    font-size: 9px;
  }

  .detail-figure {
    min-height: 420px;
    max-height: none;
    aspect-ratio: 0.88 / 1;
  }

  .article-body {
    width: calc(100vw - 40px);
    padding: 58px 0 26px;
    font-size: 18px;
    line-height: 1.78;
  }

  .article-end {
    width: calc(100vw - 40px);
  }

  .detail-article {
    padding-bottom: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
