@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/mulish-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/mulish-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/mulish-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/mulish-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/mulish-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/mulish-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/mulish-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/mulish-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/mulish-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/mulish-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/mulish-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/mulish-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/mulish-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/mulish-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/mulish-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #faf5ec;
  --fg-light-base-body: #3b3330;
  --fg-light-base-heading: #6e1f2c;
  --fg-light-base-muted: #5a4d47;
  --fg-light-base-link: #24533a;
  --fg-light-base-inverse: #6e1f2c;
  --bg-light-card: #f1e6d3;
  --fg-light-card-body: #3b3330;
  --fg-light-card-heading: #6e1f2c;
  --fg-light-card-muted: #5a4d47;
  --fg-light-card-link: #24533a;
  --fg-light-card-inverse: #6e1f2c;
  --bg-light-elevated: #f6eee0;
  --fg-light-elevated-body: #3b3330;
  --fg-light-elevated-heading: #6e1f2c;
  --fg-light-elevated-muted: #5a4d47;
  --fg-light-elevated-link: #24533a;
  --fg-light-elevated-inverse: #6e1f2c;
  --brand-light-accent: #24533a;
  --brand-light-accent-hover: #6e1f2c;
  --brand-light-on-accent: #faf5ec;
  --focus-light-ring: #24533a;
  --border-light-default: #8a6420;
  --border-light-subtle: #dcc9a8;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --parchment: #faf5ec;
  --cream: #f1e6d3;
  --burgundy: #6e1f2c;
  --brown: #3b3330;
  --forest: #24533a;
  --gold: #8a6420;
  --rule: #dcc9a8;
  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --wide: 74rem;
  --measure: 60ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.8;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg-heading);
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 3.6vw + 1.4rem, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.25rem); }
h3 { font-size: 1.55rem; }

p, ul, ol { margin: 0; }

strong, b { font-weight: 600; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link:focus { position: fixed; left: 0.75rem; top: 0.75rem; z-index: 40; padding: 0.5rem 1rem; background: var(--parchment); }

/* ---------- shell ---------- */

.library { min-height: 100vh; display: flex; flex-direction: column; }
.library-page { flex: 1; padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.site-header { position: relative; z-index: 10; border-bottom: 6px double var(--burgundy); }

.header-bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  text-decoration: none;
}

.brand svg, .brand img { width: 2.9rem; height: 2.9rem; flex: none; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1vw + 1.25rem, 2.1rem);
  line-height: 1.05;
  color: var(--burgundy);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem clamp(1rem, 2.2vw, 2rem);
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

.site-menu { display: none; position: relative; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.55rem 1.2rem;
  background: var(--burgundy);
  color: var(--parchment);
  border-radius: 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
}

.menu-icon {
  width: 1.15rem;
  height: 2px;
  background: var(--parchment);
  box-shadow: 0 -6px 0 var(--parchment), 0 6px 0 var(--parchment);
}

.site-menu[open] .menu-icon { box-shadow: none; }

.site-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0 1.2rem;
  position: absolute;
  right: calc(-1 * var(--gutter));
  top: calc(100% + 1rem);
  width: min(24rem, 100vw);
  background: var(--parchment);
  border-top: 6px double var(--burgundy);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 18px 30px rgba(59, 51, 48, 0.18);
}

.site-menu > ul a {
  display: block;
  padding: 0.9rem var(--gutter);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 1px solid var(--rule);
}

.site-menu > ul a:hover { color: var(--burgundy); }

@media (max-width: 58rem) {
  .site-nav { display: none; }
  .site-menu { display: block; }
}

.breadcrumbs { max-width: var(--wide); margin: 0 auto; padding: 1.1rem var(--gutter) 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; font-size: 1rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.7rem; color: var(--gold); }

.site-footer { border-top: 6px double var(--burgundy); }

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.8rem var(--gutter) 2.2rem;
  display: grid;
  gap: 1.6rem;
}

.footer-shelves, .footer-desk { list-style: none; margin: 0; padding: 0; }

.footer-shelves li + li { margin-top: 0.4rem; }

.footer-shelves a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 0.8vw + 1.2rem, 1.85rem);
  line-height: 1.3;
}

.footer-desk { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; font-size: 1.15rem; }

.footer-line { max-width: 52ch; }

.footer-copy { font-size: 1rem; border-top: 1px solid var(--gold); padding-top: 1.2rem; }

/* ---------- prose and photos ---------- */

.prose > * + * { margin-top: 1.2rem; }

.prose h2 {
  margin-top: 2.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
}

.prose h3 { margin-top: 2.2rem; }

.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--burgundy); }

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
}

.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--burgundy); border-bottom: 2px solid var(--gold); }

.photo-hero, .photo-inline { margin: 0; }

.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--gold);
}

.photo-inline { margin-top: 2.2rem; margin-bottom: 1rem; }

section[data-section][style] { padding: clamp(2.2rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); margin-top: 2.6rem; }
section[data-section][style] > .bg-surface-card { padding: clamp(1.3rem, 3vw, 2.2rem); border-top: 6px double var(--burgundy); }
section[data-section][style] > .bg-surface-card > * + * { margin-top: 1rem; }
section[data-section][style] h2 { margin-top: 0; }

/* ---------- home: reading room ---------- */

.reading-room {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, 37rem)
    [mid] minmax(0, 37rem)
    [content-end] minmax(var(--gutter), 1fr) [full-end];
}

.reading-room > * { grid-column: content; }

.room-head {
  grid-column: content-start / mid;
  grid-row: 1;
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(0rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem) 0;
}

.room-title h1 { font-size: clamp(3rem, 4.5vw + 1.4rem, 5.2rem); line-height: 1; }

.deck {
  margin-top: 1.3rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 0.9vw + 1.2rem, 1.95rem);
  line-height: 1.3;
  max-width: 26ch;
}

.deck-line { margin-top: 0.9rem; max-width: 44ch; }

.room-body { display: contents; }
.room-body > * { grid-column: content; max-width: var(--measure); }
.room-body > * + * { margin-top: 1.2rem; }
.room-body > h2:first-of-type { margin-top: 1.4rem; }

.room-body > .photo-hero {
  grid-column: mid / content-end;
  grid-row: 1;
  align-self: center;
  max-width: none;
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.room-body > .photo-hero img { aspect-ratio: 4 / 3; padding: 8px; }

.room-body > p:first-of-type {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.6;
}

.shelves { grid-row: 2; margin-top: clamp(1rem, 3vw, 2rem); }

.shelf-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.shelf { padding: 1.5rem 1.5rem 1.7rem; border-top: 3px solid var(--gold); border-radius: 0 0 4px 4px; }

.shelf-title { font-size: 1.6rem; line-height: 1.2; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule); }
.shelf-title a { color: var(--burgundy); text-decoration: none; }
.shelf-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.shelf-list { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.shelf-list li + li { margin-top: 0.7rem; }
.shelf-list a { font-size: 1.15rem; font-weight: 600; line-height: 1.45; }

/* ---------- topic hub: bookcase ---------- */

.bookcase-head, .bookcase-intro, .bookcase-rows {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.bookcase-head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.bookcase-title h1 { padding-bottom: 1rem; border-bottom: 6px double var(--burgundy); }

.bookcase-intro { margin-top: 2rem; }
.bookcase-intro > p:first-child { font-family: var(--serif); font-size: 1.4rem; line-height: 1.6; }
.bookcase-intro > .photo-hero { margin-bottom: 1.8rem; }

.bookcase-rows { margin-top: 3.2rem; }
.rows-heading { margin-bottom: 0.6rem; }

.bookcase-rows ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.bookcase-rows li { border-bottom: 1px solid var(--rule); }
.bookcase-rows li a {
  display: block;
  padding: 1.1rem 0.4rem 1.1rem 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.25;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.bookcase-rows li a:hover, .bookcase-rows li a:focus-visible { border-left-color: var(--gold); background: var(--cream); text-decoration: underline; }

/* ---------- article: chapter ---------- */

.chapter-head, .chapter-body, .siblings {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.chapter-head { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.2rem; border-bottom: 6px double var(--burgundy); }

.chapter-body { margin-top: 2rem; }

.chapter-body > p:first-of-type {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--fg-heading);
}

.chapter-body > p:nth-of-type(2):not(h2 ~ p) {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.4rem 1.2rem;
}

.chapter-body > .photo-hero { margin-bottom: 1.8rem; }

.siblings { margin-top: 4rem; padding-top: 1.6rem; padding-bottom: 1.8rem; border-top: 6px double var(--burgundy); }
.siblings-heading { margin-bottom: 1.2rem; }

.sibling-groups { display: grid; gap: 1.6rem; }
.sibling-shelf { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--gold); }
.sibling-list { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.sibling-list li + li { margin-top: 0.5rem; }

/* ---------- about: large-print reader ---------- */

.welcome-head, .welcome-body {
  max-width: calc(68ch + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.welcome-head { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.2rem; border-bottom: 6px double var(--burgundy); }

.welcome-body { margin-top: 2.4rem; font-size: 20px; line-height: 1.8; }

.welcome-body > * + * { margin-top: 0; }

.welcome-body > p:first-child {
  background: var(--cream);
  padding: 1.5rem 1.6rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--fg-heading);
}

.welcome-body > p + p,
.welcome-body > * + h2 {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gold);
}

/* ---------- contact: reading-room request ---------- */

.request-head, .request-body, .request-form {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.request-head { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.2rem; border-bottom: 6px double var(--burgundy); }
.request-intro { margin-top: 0.9rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; }

.request-body { margin-top: 2rem; }

.request-form {
  margin-top: 3rem;
  padding-top: 1.8rem;
  padding-bottom: 2rem;
  max-width: 40rem;
  border-top: 3px solid var(--gold);
  display: grid;
  gap: 1.4rem;
}

.form-heading { font-size: 1.75rem; }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 19px; font-weight: 600; color: var(--brown); }
.field-note { font-weight: 400; color: var(--fg-muted); }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--brown);
  background: var(--parchment);
  border: 2px solid var(--brown);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  min-height: 54px;
}

.field textarea { resize: vertical; }

.form-submit {
  justify-self: start;
  min-height: 54px;
  padding: 0.75rem 1.8rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--parchment);
  background: var(--burgundy);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.form-submit:hover { background: #561722; }

/* ---------- thank you and 404 ---------- */

.received, .missing {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0;
}

.received-card, .missing-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-top: 6px double var(--burgundy);
  border-radius: 0 0 4px 4px;
}

.received-card > * + *, .missing-card > * + * { margin-top: 1.1rem; }
.received-check { display: block; }

.missing-status {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 3vw + 1.4rem, 3.6rem);
  line-height: 1.08;
}

.missing-title h1 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; line-height: 1.45; color: var(--brown); }

.stacked-shelves { margin-top: 2.2rem; }
.stacked-lead { margin-bottom: 0.6rem; }
.stacked-shelves ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.stacked-shelves li { border-bottom: 1px solid var(--rule); }
.stacked-shelves a {
  display: block;
  padding: 1rem 0.2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.25;
}

/* ---------- small screens ---------- */

@media (max-width: 58rem) {
  .room-head { grid-column: content; padding-right: 0; padding-bottom: 1rem; }
  .room-body > .photo-hero { grid-column: content; grid-row: 2; margin: 0 0 1.5rem; }
  .shelves { grid-row: 3; }
  .shelf-row { grid-template-columns: minmax(0, 1fr); }
}

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