:root {
  color-scheme: light;
  --paper: #f6f1e5;
  --ink: #28291d;
  --muted: #615e50;
  --rust: #923c25;
  --line: #c9bcaa;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: var(--rust); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: .3rem;
}
::selection { background: #ecd0b9; color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: 100%; object-fit: cover; }
.frame { width: min(100% - 4rem, 69rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 1rem;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { transform: none; }
.masthead, .footer, nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.masthead { min-height: 5rem; border-bottom: 1px solid var(--line); }
.wordmark {
  font: 700 2.1rem/.9 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--rust); }
nav a { font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(2rem, 6vw, 5.2rem);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1 {
  font-size: clamp(4.2rem, 8.6vw, 7.25rem);
  line-height: .82;
  letter-spacing: -.038em;
}
h1 em { color: var(--rust); }
.hero-copy p {
  max-width: 25rem;
  margin-block: 1.65rem 1.4rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .12em;
  font-weight: 650;
}
.read-link:hover { color: var(--ink); }
.portrait { padding: .65rem; border: 1px solid var(--line); background: #fffaf0; }
.portrait img { aspect-ratio: 1 / 1.1; object-position: center 51%; }
.profile {
  display: grid;
  grid-template-columns: .85fr 1fr 1fr;
  align-items: baseline;
  gap: 1.6rem clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 3.35rem;
  padding: clamp(1.35rem, 3.5vw, 2.8rem);
  background: #eee5d1;
}
.profile h3 { color: var(--rust); }
.profile p { margin-top: .55rem; max-width: 36ch; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .1rem 1rem;
  margin-bottom: 1.35rem;
}
.section-head p, figcaption, .footer { color: var(--muted); }
h2 { font-size: clamp(2.55rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -.025em; }
.journal, .album { border-top: 1px solid var(--line); padding-block: 1.65rem 3.35rem; }
.entries, .snapshots { display: grid; gap: 1.4rem; }
.entries { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
.entry img { aspect-ratio: 4 / 3; object-position: center 62%; }
.entry:nth-child(2) img { object-position: center 46%; }
.entry:nth-child(3) img { object-position: center 61%; }
.entry .birthday-photo { object-position: center 73%; }
.entry details { border-bottom: 1px solid var(--line); }
.entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  list-style: none;
  cursor: pointer;
  min-height: 3.8rem;
  padding-block: .65rem;
}
summary::-webkit-details-marker { display: none; }
summary:hover h3 { color: var(--rust); }
h3 { font-size: clamp(1.35rem, 2.45vw, 2rem); line-height: 1.02; }
.toggle { flex: 0 0 .85rem; height: .85rem; position: relative; color: var(--rust); }
.toggle::before, .toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  border-top: 1.5px solid currentColor;
}
.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { display: none; }
.entry p { margin-bottom: 1.1rem; line-height: 1.6; }
.owner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.4rem, 6vw, 5rem);
  margin-bottom: 3.35rem;
  padding: clamp(1.35rem, 5vw, 4rem);
  background: #3e4733;
  color: var(--paper);
}
.owner p {
  max-width: 37ch;
  margin-top: .9rem;
  color: #eee6d4;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}
.owner img { height: auto; }
.snapshots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.snapshots figure { grid-column: span 2; }
.snapshots figure:nth-child(n+4) { grid-column: span 3; }
.snapshots img { aspect-ratio: 1; object-position: center; }
.snapshots figure:nth-child(n+4) img { aspect-ratio: 3 / 2; }
.snapshots figure:last-child img { object-position: center 57%; }
.snapshots a { display: block; }
.snapshots figcaption { padding-top: .55rem; }
.footer { min-height: 4.6rem; border-top: 1px solid var(--line); }
.footer a { white-space: nowrap; }
@media (max-width: 48rem) {
  .frame { width: calc(100% - 2.5rem); }
  .hero { gap: 1.7rem; }
  .masthead nav { justify-content: flex-end; flex-wrap: wrap; gap: .35rem 1rem; }
  .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile h2 { grid-column: 1 / -1; }
  .entries, .snapshots { gap: 1.35rem .95rem; }
}
@media (max-width: 36rem) {
  .frame { width: calc(100% - 2rem); }
  .masthead { flex-wrap: wrap; gap: .7rem; padding-block: .95rem .8rem; }
  .masthead nav {
    width: 100%;
    justify-content: flex-start;
    font-size: .95rem;
    gap: .3rem .85rem;
  }
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 2.1rem; }
  h1 { font-size: clamp(3.6rem, 16vw, 5rem); }
  .portrait img { aspect-ratio: 1 / 1; }
  .entries { grid-template-columns: 1fr; gap: 1.45rem; }
  .entry summary { min-height: 3.1rem; }
  .profile, .owner { grid-template-columns: 1fr; margin-bottom: 2.35rem; }
  .profile p, .owner p { max-width: none; }
  .snapshots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshots figure, .snapshots figure:nth-child(n+4) { grid-column: auto; }
  .snapshots figure:nth-child(4) img { aspect-ratio: 1; }
  .snapshots figure:last-child { grid-column: 1 / -1; }
}

.story-index { padding-bottom: 3.35rem; }
.story-index h2 { margin-bottom: 1.2rem; }
.story-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.2rem, 6vw, 5rem);
}
.story-link {
  position: relative;
  display: block;
  padding: 1.25rem 2.2rem 1.25rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.story-link::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 1.75rem;
  width: .55rem;
  height: .55rem;
  border-top: 1px solid var(--rust);
  border-right: 1px solid var(--rust);
  transform: rotate(45deg);
}
.story-link p { margin-top: .4rem; color: var(--muted); }
.story-link:hover h3 { text-decoration: underline; }
.masthead a[aria-current="page"] { color: var(--rust); text-decoration: underline; }

.article-hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 4.4rem);
  padding-block: clamp(1.8rem, 5vw, 4.2rem);
  border-bottom: 1px solid var(--line);
}
.article-back { display: inline-block; margin-bottom: 1rem; color: var(--rust); }
.article-hero h1 { font-size: clamp(3.25rem, 7vw, 6rem); line-height: .91; }
.article-intro {
  max-width: 42ch;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
}
.article-hero img { aspect-ratio: 1; object-position: center 53%; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 6vw, 6rem);
  padding-block: 2.25rem 4rem;
}
.article-body { max-width: 66ch; font-size: 1.1rem; line-height: 1.68; }
.article-body h2 { font-size: clamp(1.85rem, 4.5vw, 2.6rem); }
.article-body h2:not(:first-child) { margin-top: 1.8rem; }
.article-body p, .routine { margin-top: .6rem; }
.article-body a, .related a { color: var(--rust); }
.article-body .article-source { margin-top: 1rem; font-size: 1rem; }
.routine { margin-bottom: 0; }
.routine > div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.routine dt { font-weight: 650; }
.routine dd { margin: .1rem 0 0; }
.related {
  align-self: start;
  padding: 1.15rem 1.25rem;
  background: #eee5d1;
}
.related h2 { font-size: 1.75rem; }
.related ul { margin: .65rem 0 0; padding-left: 1.1rem; }
.related li + li { margin-top: .45rem; }

@media (max-width: 36rem) {
  .story-links, .article-hero, .article-layout { grid-template-columns: 1fr; }
  .story-index { padding-bottom: 2rem; }
  .article-intro { margin-top: .9rem; }
  .article-layout { padding-bottom: 2.6rem; }
  .article-body { font-size: 1.06rem; }
  .footer { padding-block: .7rem; }
}
