:root {
  color-scheme: light;
  --paper: #f2eee5;
  --ink: #292a26;
  --muted: #66665d;
  --line: #d3cdbf;
  --accent: #75523b;
  --panel: #e6e0d4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1d201e;
    --ink: #e5e0d5;
    --muted: #b1b2a7;
    --line: #42473f;
    --accent: #d7b495;
    --panel: #2b302b;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1d201e;
  --ink: #e5e0d5;
  --muted: #b1b2a7;
  --line: #42473f;
  --accent: #d7b495;
  --panel: #2b302b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

.wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--paper);
  z-index: 10;
}
.skip:focus { top: 10px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 22px;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

nav a, .theme, .eyebrow, .small, .section-link, footer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: .035em;
}

nav a { text-decoration: none; }
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 7px;
}

.theme {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 12px;
  cursor: pointer;
}

main { min-height: 65vh; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero { padding-block: 90px 72px; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.08;
  max-width: 850px;
  margin-bottom: 30px;
}

h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 400;
}

.intro {
  max-width: 620px;
  font-size: 21px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
}

.section { margin-bottom: 76px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 26px;
}

.section-head h2 { margin: 0; }
.section-link { white-space: nowrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

figure { margin: 0; min-width: 0; }

.photo-link { display: block; }

.photo-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .2s ease;
}

.photo-link:hover img { opacity: .9; }

.placeholder {
  aspect-ratio: 4 / 5;
  background: var(--panel);
  display: grid;
  place-items: center;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--line);
}

.placeholder span {
  color: var(--muted);
  font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

figcaption {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font: 12px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.number { opacity: .65; }

.feature { max-width: 820px; }
.feature .placeholder { aspect-ratio: 16 / 10; }

.poem-list { list-style: none; padding: 0; margin: 0; }

.poem-list li { border-bottom: 1px solid var(--line); }

.poem-list a {
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 24px;
  text-decoration: none;
}

.poem-list .title {
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -.025em;
}

.arrow { margin-left: auto; color: var(--muted); }

.reading { max-width: 760px; padding-bottom: 80px; }

.poem {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  margin: 0 0 56px;
}

.contact-links { display: flex; flex-wrap: wrap; gap: 24px; }

footer {
  border-top: 1px solid var(--line);
  padding-block: 26px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  nav { gap: 19px; }
  .hero { padding-block: 56px 45px; }
  .intro { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .section { margin-bottom: 54px; }
}

@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .section-head h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
