@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/sofia-sans-condensed-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/palanquin-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/palanquin-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/palanquin-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/palanquin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/palanquin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/palanquin-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Palanquin'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/palanquin-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #fbfaf4;
  --fg-light-base-body: #1d2b36;
  --fg-light-base-heading: #1d2b36;
  --fg-light-base-muted: #4c5d6c;
  --fg-light-base-link: #b23a26;
  --fg-light-base-inverse: #1d2b36;
  --bg-light-card: #f3efe1;
  --fg-light-card-body: #1d2b36;
  --fg-light-card-heading: #1d2b36;
  --fg-light-card-muted: #4c5d6c;
  --fg-light-card-link: #b23a26;
  --fg-light-card-inverse: #1d2b36;
  --bg-light-elevated: #e7eef0;
  --fg-light-elevated-body: #1d2b36;
  --fg-light-elevated-heading: #1d2b36;
  --fg-light-elevated-muted: #4c5d6c;
  --fg-light-elevated-link: #8e2b1b;
  --fg-light-elevated-inverse: #1d2b36;
  --brand-light-accent: #b23a26;
  --brand-light-accent-hover: #8e2b1b;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #b23a26;
  --border-light-default: #6a7c89;
  --border-light-subtle: #ccd8dd;
}
.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; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --cond: 'Sofia Sans Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Palanquin', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --ink: var(--fg-light-base-body);
  --paper: var(--bg-light-base);
  --kraft: var(--bg-light-card);
  --ruled: var(--bg-light-elevated);
  --rule: var(--border-light-subtle);
  --frame: var(--border-light-default);
  --coral: var(--brand-light-accent);
  --coral-deep: var(--brand-light-accent-hover);
  --margin-line: #d4573f;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 4.5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body.bg-surface-base, body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  background-image:
    radial-gradient(ellipse 60% 40% at 8% 0%, rgba(214, 196, 158, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 35% at 100% 60%, rgba(176, 196, 206, 0.18), transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--cond);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); margin: 2.6rem 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 1.9rem 0 0.5rem; }

p { margin: 0 0 1.05rem; }

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

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header: sticky notebook top ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 0 -1px var(--margin-line);
}

.notebook-brand { display: inline-flex; align-items: center; text-decoration: none; }
.notebook-brand .site-logo, .notebook-brand svg { display: block; width: 11.5rem; height: auto; }

/* Collapsed menu toggle at every width */

.site-nav { display: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.35rem 1rem 0.35rem 0.85rem;
  border: 1px solid var(--frame);
  border-radius: 0.4rem;
  background-color: var(--paper);
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover { border-color: var(--coral); }
.site-menu[open] > summary { background-color: var(--kraft); border-color: var(--coral); }

.menu-icon {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 0.85rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.3rem;
  top: 50%;
  border-top: 2px solid var(--margin-line);
  transform: translateY(-50%);
}

.site-menu > ul { list-style: none; margin: 0; padding: 0; }

.site-menu[open] > ul {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  width: min(24rem, 100%);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 1.5rem 1.5rem 2rem 2.75rem;
  background-color: var(--kraft);
  background-image: linear-gradient(to right, transparent 1.6rem, var(--margin-line) 1.6rem, var(--margin-line) calc(1.6rem + 2px), transparent calc(1.6rem + 2px));
  border-left: 1px solid var(--frame);
  box-shadow: -1.25rem 0 2.5rem -2rem rgba(29, 43, 54, 0.55);
  animation: panel-in 220ms ease-out;
}

@keyframes panel-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.site-menu ul ul { list-style: none; margin: 0 0 0.5rem; padding-left: 1rem; }

.site-menu li a {
  position: relative;
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--cond);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.site-menu li a::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 50%;
  width: 0.7rem;
  border-top: 2px solid var(--margin-line);
}

.site-menu li a:hover { color: var(--coral-deep); }
.site-menu li a[aria-current="page"] { color: var(--coral-deep); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { max-width: 72rem; margin: 0 auto; padding: 1.25rem var(--gutter) 0; font-size: 0.95rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.6rem; }
.breadcrumbs li + li::before {
  content: "";
  width: 0.5rem;
  border-top: 2px solid var(--margin-line);
}

/* ---------- Shared prose ---------- */

main { display: block; max-width: 72rem; margin: 0 auto; padding: 1.75rem var(--gutter) 4.5rem; }

.prose > * { max-width: 40rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose ul > li::marker { color: var(--margin-line); }
.prose ol > li::marker { font-family: var(--cond); font-weight: 700; color: var(--coral); }

.photo-hero { margin: 0 0 2rem; max-width: 46rem; }
.photo-hero img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.5rem 0.5rem 1.75rem;
  background-color: #ffffff;
  border: 1px solid var(--rule);
  box-shadow: 0 1rem 1.75rem -1.5rem rgba(29, 43, 54, 0.5);
  transform: rotate(-0.6deg);
}

.photo-inline { margin: 1.5rem 0; }
.photo-inline img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }

section[data-section][style] { padding: clamp(1.5rem, 5vw, 3.5rem); background-size: cover; background-position: center; margin: 1.5rem 0; }
section[data-section][style] > .bg-surface-card { max-width: 38rem; padding: 1.5rem 1.75rem; }

.table-scroll { overflow-x: auto; }

/* Handwritten-style tags and margin notes */

.diary-tag, .shelf-tag, .author-tag, .blank-tag, .step-tag, .margin-scribble, .foot-strap {
  font-family: var(--cond);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.diary-tag, .shelf-tag, .author-tag, .blank-tag {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

/* ---------- Home: diary, stepped ---------- */

.diary-lead {
  position: relative;
  max-width: 52rem;
  margin: 0.5rem 0 3rem;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem) clamp(2.25rem, 6vw, 4.5rem);
  border: 1px solid var(--rule);
  background-image:
    linear-gradient(to right, transparent clamp(1.1rem, 3vw, 2.4rem), var(--margin-line) clamp(1.1rem, 3vw, 2.4rem), var(--margin-line) calc(clamp(1.1rem, 3vw, 2.4rem) + 2px), transparent calc(clamp(1.1rem, 3vw, 2.4rem) + 2px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.2rem - 1px), rgba(122, 140, 153, 0.18) calc(2.2rem - 1px), rgba(122, 140, 153, 0.18) 2.2rem);
  box-shadow: 0 1.5rem 2.5rem -2.25rem rgba(29, 43, 54, 0.6);
}

.diary-lead::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  right: 18%;
  width: 6.5rem;
  height: 1.5rem;
  background-color: rgba(212, 87, 63, 0.22);
  transform: rotate(3deg);
}

.diary-title h1 { max-width: 13ch; }

.diary-lines { margin-top: 1.4rem; max-width: 34rem; }
.diary-lines .display-line { margin: 0 0 0.55rem; font-size: 1.15rem; line-height: 1.55; }
.diary-lines .display-line:first-child { font-family: var(--cond); font-size: 1.45rem; font-weight: 500; line-height: 1.3; }

.diary-sheet { display: grid; gap: 3rem; }

.diary-copy { padding-left: 1.25rem; border-left: 2px solid var(--margin-line); }

.diary-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  background-color: transparent;
}

.diary-steps::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  border-left: 2px dashed var(--frame);
}

.diary-step { position: relative; display: grid; gap: 0.3rem; margin: 0 0 2.25rem; }

.diary-step::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background-color: var(--margin-line);
  box-shadow: 0 0 0 4px var(--paper);
}

.step-tag { font-size: 1.1rem; }
.step-link { font-family: var(--cond); font-size: 1.55rem; font-weight: 600; line-height: 1.15; text-decoration-color: var(--rule); }
.step-link:hover { text-decoration-color: var(--coral); }
.step-line { font-size: 1rem; }

@media (min-width: 60rem) {
  .diary-sheet { grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .diary-copy { padding-left: 2rem; }
  .diary-steps { position: sticky; top: calc(var(--header-h) + 2rem); }
  .diary-step:nth-child(2) { margin-left: 1.25rem; }
  .diary-step:nth-child(3) { margin-left: 2.5rem; }
  .diary-step:nth-child(2)::before { left: -2.9rem; }
  .diary-step:nth-child(3)::before { left: -4.15rem; }
}

/* ---------- Topic hub: notes as a stepped timeline strip ---------- */

.shelf-head { max-width: 46rem; padding: 0.5rem 0 1.5rem; }
.shelf-title h1 { max-width: 18ch; }

.shelf-copy { padding-left: 1.25rem; border-left: 2px solid var(--margin-line); }

.shelf-copy ul {
  position: relative;
  max-width: 50rem;
  list-style: none;
  margin: 1.5rem 0 2.25rem;
  padding: 0 0 0 1.9rem;
}

.shelf-copy ul::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.4rem;
  bottom: 0.4rem;
  border-left: 2px dashed var(--frame);
}

.shelf-copy ul > li {
  position: relative;
  max-width: 38rem;
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.1rem 1rem;
  background-color: var(--kraft);
  border: 1px solid var(--rule);
}

.shelf-copy ul > li::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 1.2rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background-color: var(--margin-line);
  box-shadow: 0 0 0 4px var(--paper);
}

.shelf-copy ul > li > a:first-child {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--cond);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 52rem) {
  .shelf-copy { padding-left: 2rem; }
  .shelf-copy ul > li:nth-child(2) { margin-left: 2.5rem; }
  .shelf-copy ul > li:nth-child(3) { margin-left: 5rem; }
  .shelf-copy ul > li:nth-child(4) { margin-left: 7.5rem; }
  .shelf-copy ul > li:nth-child(5) { margin-left: 10rem; }
  .shelf-copy ul > li:nth-child(2)::before { left: -4.35rem; }
  .shelf-copy ul > li:nth-child(3)::before { left: -6.85rem; }
  .shelf-copy ul > li:nth-child(4)::before { left: -9.35rem; }
  .shelf-copy ul > li:nth-child(5)::before { left: -11.85rem; }
}

/* ---------- Article: two-column field note with margin ---------- */

.leaf-sheet { display: flex; flex-direction: column; gap: 2.5rem; }

.leaf-page { padding-left: 1.25rem; border-left: 2px solid var(--margin-line); }
.leaf-margin { order: 2; background-color: transparent; }

.leaf-title h1 { max-width: 20ch; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }

.leaf-copy h2 { position: relative; }
.leaf-copy h2::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.5em;
  width: 0.75rem;
  border-top: 3px solid var(--margin-line);
  transform: translateX(-50%);
}

.leaf-copy > ol:last-of-type,
.leaf-copy > ul:last-of-type {
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  background-color: var(--kraft);
  border: 1px dashed var(--frame);
}

.margin-scribble { font-size: 1.3rem; line-height: 1.25; transform: rotate(-2deg); max-width: 13rem; }
.margin-label { margin: 1.5rem 0 0.35rem; font-size: 0.95rem; }
.margin-shelves { list-style: none; margin: 0; padding: 0; }
.margin-shelves li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.margin-shelves a { font-family: var(--cond); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.margin-shelves a:hover { text-decoration: underline; }

@media (min-width: 60rem) {
  .leaf-sheet { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0; }
  .leaf-margin { order: 0; padding: 4.5rem 1.75rem 0 0; text-align: right; }
  .leaf-margin .margin-scribble { margin-left: auto; transform: rotate(-3deg); transform-origin: right center; }
  .leaf-page { padding-left: 2.5rem; }
  .leaf-copy h2::before { left: -2.5rem; width: 1.1rem; }
}

/* ---------- About: author's note with fact margin ---------- */

.author-sheet { display: grid; gap: 2.5rem; }
.author-page { padding-left: 1.25rem; border-left: 2px solid var(--margin-line); }
.author-title h1 { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }

.author-margin {
  align-self: start;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--rule);
  box-shadow: 0 1rem 2rem -1.75rem rgba(29, 43, 54, 0.55);
  transform: rotate(0.6deg);
}

.author-margin-head { margin: 0 0 0.9rem; font-family: var(--cond); font-size: 1.4rem; font-weight: 600; }
.author-facts { margin: 0; }
.author-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.author-facts dt { font-size: 0.98rem; }
.author-facts dd { margin: 0; font-family: var(--cond); font-size: 1.2rem; font-weight: 700; text-align: right; }

@media (min-width: 60rem) {
  .author-sheet { grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .author-page { padding-left: 2.5rem; }
  .author-margin { position: sticky; top: calc(var(--header-h) + 2rem); margin-top: 5rem; }
}

/* ---------- Contact: blank diary page ---------- */

.blank-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.75rem) 2.5rem clamp(2.5rem, 7vw, 4.75rem);
  border: 1px solid var(--rule);
  background-image:
    linear-gradient(to right, transparent clamp(1.25rem, 3.5vw, 2.6rem), var(--margin-line) clamp(1.25rem, 3.5vw, 2.6rem), var(--margin-line) calc(clamp(1.25rem, 3.5vw, 2.6rem) + 2px), transparent calc(clamp(1.25rem, 3.5vw, 2.6rem) + 2px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.2rem - 1px), rgba(122, 140, 153, 0.2) calc(2.2rem - 1px), rgba(122, 140, 153, 0.2) 2.2rem);
  box-shadow: 0 1.5rem 2.5rem -2.25rem rgba(29, 43, 54, 0.6);
}

.blank-title h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 1.25rem; }

.blank-form { display: grid; gap: 1.25rem; margin-top: 2rem; max-width: 30rem; }
.blank-field { display: grid; gap: 0.3rem; margin: 0; }
.blank-field label { font-family: var(--cond); font-size: 1.15rem; font-weight: 600; }

.blank-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  border-bottom: 2px solid var(--frame);
  border-radius: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
}

.blank-field input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-bottom-color: var(--coral); }

.blank-button {
  justify-self: start;
  min-height: 2.9rem;
  padding: 0.55rem 1.4rem;
  border: 0;
  border-radius: 0.35rem;
  background-color: var(--coral);
  color: var(--brand-light-on-accent);
  font-family: var(--cond);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.blank-button:hover { background-color: var(--coral-deep); }

/* ---------- Thank you: dated slip with margin mark ---------- */

.slip-page {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 2rem clamp(3rem, 8vw, 4.75rem);
  border: 1px solid var(--rule);
  transform: rotate(-0.4deg);
}

.slip-page::before {
  content: "";
  position: absolute;
  left: clamp(1.1rem, 3vw, 1.9rem);
  top: 2.6rem;
  width: 0.7rem;
  height: 1.3rem;
  border-right: 3px solid var(--margin-line);
  border-bottom: 3px solid var(--margin-line);
  transform: rotate(40deg);
}

.slip-title h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 1.25rem; }
.slip-next { margin: 1.75rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--frame); font-family: var(--cond); font-size: 1.3rem; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; border-top: 2px solid var(--margin-line); }
.foot-inner { max-width: 72rem; margin: 0 auto; padding: 2.25rem var(--gutter) 2.75rem; display: grid; gap: 0.5rem; }
.foot-name { margin: 0; font-family: var(--cond); font-size: 1.5rem; font-weight: 700; }
.foot-line { margin: 0; max-width: 34rem; }
.foot-strap { margin: 0.2rem 0 0.75rem; font-size: 1.2rem; }
.foot-shelves { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; }
.foot-shelves a { font-family: var(--cond); font-size: 1.1rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .site-menu[open] > ul { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
