:root {
  color-scheme: light;
  --ink: #16191b;
  --muted: #62696c;
  --paper: #f6f7f5;
  --white: #ffffff;
  --line: #d8dddc;
  --accent: #146f72;
  --warm: #b8513c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 76svh;
  max-height: 820px;
  height: 720px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: var(--white);
  background-color: #07090b;
  background-image: url("/assets/earth-horizon.jpg");
  background-position: center 56%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(3, 6, 8, 0.36);
}

.nav,
.hero-copy,
.observations,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  text-decoration: none;
}

.nav-link,
.text-link {
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.nav-link {
  text-decoration: none;
}

.hero-copy {
  margin-top: auto;
  padding: 64px 0 84px;
}

.edition,
.section-label,
.story-meta,
.archive-band,
footer {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edition {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7rem, 7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin: 24px 0 28px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}

.light {
  color: var(--white);
}

.image-credit {
  position: absolute;
  right: 24px;
  bottom: 20px;
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.observations {
  padding: 92px 0 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 7px 0 0;
  color: var(--accent);
}

h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.story-list {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.story {
  min-width: 0;
  padding: 38px 32px 12px;
  border-left: 1px solid var(--line);
}

.story:first-child {
  padding-left: 0;
  border-left: 0;
}

.story:last-child {
  padding-right: 0;
}

.story-meta {
  margin: 0 0 38px;
  color: var(--muted);
}

h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

.story-featured h3 {
  color: var(--warm);
}

.story p:last-child {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
}

.archive-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--accent);
}

.archive-band p {
  margin: 0;
}

.archive-band p:nth-child(2) {
  text-align: center;
}

.archive-band p:last-child {
  text-align: right;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  color: var(--muted);
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav,
  .hero-copy,
  .observations,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 680px;
    height: 86svh;
    max-height: 760px;
    background-position: 58% center;
  }

  .nav {
    min-height: 64px;
  }

  .hero-copy {
    padding-bottom: 72px;
  }

  h1 {
    font-size: 4rem;
  }

  .intro {
    max-width: 34ch;
    font-size: 1rem;
  }

  .image-credit {
    right: 16px;
    bottom: 14px;
  }

  .observations {
    padding: 64px 0 72px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 32px;
  }

  h2 {
    font-size: 2.25rem;
  }

  .story-list {
    grid-template-columns: 1fr;
  }

  .story,
  .story:first-child,
  .story:last-child {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .story:last-child {
    border-bottom: 0;
  }

  .story-meta {
    margin-bottom: 18px;
  }

  .archive-band {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 16px;
  }

  .archive-band p:nth-child(2),
  .archive-band p:last-child {
    text-align: left;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

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