:root {
  color-scheme: light;
  --paper: #f2ecdf;
  --paper-light: #faf6ed;
  --ink: #302632;
  --quiet: #635760;
  --plum: #382839;
  --rust: #814431;
  --gold: #d9b77c;
  --line: #c7bcb0;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --note: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
button, select, input { font: inherit; }
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
a:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 5px;
}
section { scroll-margin-top: 24px; }
section:focus { outline-offset: 8px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.13; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(42px, 9.8vw, 76px); letter-spacing: -.045em; }
h2 { margin: 0 0 24px; font-size: clamp(28px, 6.8vw, 40px); letter-spacing: -.025em; }
h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.015em; }
main { display: block; }
.reading-skip {
  position: absolute; z-index: 10; top: 12px; left: 18px; padding: 12px 18px;
  min-height: 44px; background: var(--paper-light); transform: translateY(-180%);
}
.reading-skip:focus { transform: none; }
.journal-header {
  width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 12px;
  display: grid; grid-template-areas: "name" "start" "more"; border-bottom: 1px solid var(--ink);
  gap: 4px;
}
.journal-name {
  grid-area: name; justify-self: center; display: flex; align-items: center; gap: 12px;
  min-height: 52px; text-decoration: none; font-size: 21px; line-height: 1.1;
  letter-spacing: -.02em;
}
.journal-name .name-mark {
  display: grid; place-items: center; width: 32px; height: 40px;
  border: 1px solid var(--rust); border-radius: 50% 50% 0 0; font-size: 22px; color: var(--rust);
}
.header-start, .header-more { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px; }
.header-start { grid-area: start; }
.header-more { grid-area: more; }
.journal-header nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 7px 5px; font: 16px/1.4 var(--note); text-decoration: none;
}
.journal-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.care-opening, .chapter-opening, .chapter-reading, .care-basics, .chapter-index, .orientation-sources, .lost-page {
  width: min(1120px, calc(100% - 40px)); margin-inline: auto;
}
.care-opening { padding-top: 36px; display: grid; gap: 38px; }
.guide-label, .fact-date, .chapter-kind, .chapter-index .entry-date, .source-label, .next-label {
  font: 16px/1.5 var(--note);
}
.guide-label { margin-bottom: 20px; color: var(--rust); }
.guide-label::before { content: "✦"; margin-right: 10px; }
.care-opening h1 { max-width: 11ch; }
.care-opening .opening-thought { font-size: 24px; line-height: 1.35; margin: 22px 0 18px; max-width: 24ch; }
.care-opening .opening-intro { max-width: 43ch; }
.fact-date { color: var(--quiet); margin-top: 24px; }
.reading-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 48px; padding: 8px 0; font-size: 18px;
}
.reading-link::after { content: "↗"; font-size: 23px; }
.opening-link { margin-top: 24px; border-bottom: 1px solid var(--ink); }
.place-atmosphere { margin: 0; position: relative; }
.place-window {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 50% 50% 2px 2px;
  aspect-ratio: 4 / 5; width: 100%; background: linear-gradient(180deg, #3a304e, #736679 55%, #b18362 80%, #553846);
  border: 1px solid var(--plum);
}
.place-window::before {
  content: ""; position: absolute; z-index: -1; width: 35%; aspect-ratio: 1;
  left: 32.5%; top: 20%; border: 1px solid #dbc8ab; border-radius: 50%; opacity: .55;
}
.place-window img { width: 100%; height: 100%; object-fit: cover; color: var(--paper-light); font-size: 16px; }
.place-atmosphere figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; font: 16px/1.5 var(--note); color: var(--quiet); }
.place-atmosphere figcaption span:last-child { color: var(--rust); }
.care-basics { padding-top: 64px; }
.care-basics > p { max-width: 65ch; }
.care-paths { margin: 36px 0 0; border-top: 1px solid var(--ink); }
.care-path { padding: 28px 0; border-bottom: 1px solid var(--line); }
.care-path dt { margin: 0 0 14px; font: 16px/1.5 var(--note); color: var(--rust); }
.care-path dd { margin: 0; max-width: 67ch; }
.reading-note { padding: 28px; margin: 34px 0; border: 1px solid var(--ink); background: var(--paper-light); }
.reading-note h2, .reading-note h3 { font-size: 28px; }
.care-basics .reading-note { max-width: 760px; }
.chapter-index { margin-top: 66px; }
.chapter-index h2 { max-width: 17ch; }
.chapter-entry {
  display: grid; gap: 10px; padding: 25px 0; border-top: 1px solid var(--line);
  min-height: 100px; text-decoration: none;
}
.chapter-entry:last-child { border-bottom: 1px solid var(--line); }
.chapter-entry .entry-title { font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.chapter-entry .entry-description { max-width: 47ch; font-size: 18px; line-height: 1.5; color: var(--quiet); }
.chapter-entry .entry-date { color: var(--quiet); }
.chapter-entry .entry-arrow { font-size: 28px; justify-self: end; line-height: 1; }
.chapter-entry:hover .entry-title { text-decoration: underline; text-underline-offset: 6px; }
.orientation-sources { margin-top: 64px; margin-bottom: 76px; }
.source-box { border: 1px solid var(--ink); background: var(--paper-light); padding: 24px; }
.source-box .source-label { font: 16px/1.5 var(--note); color: var(--ink); margin-bottom: 15px; }
.source-box p { font-size: 16px; color: var(--quiet); line-height: 1.6; }
.source-box ul { padding: 0; margin: 10px 0 0; list-style: none; }
.source-box li { margin: 0; border-top: 1px solid var(--line); }
.source-box a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 10px 0; font-size: 16px; line-height: 1.5; }
.source-box a::after { content: "↗"; font-size: 20px; flex: none; }
.chapter-opening { padding-top: 36px; }
.chapter-kind { color: var(--rust); margin-bottom: 18px; }
.chapter-opening h1 { max-width: 16ch; }
.chapter-opening .chapter-intro { max-width: 57ch; font-size: 21px; line-height: 1.55; margin-top: 26px; }
.chapter-opening .fact-date { margin-top: 18px; }
.chapter-reading { margin-top: 38px; margin-bottom: 76px; }
.chapter-jumps { margin-bottom: 40px; font-size: 16px; }
.chapter-jumps details { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.chapter-jumps summary { cursor: pointer; min-height: 52px; padding: 12px 0; font: 16px/1.7 var(--note); }
.chapter-jumps nav { padding-bottom: 12px; }
.chapter-jumps a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 1.5; }
.chapter-prose { min-width: 0; }
.chapter-prose section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.chapter-prose section p, .chapter-prose section li, .chapter-prose section dd { max-width: 68ch; }
.chapter-prose section ul { padding-left: 24px; }
.chapter-prose section li { margin-bottom: 12px; }
.chapter-prose .reading-note { margin: 30px 0 6px; }
.ask-list { margin: 24px 0; }
.ask-list dt { font: 16px/1.5 var(--note); color: var(--rust); margin-top: 23px; }
.ask-list dd { margin: 8px 0 0; }
.source-route { display: block; border-top: 1px solid var(--line); padding: 12px 0; min-height: 48px; font-size: 18px; line-height: 1.5; }
.source-route::after { content: " ↗"; }
.urgent-note { border-left: 4px solid var(--rust); padding: 18px 20px; margin: 24px 0; background: var(--paper-light); }
.next-chapter { margin-top: 36px; display: block; text-decoration: none; min-height: 76px; padding: 24px 0; border-top: 1px solid var(--ink); }
.next-label { color: var(--quiet); display: block; margin-bottom: 8px; }
.next-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 26px; line-height: 1.3; }
.next-title::after { content: "→"; }
.next-chapter:hover .next-title { text-decoration: underline; }
.question-answer h2 { font-size: clamp(26px, 5.8vw, 34px); }
.journal-footer { background: var(--plum); color: var(--paper); padding: 38px 20px; }
.footer-reading { width: min(1120px, 100%); margin-inline: auto; }
.footer-name { font-size: 25px; letter-spacing: -.02em; margin-bottom: 12px; }
.journal-footer p { max-width: 65ch; font-size: 16px; line-height: 1.65; }
.journal-footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 22px; }
.journal-footer a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 0; font-size: 16px; }
.journal-footer a:hover { color: var(--gold); }
.journal-footer a:focus-visible { outline-color: var(--gold); }
.lost-page { padding: 60px 0 90px; }
.lost-page h1 { max-width: 14ch; }
.lost-page p { max-width: 49ch; margin-top: 28px; }

@media (min-width: 52rem) {
  .journal-header {
    grid-template-areas: "start name more"; grid-template-columns: 1fr auto 1fr;
    align-items: center; padding-top: 26px; padding-bottom: 24px;
  }
  .header-start { justify-content: flex-start; }
  .header-more { justify-content: flex-end; }
  .care-opening { grid-template-columns: 1.15fr 1fr; gap: 70px; padding-top: 52px; align-items: center; }
  .care-opening h1 { font-size: clamp(66px, 6.2vw, 84px); }
  .care-opening .opening-thought { font-size: 29px; }
  .place-atmosphere { padding: 10px 14px 0; }
  .place-atmosphere::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 42px; border: 1px solid var(--line); border-radius: 50% 50% 0 0; }
  .care-basics { padding-top: 92px; }
  .care-path { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 38px; padding: 32px 0; }
  .care-path dt { margin: 4px 0 0; }
  .chapter-entry { grid-template-columns: 200px 1fr 1.2fr 32px; gap: 22px; align-items: center; }
  .chapter-entry .entry-title { font-size: 28px; }
  .chapter-entry .entry-arrow { justify-self: end; }
  .orientation-sources .source-box { margin-left: 278px; }
  .chapter-opening { padding-top: 54px; }
  .chapter-opening h1 { max-width: 16ch; font-size: clamp(64px, 5.6vw, 78px); }
  .chapter-reading { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 70px; margin-top: 60px; }
  .chapter-jumps { position: sticky; top: 24px; align-self: start; }
  .chapter-prose section { padding-bottom: 42px; margin-bottom: 42px; }
  .chapter-prose .source-box { padding: 30px; }
  .footer-reading { display: grid; grid-template-columns: 1fr auto; column-gap: 56px; }
  .footer-name, .journal-footer p { grid-column: 1; }
  .journal-footer nav { grid-column: 2; grid-row: 1 / 3; align-content: start; margin: 0; }
}

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

@media print {
  .journal-header, .chapter-jumps, .next-chapter, .journal-footer nav, .place-atmosphere { display: none; }
  body { background: white; color: black; }
  .chapter-reading { display: block; }
  .chapter-prose { max-width: 72ch; }
  .journal-footer { background: white; color: black; }
}
