:root {
  color-scheme: light;
  --paper: #fffefc;
  --ink: #161616;
  --soft: #5c5656;
  --rule: #e4dfda;
  --accent: #c8102e;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121212;
    --ink: #f3efe9;
    --soft: #c4bbb4;
    --rule: #2e2a28;
    --accent: #ff4d63;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

img { max-width: 100%; }

figure { margin: 0; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.skip:focus { top: 0.6rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-family: var(--sans);
}

.word {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

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

.nav nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 3rem;
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 28rem;
  margin: 1.1rem 0 0;
  color: var(--soft);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.8rem 0 0;
}

.action {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.12rem;
}

.action:active { transform: translateY(1px); }

.action.quiet {
  color: var(--soft);
  border-bottom-color: var(--rule);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: min(68dvh, 640px);
  object-fit: cover;
  object-position: 62% center;
}

.days,
.close,
.sheet {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
}

.days h2,
.sheet h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.days p,
.sheet p,
.close p {
  max-width: 38rem;
  margin: 0.9rem 0 0;
}

.pair {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.8rem;
  align-items: start;
  margin-top: 1.6rem;
}

.pair img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.pair img:first-child { aspect-ratio: 4 / 5; }

.pair img:last-child {
  aspect-ratio: 1 / 1;
  margin-top: 14%;
}

.close {
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.sheet { max-width: 40rem; }

.sheet h2 {
  margin: 2.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sheet .figure {
  margin: 1.4rem 0 0;
}

.sheet .figure img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.page-label {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--soft);
}

footer {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--soft);
}

footer nav { display: flex; gap: 1.1rem; }

footer a { color: var(--ink); }

@media (max-width: 767px) {
  .hero,
  .pair { display: block; }

  .hero-photo { margin-top: 1.6rem; }

  .hero-photo img {
    height: 58vw;
    min-height: 220px;
    max-height: 420px;
  }

  .pair img:last-child { margin-top: 0.8rem; }

  .days,
  .close,
  .sheet { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .action { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
}
