:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #252b1d;
  --muted: #535547;
  --olive: #333c25;
  --accent: #9c5743;
  --line: #d9d4c5;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 2rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.58;
}

h1, h2, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 1;
  top: .6rem;
  left: 1rem;
  transform: translateY(-150%);
  padding: .55rem .9rem;
  background: var(--paper);
}

.skip:focus { transform: none; }

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand img { flex: none; }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem clamp(.85rem, 3vw, 2.4rem);
}

nav a, .up {
  display: inline-flex;
  align-items: center;
  gap: .38em;
  min-height: 2.75rem;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover, .up:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .28em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(2rem, 7vw, 6.2rem) clamp(3.2rem, 8vw, 7rem);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: .7em;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 750;
  letter-spacing: .135em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.signal {
  width: .55em;
  height: .55em;
  flex: 0 0 .55em;
  border-radius: 50%;
  align-self: center;
  background: var(--accent);
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  margin-block: .25em .24em;
  font-size: clamp(3.65rem, 9vw, 8.15rem);
  line-height: .91;
}

h1 em {
  color: #545f3d;
  font-weight: 400;
}

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

.intro {
  max-width: 32ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 100%;
  min-height: 3.4rem;
  margin-top: 1.55rem;
  padding: .76em 1.2rem;
  border-radius: .35rem;
  background: var(--olive);
  color: #fffaf0;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.button:hover { background: #4b5637; }
.button span { font-size: 1.3em; line-height: 1; }

.art {
  overflow: hidden;
  border: 1px solid #b49c70;
  border-radius: .6rem;
  background: #d6bb88;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1.1rem;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reading {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.6rem, 7vw, 5.2rem);
  border-top: 1px solid var(--line);
}

h2 {
  margin-block: .22em .28em;
  font-size: clamp(2.65rem, 5.1vw, 5rem);
  line-height: 1;
}

.section-lead > p:last-child, .pause-copy > p:last-child {
  max-width: 36ch;
  color: var(--muted);
}

details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }

summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 2vw, 1.25rem);
  min-height: 6rem;
  padding: .85rem .15rem;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary:hover .entry-title strong { color: var(--accent); }

.entry-number, .toggle {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 750;
}

.number-sage { background: #dce0cb; }
.number-rose { background: #efd7cb; }
.number-gold { background: #eadfba; }

.entry-title { display: grid; gap: .2rem; }
.entry-title strong {
  font-family: var(--display);
  font-size: clamp(1.23rem, 2.35vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.entry-topic {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.toggle {
  position: relative;
  width: 2.2rem;
  border: 1px solid #8a8b7d;
}

.toggle::before, .toggle::after {
  content: "";
  position: absolute;
  width: .75rem;
  height: 1px;
  background: var(--ink);
}

.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { transform: none; }

.entry-copy {
  max-width: 65ch;
  padding: 0 2.1rem 1.4rem calc(3rem + clamp(.65rem, 2vw, 1.25rem));
  color: var(--muted);
}

.reflection {
  margin-top: 1rem;
  padding-inline-start: .9rem;
  border-inline-start: 2px solid var(--accent);
  color: var(--ink);
}

.pause-wrap { padding-bottom: clamp(3rem, 7vw, 6rem); }

.pause {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(1.5rem, 6vw, 5rem);
  border-radius: .65rem;
  background: #e5e7d6;
}

.pause ol {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: prompt;
}

.pause li {
  display: flex;
  align-items: center;
  gap: .85em;
  padding-top: .75rem;
  border-top: 1px solid #b9beaa;
  counter-increment: prompt;
}

.pause li::before {
  flex: none;
  color: #4b5936;
  content: "0" counter(prompt);
  font-size: .78em;
  font-weight: 750;
}

.footer {
  display: grid;
  grid-template-columns: minmax(9rem, .75fr) minmax(0, 1.8fr) auto;
  align-items: start;
  gap: 1rem 2rem;
  padding-block: 1.45rem 2.6rem;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 54ch;
  padding-block: .3rem;
  color: var(--muted);
  font-size: .9rem;
}

.footer .brand { min-height: 2.75rem; }
.footer .up { justify-self: end; }

@media (max-width: 51rem) {
  .hero { gap: 2rem; }
  .reading { grid-template-columns: 1fr; }
  .footer { grid-template-columns: minmax(0, 1fr) auto; }
  .footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 41rem) {
  .wrap { width: min(100% - 2rem, 75rem); }
  .hero, .pause { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 32rem; }
  h1 { font-size: clamp(3.6rem, 14vw, 6.4rem); }
  .entry-copy { padding-inline: .15rem; }
}

@media (max-width: 32rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .1rem;
    min-height: auto;
    padding-block: .85rem .3rem;
  }

  summary { min-height: 5rem; }
  .entry-number { width: 2.25rem; }
  .toggle { width: 1.85rem; }
  .pause { padding-inline: 1.2rem; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer p { grid-column: auto; grid-row: auto; }
  .footer .up { justify-self: start; }
}
