:root {
  --paper: #f2efe9;
  --paper-deep: #e5ded3;
  --ink: #191918;
  --muted: #6b6760;
  --line: #d3cbc0;
  --accent: #a94931;
  --night: #172023;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 233, 0.96);
}

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding-block: 8px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.journal-photo {
  position: relative;
  min-height: 690px;
  height: calc(100svh - 76px);
  max-height: 920px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--night);
}

.journal-photo > img,
.photo-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.journal-photo > img {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 220ms ease, transform 8s linear;
}

.journal-photo.is-changing > img {
  opacity: 0.28;
}

.journal-photo:not(.is-changing) > img {
  transform: scale(1.045);
}

.photo-shade {
  z-index: -1;
  background: rgba(8, 12, 13, 0.43);
}

.journal-copy {
  height: calc(100% - 116px);
  padding-top: 78px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
  transition: opacity 180ms ease, transform 180ms ease;
}

.is-changing .journal-copy {
  opacity: 0.45;
  transform: translateY(6px);
}

.issue,
.section-label,
.journal-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.journal-copy h1 {
  max-width: 900px;
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 102px);
  font-weight: 400;
  line-height: 0.98;
}

.journal-lead {
  max-width: 630px;
  margin: 28px 0 0;
  font-size: 19px;
}

.journal-meta {
  margin-top: 34px;
}

.carousel-bar {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-button,
.pause-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(10, 14, 14, 0.18);
  color: var(--white);
  cursor: pointer;
}

.round-button {
  width: 44px;
  border-radius: 50%;
  font-size: 21px;
}

.pause-button {
  min-width: 108px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
}

.round-button:hover,
.round-button:focus-visible,
.pause-button:hover,
.pause-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.carousel-position {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.position-line {
  width: 72px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.intro {
  padding-block: 128px 116px;
}

.section-label {
  color: var(--accent);
}

.intro-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 96px;
  align-items: end;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.06;
}

.intro-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.archive {
  padding-bottom: 128px;
}

.section-heading {
  padding-top: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 18px;
}

.section-heading > p {
  max-width: 260px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.archive-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
}

.archive-card {
  grid-column: span 4;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.archive-card-wide {
  grid-column: span 8;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  background: var(--paper-deep);
  transition: filter 180ms ease, transform 180ms ease;
}

.archive-card:hover img,
.archive-card:focus-visible img {
  filter: contrast(1.04);
  transform: translateY(-3px);
}

.archive-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.card-copy {
  padding-top: 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.card-copy span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.closing-note {
  padding-block: 92px;
  background: var(--night);
  color: var(--white);
}

.closing-note .section-label {
  color: #d58a76;
}

.closing-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.closing-grid blockquote {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.5vw, 62px);
  font-weight: 400;
  line-height: 1.14;
}

.site-footer {
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-row a {
  text-underline-offset: 4px;
}

.about-page {
  min-height: calc(100vh - 137px);
}

.about-hero {
  padding-block: 128px 90px;
}

.about-hero h1,
.error-content h1 {
  max-width: 990px;
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 400;
  line-height: 1;
}

.about-lead {
  max-width: 680px;
  margin: 36px 0 0 auto;
  color: var(--muted);
  font-size: 20px;
}

.about-story {
  padding-bottom: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 72px;
  align-items: center;
}

.about-story img {
  width: 100%;
  display: block;
}

.about-story p {
  color: var(--muted);
  font-size: 18px;
}

.about-story p:first-child {
  margin-top: 0;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-content {
  flex: 1;
  padding-block: 112px;
}

.error-number {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.error-content > p:not(.error-number) {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

  .journal-photo {
    min-height: 650px;
    max-height: 820px;
  }

  .intro-grid,
  .about-story {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .archive-card,
  .archive-card-wide {
    grid-column: span 6;
  }

  .card-copy {
    display: block;
  }

  .card-copy span {
    margin-top: 4px;
    display: block;
  }

  .closing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 32px);
  }

  .site-header {
    background: var(--paper);
  }

  .header-row {
    min-height: 68px;
    gap: 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 14px;
    font-size: 12px;
  }

  .nav a:first-child {
    display: none;
  }

  .journal-photo {
    min-height: 690px;
    height: calc(100svh - 68px);
    max-height: 820px;
  }

  .journal-photo > img {
    object-position: 58% center;
  }

  .journal-copy {
    height: calc(100% - 96px);
    padding-top: 48px;
  }

  .journal-copy h1 {
    margin-top: 18px;
    font-size: clamp(46px, 14vw, 68px);
  }

  .journal-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .journal-meta {
    margin-top: 24px;
  }

  .carousel-bar {
    min-height: 96px;
  }

  .pause-button {
    min-width: 86px;
    padding-inline: 12px;
  }

  .position-line {
    width: 34px;
  }

  .intro {
    padding-block: 88px 80px;
  }

  .intro-grid {
    margin-top: 20px;
    gap: 28px;
  }

  h2 {
    font-size: 40px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .archive {
    padding-bottom: 88px;
  }

  .archive-grid {
    margin-top: 38px;
    display: block;
  }

  .archive-card {
    width: 100%;
    margin-top: 34px;
    display: block;
  }

  .archive-card:first-child {
    margin-top: 0;
  }

  .card-copy {
    display: flex;
  }

  .card-copy span {
    margin-top: 0;
  }

  .closing-note {
    padding-block: 72px;
  }

  .about-hero {
    padding-block: 88px 64px;
  }

  .about-hero h1,
  .error-content h1 {
    font-size: 49px;
  }

  .about-lead {
    margin-top: 28px;
    font-size: 18px;
  }

  .about-story {
    padding-bottom: 88px;
  }

  .footer-row {
    display: block;
  }

  .footer-row a {
    margin-top: 6px;
    display: inline-block;
  }
}

@media (max-width: 390px) {
  .nav a:nth-child(2) {
    display: none;
  }

  .card-copy {
    display: block;
  }

  .card-copy span {
    margin-top: 4px;
  }
}

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

  .journal-photo > img,
  .journal-copy,
  .archive-card img {
    transition: none;
  }
}
