:root {
  color-scheme: light;
  --ink: #17201e;
  --paper: #f5f6f2;
  --paper-strong: #ffffff;
  --line: #c8cfca;
  --muted: #5c6763;
  --sea: #2c665e;
  --coral: #d45b42;
  --gold: #e1b748;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(22px, 5vw, 76px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--coral);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  font-size: 14px;
}

.site-nav a {
  padding: 9px 0;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: currentColor;
}

.hero {
  position: relative;
  min-height: min(79vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #26332f;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: rgba(8, 17, 15, 0.46);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 44px));
  margin: 0 clamp(22px, 8vw, 122px) clamp(82px, 11vh, 118px);
}

.edition-label,
.eyebrow,
.entry-category {
  margin: 0 0 12px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 102px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  background: var(--coral);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b94731;
}

.button-quiet {
  background: rgba(13, 24, 21, 0.38);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: rgba(13, 24, 21, 0.68);
}

.hero-meta {
  position: absolute;
  z-index: 1;
  right: clamp(22px, 5vw, 76px);
  bottom: 24px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  text-transform: uppercase;
}

.edition-band {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.7fr;
  gap: 30px;
  align-items: baseline;
  padding: 34px clamp(22px, 5vw, 76px);
  background: var(--gold);
  border-bottom: 1px solid #b18d33;
}

.edition-band p,
.edition-band h2 {
  margin: 0;
}

.edition-band > p:first-child {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.edition-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.edition-band > p:last-child {
  max-width: 690px;
}

.archive-section,
.about-section {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.archive-section {
  padding: 96px 0 92px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.eyebrow {
  color: var(--sea);
}

.section-heading h2,
.field-notes h2,
.about-section h2,
.entry-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  border-color: var(--sea);
  background: var(--sea);
  color: #ffffff;
}

.entry-list {
  border-top: 1px solid var(--ink);
}

.entry {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 144px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.entry[hidden] {
  display: none;
}

.entry-number {
  align-self: start;
  margin: 3px 0 0;
  color: var(--coral);
  font-weight: 700;
}

.entry h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.entry p {
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
}

.entry .entry-category {
  margin-bottom: 7px;
  color: var(--sea);
}

.entry-button,
.status-area button,
.dialog-close {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.entry-button:hover,
.entry-button:focus-visible,
.status-area button:hover,
.status-area button:focus-visible,
.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--coral);
}

.field-notes {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 64px;
  padding: 90px max(22px, calc((100vw - 1240px) / 2));
  background: var(--sea);
  color: #ffffff;
}

.field-notes .eyebrow {
  color: #d9ece7;
}

.field-notes blockquote {
  margin: 0;
  padding-left: 32px;
  border-left: 4px solid var(--gold);
}

.field-notes blockquote p {
  max-width: 760px;
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.28;
}

.field-notes cite {
  font-size: 13px;
  font-style: normal;
  text-transform: uppercase;
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 100px;
}

.about-copy {
  max-width: 670px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 38px;
  align-items: center;
  padding: 34px clamp(22px, 5vw, 76px);
  background: var(--ink);
  color: #eef2ef;
  font-size: 13px;
}

.site-footer p {
  margin: 2px 0;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.status-area {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #70c995;
}

.status-area[data-state="checking"] .status-dot {
  background: var(--gold);
}

.status-area[data-state="offline"] .status-dot {
  background: var(--coral);
}

.status-area button {
  margin-left: 8px;
  color: #ffffff;
}

.copyright {
  color: #aab4af;
  text-align: right;
}

.entry-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
}

.entry-dialog::backdrop {
  background: rgba(7, 12, 11, 0.68);
}

.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.dialog-topline p {
  margin: 0;
  color: var(--sea);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.entry-dialog > p {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dialog-facts div {
  min-width: 0;
}

.dialog-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.dialog-facts dd {
  margin: 0;
}

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

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    min-height: 92px;
    padding-top: 18px;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 13px;
    font-size: 12px;
  }

  .wordmark span:last-child {
    display: none;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-content {
    margin-bottom: 92px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-meta {
    left: 22px;
    right: auto;
    gap: 16px;
  }

  .edition-band,
  .field-notes,
  .about-section {
    grid-template-columns: 1fr;
  }

  .edition-band {
    gap: 8px;
  }

  .archive-section {
    padding-top: 70px;
    padding-bottom: 66px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .field-notes h2,
  .about-section h2,
  .entry-dialog h2 {
    font-size: 38px;
  }

  .entry {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
  }

  .entry-button {
    grid-column: 2;
    justify-self: start;
  }

  .field-notes {
    gap: 34px;
    padding-top: 70px;
    padding-bottom: 74px;
  }

  .field-notes blockquote {
    padding-left: 20px;
  }

  .field-notes blockquote p {
    font-size: 27px;
  }

  .about-section {
    gap: 28px;
    padding-top: 70px;
    padding-bottom: 74px;
  }

  .about-copy {
    font-size: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .copyright {
    text-align: left;
  }
}

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

  .hero h1 {
    max-width: 320px;
    font-size: 48px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-meta span:last-child {
    display: none;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .entry h3 {
    font-size: 24px;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
  }
}

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