:root {
  --ink: #171b17;
  --ink-soft: #5f665f;
  --ink-faint: #8b9188;
  --paper: #efe8da;
  --paper-deep: #e8dfcf;
  --room: #0b110d;
  --cream: #f2ede1;
  --cream-soft: rgba(242, 237, 225, .68);
  --cream-faint: rgba(242, 237, 225, .4);
  --line: rgba(242, 237, 225, .12);
  --brass: #ad8d61;
  --brass-light: #d2b384;
  --brass-dark: #6e5638;
  --moss: #8fb49c;
  --moss-deep: #456b55;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Bahnschrift, "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--room);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 75% 18%, rgba(89, 130, 100, .1), transparent 36%),
    radial-gradient(ellipse at 7% 92%, rgba(173, 141, 97, .07), transparent 34%),
    linear-gradient(147deg, #090e0a 0%, #0e1510 49%, #090e0a 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: -34vw;
  right: -20vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: rgba(113, 155, 127, .05);
  filter: blur(100px);
  pointer-events: none;
}

button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--room); background: var(--brass-light); }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; }

.room-light {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 38%, rgba(211, 180, 132, .045), transparent 28%),
    radial-gradient(circle at 68% 76%, rgba(100, 137, 112, .035), transparent 34%);
}

.grain {
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1540px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 62px) 17px;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}

.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--brass-light); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: .27em; line-height: 1; }
.brand-slash { color: var(--cream-faint); font-size: 13px; font-weight: 300; }
.brand-sub { color: var(--cream-soft); font-family: var(--serif); font-size: 16px; font-style: italic; letter-spacing: .01em; }

.header-actions { display: flex; align-items: center; gap: 15px; }

.opened-label {
  color: var(--cream-faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.quiet-button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .022);
  color: var(--cream-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.quiet-button:hover {
  color: var(--cream);
  border-color: rgba(210, 179, 132, .36);
  background: rgba(210, 179, 132, .05);
}

.daybook {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(42px, 5.4vw, 94px);
  padding: clamp(36px, 5vh, 62px) 0 clamp(36px, 5vh, 56px);
}

.daybook-intro {
  position: sticky;
  top: 26px;
  width: 100%;
  max-width: 610px;
  animation: intro-in .7s var(--ease) both;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cream-faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--ink-faint); }

.open-pip,
.local-pip {
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(143, 180, 156, .07);
  animation: pip-breathe 5.5s ease-in-out infinite;
}

@keyframes pip-breathe {
  0%, 100% { opacity: .42; }
  50% { opacity: .92; }
}

h1 {
  margin: clamp(25px, 3.5vh, 42px) 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(70px, 7.3vw, 112px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.06em;
  text-wrap: balance;
}

h1 em {
  display: inline-block;
  margin-left: clamp(7px, 1vw, 15px);
  color: #b3c5b4;
  font-weight: 400;
  letter-spacing: -.055em;
}

.lede {
  max-width: 44ch;
  margin: clamp(24px, 3.3vh, 36px) 0 0;
  color: rgba(242, 237, 225, .7);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.75;
}

.age-panel {
  width: min(100%, 405px);
  margin-top: clamp(28px, 4vh, 42px);
  padding: 17px 0 17px;
  border-top: 1px solid rgba(242, 237, 225, .12);
  border-bottom: 1px solid rgba(242, 237, 225, .12);
}

.age-kicker {
  color: var(--cream-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.age-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--cream);
  line-height: .8;
}

.age-number strong {
  font-family: var(--serif);
  font-size: clamp(72px, 7.2vw, 96px);
  font-weight: 400;
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
}

.age-number span {
  color: #b3c5b4;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 21px);
  font-style: italic;
}

.age-rule {
  display: block;
  width: 37px;
  height: 1px;
  margin: 15px 0 13px;
  background: rgba(173, 141, 97, .5);
}

.age-copy {
  margin: 0;
  color: rgba(242, 237, 225, .52);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(22px, 3.2vh, 32px);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(210, 179, 132, .25);
  color: rgba(242, 237, 225, .62);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease;
}

.back-link span { color: var(--brass); font-size: 12px; }
.back-link:hover { color: var(--brass-light); border-color: var(--brass-light); }

.ledger {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(28, 35, 27, .16);
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(157, 117, 77, .06), transparent 34%),
    linear-gradient(150deg, #f3eddf 0%, #ede6d7 54%, #e7decd 100%);
  color: var(--ink);
  box-shadow: 0 34px 95px rgba(0, 0, 0, .32);
}

.ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.ledger > * { position: relative; z-index: 1; }

.ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(23, 27, 23, .13);
}

.ledger h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.ledger-count {
  padding-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.day-entry {
  display: grid;
  grid-template-columns: 93px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 27, 23, .11);
  animation: day-in .5s var(--ease) both;
  animation-delay: calc(var(--i) * 38ms);
}

@keyframes day-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.day-entry.is-today {
  margin: 0 -13px;
  padding: 18px 13px;
  border-bottom-color: rgba(23, 27, 23, .11);
  background: rgba(173, 141, 97, .075);
  box-shadow: inset 2px 0 0 var(--brass);
}

.day-window {
  position: relative;
  width: 100%;
  aspect-ratio: 1.16 / 1;
  overflow: hidden;
  border: 3px solid #6f583c;
  border-radius: 1px;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 59%, var(--sky-low) 100%);
  box-shadow:
    0 0 0 1px rgba(33, 24, 15, .28),
    0 7px 12px rgba(54, 42, 28, .16),
    0 0 0 1px rgba(255, 246, 224, .17) inset;
}

.day-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--sun-x) var(--sun-y), var(--glow), transparent 54%);
  pointer-events: none;
}

.day-sun {
  position: absolute;
  top: var(--sun-y);
  left: var(--sun-x);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 9px var(--glow);
  transform: translate(-50%, -50%);
}

.day-island {
  position: absolute;
  bottom: 18%;
  left: var(--island-x);
  width: 48%;
  height: 10%;
  border-radius: 50%;
  background: var(--island);
  box-shadow: 0 2px 0 rgba(18, 27, 21, .35);
  transform: translateX(-50%);
}

.day-island::after {
  content: "";
  position: absolute;
  top: 52%;
  left: 19%;
  width: 62%;
  height: 55%;
  background: var(--island);
  clip-path: polygon(0 0, 100% 0, 76% 65%, 58% 100%, 35% 72%);
}

.day-mullion-v,
.day-mullion-h {
  position: absolute;
  z-index: 2;
  background: linear-gradient(90deg, #2a2017, #796046 48%, #271d14);
  box-shadow: 1px 0 0 rgba(255, 234, 199, .13);
}

.day-mullion-v { top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); }
.day-mullion-h { top: 42%; right: 0; left: 0; height: 2px; background: linear-gradient(to bottom, #7b6246, #2b2117); }

.day-window.is-rainy::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .5;
  background: repeating-linear-gradient(104deg, transparent 0 7px, rgba(241, 237, 220, .14) 7px 8px);
}

.day-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 7.8px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.day-index { color: var(--moss-deep); font-weight: 700; }

.day-tag {
  padding: 2px 6px;
  border: 1px solid rgba(173, 141, 97, .42);
  border-radius: 999px;
  color: var(--brass-dark);
  font-size: 7px;
  letter-spacing: .08em;
}

.day-line {
  margin: 6px 0 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: -.012em;
}

.day-weather {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(23, 27, 23, .43);
  font-size: 7.8px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.weather-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brass); }

.day-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 5px 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(69, 107, 85, .76);
  font-size: 7.2px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}

.day-open span { color: var(--brass); font-size: 11px; font-weight: 400; line-height: .7; }
.day-open:hover { color: var(--ink); border-color: rgba(69, 107, 85, .35); }

.next-day {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px dashed rgba(23, 27, 23, .18);
  color: rgba(23, 27, 23, .42);
}

.next-cross {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(23, 27, 23, .22);
  border-radius: 50%;
}

.next-cross::before,
.next-cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(23, 27, 23, .22);
  transform: translate(-50%, -50%);
}

.next-cross::before { width: 7px; height: 1px; }
.next-cross::after { width: 1px; height: 7px; }
.next-kicker { font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.next-day p { margin: 3px 0 0; font-family: var(--serif); font-size: 12px; font-style: italic; }

.ledger-note {
  margin: auto 0 0;
  padding-top: 20px;
  color: rgba(23, 27, 23, .43);
  font-size: 9px;
  line-height: 1.6;
}

.day-window.is-large {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.38 / 1;
  border-width: 7px;
  border-color: #5f4b33;
  box-shadow:
    0 0 0 1px rgba(33, 24, 15, .3),
    0 18px 32px rgba(54, 42, 28, .2),
    0 0 0 1px rgba(255, 246, 224, .18) inset;
}

.day-window.is-large .day-sun {
  width: 17px;
  height: 17px;
  box-shadow: 0 0 22px var(--glow);
}

.day-window.is-large .day-island {
  width: 43%;
  height: 12%;
  bottom: 19%;
}

.day-window.is-large .day-mullion-v { width: 6px; }
.day-window.is-large .day-mullion-h { height: 4px; }

.day-tree {
  position: absolute;
  z-index: 1;
  bottom: calc(19% + 8%);
  left: calc(var(--island-x) + 2%);
  width: 2px;
  height: 15%;
  background: #1c2820;
  transform: translateX(-50%);
}

.day-tree-crown {
  position: absolute;
  z-index: 1;
  bottom: calc(19% + 20%);
  left: calc(var(--island-x) + 2%);
  width: 18%;
  aspect-ratio: 1.22;
  border-radius: 48% 52% 44% 56%;
  background:
    radial-gradient(circle at 35% 34%, rgba(127, 153, 118, .36), transparent 24%),
    var(--island);
  transform: translateX(-50%);
  box-shadow: 8px 5px 0 -5px rgba(29, 43, 33, .65), -11px 7px 0 -8px rgba(57, 77, 61, .55);
}

.day-house {
  position: absolute;
  z-index: 1;
  bottom: calc(19% + 7%);
  left: calc(var(--island-x) + 15%);
  width: 6.5%;
  height: 7%;
  border-radius: 1px 1px 0 0;
  background: #283027;
  transform: translateX(-50%);
}

.day-house::before {
  content: "";
  position: absolute;
  top: -25%;
  right: 8%;
  left: 8%;
  height: 45%;
  border-radius: 50% 50% 0 0;
  background: #202820;
}

.day-house::after {
  content: "";
  position: absolute;
  top: 33%;
  left: 38%;
  width: 20%;
  height: 25%;
  background: #e8b878;
  box-shadow: 0 0 9px rgba(232, 184, 120, .65);
}

.daypage-modal {
  width: min(94vw, 920px);
  max-height: min(92svh, 900px);
  margin: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(40, 48, 39, .2);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 38px 100px rgba(0, 0, 0, .58);
}

.daypage-modal[open] { animation: daypage-in .45s var(--ease) both; }

.daypage-modal::backdrop {
  background: rgba(3, 7, 4, .76);
  backdrop-filter: blur(6px);
  animation: backdrop-in .4s ease both;
}

@keyframes daypage-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid rgba(23, 27, 23, .15);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.modal-close:hover { color: var(--ink); border-color: rgba(23, 27, 23, .36); transform: rotate(4deg); }
.modal-close svg { width: 16px; height: 16px; }

.daypage-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(23, 27, 23, .12);
}

.daypage-head h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.daypage-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start;
  gap: clamp(24px, 3.4vw, 38px);
  padding: 24px 30px 28px;
}

.daypage-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.daypage-copy { padding-top: 3px; }

.daypage-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.daypage-line {
  margin: 15px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2.9vw, 33px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.daypage-prose {
  margin: 0;
  color: #4b5149;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.63;
}

.daypage-small {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 27, 23, .12);
  color: rgba(23, 27, 23, .43);
  font-size: 8.5px;
  line-height: 1.55;
}

.daypage-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 30px 19px;
  border-top: 1px solid rgba(23, 27, 23, .12);
  background: rgba(255, 255, 255, .14);
}

.daypage-nav-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(23, 27, 23, .16);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.daypage-nav-button:hover:not(:disabled) {
  color: var(--ink);
  border-color: rgba(23, 27, 23, .36);
  background: rgba(23, 27, 23, .035);
}

.daypage-nav-button:disabled { opacity: .32; cursor: not-allowed; }

.daypage-counter {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  white-space: nowrap;
}

.site-footer {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid rgba(242, 237, 225, .075);
  color: rgba(242, 237, 225, .47);
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.local-pip { width: 4px; height: 4px; background: var(--moss); box-shadow: 0 0 0 3px rgba(143, 180, 156, .055); }
.footer-signature { gap: 10px; font-weight: 500; letter-spacing: .11em; }
.footer-signature a { transition: color .2s ease; }
.footer-signature a:hover { color: var(--brass-light); }
.footer-rule { width: 18px; height: 1px; background: rgba(242, 237, 225, .16); }

.noscript-note {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: #141b15;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.noscript-note a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1150px) {
  .daybook { grid-template-columns: minmax(310px, .75fr) minmax(0, 1.25fr); gap: 38px; }
  h1 { font-size: clamp(58px, 7.6vw, 88px); }
  .ledger { padding: 26px; }
  .day-entry { grid-template-columns: 82px minmax(0, 1fr); gap: 15px; }
  .day-line { font-size: 17px; }
}

@media (max-width: 940px) {
  .daybook {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 38px 0 38px;
  }

  .daybook-intro {
    position: static;
    max-width: 720px;
  }

  h1 { font-size: clamp(64px, 12vw, 105px); }
  .lede { max-width: 52ch; }
  .age-panel { width: min(100%, 500px); }

  .ledger {
    width: 100%;
    min-height: 0;
    padding: clamp(22px, 4vw, 32px);
  }
}

@media (max-width: 560px) {
  .site-shell { padding-right: 16px; padding-left: 16px; }
  .brand { gap: 7px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 10px; letter-spacing: .2em; }
  .brand-slash { font-size: 11px; }
  .brand-sub { font-size: 14px; }
  .header-actions { gap: 9px; }
  .opened-label { display: none; }
  .header-actions .quiet-button { min-height: 30px; padding: 0 10px; font-size: 7.5px; letter-spacing: .08em; }

  .daybook { gap: 29px; padding: 30px 0 28px; }
  h1 { margin-top: 23px; font-size: clamp(57px, 17vw, 82px); line-height: .84; }
  h1 em { margin-left: 0; }
  .lede { max-width: 37ch; margin-top: 22px; font-size: 12px; line-height: 1.7; }

  .age-panel { margin-top: 27px; padding-top: 15px; padding-bottom: 15px; }
  .age-kicker { font-size: 7.2px; letter-spacing: .15em; }
  .age-number { gap: 8px; margin-top: 9px; }
  .age-number strong { font-size: 76px; }
  .age-number span { font-size: 16px; }
  .age-copy { font-size: 11px; }
  .back-link { margin-top: 22px; font-size: 7.2px; }

  .ledger { padding: 20px 16px; }
  .ledger-head { padding-bottom: 15px; gap: 12px; }
  .ledger h2 { margin-top: 8px; font-size: 30px; }
  .ledger-count { font-size: 7px; letter-spacing: .1em; }

  .day-entry { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 15px 0; }
  .day-entry.is-today { margin: 0 -10px; padding: 15px 10px; }
  .day-window { border-width: 2.5px; }
  .day-sun { width: 6px; height: 6px; }
  .day-meta { gap: 6px; font-size: 6.9px; letter-spacing: .1em; }
  .day-tag { padding: 1px 5px; font-size: 6.3px; }
  .day-line { margin-top: 5px; font-size: 15.5px; line-height: 1.35; }
  .day-weather { gap: 5px; font-size: 6.7px; letter-spacing: .1em; }
  .next-day { gap: 10px; margin-top: 15px; padding: 11px 10px; }
  .next-day p { font-size: 11px; }
  .ledger-note { padding-top: 16px; font-size: 8px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding-top: 12px; }
  .footer-note { font-size: 7px; }
  .footer-signature { width: 100%; justify-content: space-between; }
}

@media (max-height: 790px) and (min-width: 941px) {
  .site-shell { padding-top: 15px; padding-bottom: 12px; }
  .site-header { min-height: 36px; }
  .daybook { padding-top: 24px; padding-bottom: 24px; }
  h1 { margin-top: 25px; font-size: clamp(60px, 7vw, 92px); }
  .lede { margin-top: 21px; }
  .age-panel { margin-top: 24px; }
  .back-link { margin-top: 20px; }
  .ledger { min-height: 0; }
  .day-entry { padding-top: 14px; padding-bottom: 14px; }
  .ledger-note { margin-top: 18px; }
  .site-footer { min-height: 30px; }
}

@media (max-width: 760px) {
  .daypage-body { grid-template-columns: 1fr; gap: 22px; }
  .daypage-visual { justify-content: flex-start; }
  .day-window.is-large { max-width: 100%; }
  .daypage-copy { padding-top: 0; }
}

@media (max-width: 560px) {
  .day-open { font-size: 6.8px; padding-top: 4px; }
  .daypage-head { padding: 20px 18px 16px; gap: 16px; }
  .daypage-head h2 { font-size: 26px; }
  .daypage-body { padding: 18px; gap: 20px; }
  .daypage-line { margin-top: 13px; font-size: 24px; }
  .daypage-prose { font-size: 14.5px; }
  .daypage-small { margin-top: 19px; font-size: 8px; }
  .daypage-foot { flex-wrap: wrap; gap: 9px; padding: 13px 18px 16px; }
  .daypage-counter { order: -1; width: 100%; text-align: center; }
  .daypage-nav-button { flex: 1; min-height: 34px; padding: 0 8px; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
