/* Moore Lawn Care. Colors come from the logo: field green #29a738, gold ring #f7ae01, lime #92c11e. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #29a738;
  --green-ink: #1b7a28;
  --lime: #92c11e;
  --gold: #f7ae01;
  --gold-hi: #ffc226;
  --gold-ink: #2b2000;
  --field: #0e3b1f;
  --field-2: #154d29;

  --ink: #13261a;
  --ink-2: #3c4f42;
  --muted: #5b6b60;
  --paper: #f5f8f2;
  --white: #ffffff;
  --tint: #eef7e6;
  --line: rgb(14 59 31 / 0.12);
  --line-2: rgb(14 59 31 / 0.24);
  --off: #9aa69d;
  --err: #9f2a1e;
  --err-line: #c0392b;
  --err-bg: #fdeceb;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.9rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem);

  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --t-press: 120ms;
  --t-ui: 200ms;

  --dock-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--gold); color: var(--gold-ink); }

h1, h2, h3 { font-weight: 700; color: var(--field); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { background: transparent; color: var(--field); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { background: var(--paper); }
.btn-line-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.5); }
.btn-quiet { background: transparent; color: var(--field); padding-inline: 12px; min-height: 44px; }
.btn-quiet:hover { background: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--white); transition: box-shadow var(--t-ui); view-transition-name: top; }
.top.is-stuck { box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 700; color: var(--field); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; transition: color var(--t-press), background-color var(--t-press); }
.nav a:hover { color: var(--field); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--field); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--green); }
.nav .nav-cta { margin-left: 8px; min-height: 42px; padding: 8px 16px; color: var(--gold-ink); font-weight: 600; }
.nav .nav-cta:hover { background: var(--gold-hi); color: var(--gold-ink); }
.nav .nav-cta[aria-current="page"]::after { display: none; }
.top-call { font-weight: 600; width: 44px; padding: 0; }
.top-call-num { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--field); transition: background-color var(--t-press); }
.menu-btn:hover { background: var(--paper); }
.menu-btn .ico { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .top-row { min-height: 68px; gap: 16px; }
  .nav { display: flex; }
  .menu-btn { display: none; }
  .top-call { width: auto; padding-inline: 12px; }
  .top-call-num { display: inline; }
}

/* phone menu: a sheet from the right */
.menu { margin: 0 0 0 auto; width: min(100%, 400px); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: var(--white); color: var(--ink); }
.menu::backdrop { background: rgb(6 24 12 / 0.45); }
.menu[open] { animation: sheet-in var(--t-ui) var(--ease-out); }
@keyframes sheet-in { from { transform: translateX(16px); opacity: 0; } }
.menu-inner { display: flex; flex-direction: column; min-height: 100%; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.menu nav { display: grid; margin-top: 8px; }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.35rem; font-weight: 600; color: var(--field); }
.menu nav a::after { content: "\2192"; color: var(--muted); font-weight: 400; }
.menu nav a[aria-current="page"] { color: var(--green-ink); }
.menu nav a[aria-current="page"]::after { content: "You're here"; font-size: var(--fs-sm); }
.menu-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 32px; }
.menu-foot { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }

/* inner page header */
.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.page-head p { margin-top: 14px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.jump { display: flex; gap: 8px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); text-decoration: none; font-weight: 500; color: var(--field); transition: background-color var(--t-press); }
.jump a:hover { background: var(--paper); }

/* ---------- hero ---------- */
.hero-grid { display: grid; gap: 32px; padding-block: clamp(24px, 6vw, 72px) clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--green-ink); margin-bottom: 16px; }
.hero-sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34ch; margin-top: 20px; line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { flex: 1 1 200px; }
@media (min-width: 900px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--r-lg); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-photo img { aspect-ratio: 4 / 5; max-height: 72vh; }
}

/* the lawn strip: one quiet thing to play with */
.lawn {
  position: relative;
  height: clamp(120px, 18vh, 190px);
  background: #3b8a33;
  touch-action: pan-y;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.lawn-canvas, .lawn-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .lawn.is-live { cursor: none; } }
.mower { position: absolute; left: 0; top: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity var(--t-press); will-change: transform; filter: drop-shadow(0 5px 5px rgb(0 0 0 / 0.25)); }
.mower.is-on { opacity: 1; }
.mower svg { width: 100%; height: 100%; overflow: visible; }
.mower-deck { fill: var(--gold); stroke: #9a6c00; stroke-width: 2; }
.mower-wheel, .mower-handle { fill: #1d2620; }
.mower-motor, .mower-chute { fill: #263129; }
.mower-cap { fill: var(--gold-hi); }
.mower-handle { fill: none; stroke: #1d2620; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lawn-hint {
  position: absolute;
  left: max(var(--gutter), calc((100% - 1160px) / 2 + var(--gutter)));
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgb(8 32 16 / 0.82);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--t-ui) var(--ease-out);
}
.lawn-hint.is-gone { opacity: 0; pointer-events: none; }
.lawn-hint[hidden] { display: none; }
.lawn-done { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }

/* ---------- booking ---------- */
.book { padding-block: var(--section); background: var(--paper); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.book-intro p { color: var(--ink-2); margin-top: 14px; max-width: 38ch; }
.book-alt a { color: var(--green-ink); font-weight: 600; text-underline-offset: 3px; }
.status { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; }
.status.is-open .status-dot { background: var(--green); }
@media (min-width: 900px) {
  .book-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .book-intro { position: sticky; top: 96px; }
}

.card { background: var(--white); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); padding: clamp(20px, 3.5vw, 36px); }
.step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.05rem; color: var(--field); }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--field); color: var(--white); font-size: 0.8rem; font-weight: 700; flex: none; }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: box-shadow var(--t-press), background-color var(--t-press);
  -webkit-tap-highlight-color: transparent;
}
.chips-sm .chip > span { min-height: 44px; padding: 8px 6px; align-items: center; font-weight: 500; }
.chip > span:hover { box-shadow: inset 0 0 0 1.5px var(--field-2); }
.chip input:checked + span { background: var(--tint); box-shadow: inset 0 0 0 2px var(--green); color: var(--field); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip small { font-weight: 500; color: var(--muted); font-size: 0.85rem; }

.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px; margin: -2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days .chip { flex: none; scroll-snap-align: start; }
.days .chip > span { align-items: center; text-align: center; min-width: 64px; }
.days .chip-asap > span { min-width: 0; padding-inline: 16px; }
.day-dow { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.chip input:checked + span .day-dow { color: var(--green-ink); }

.fields { display: grid; gap: 14px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 1rem;
  color: var(--ink);
  transition: box-shadow var(--t-press);
}
.field input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err-line); }
.field input::placeholder { color: var(--off); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--err-bg); color: var(--err); font-weight: 600; }
.form-error[hidden] { display: none; }
.fine { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.result { display: grid; gap: 14px; }
.result[hidden] { display: none; }
.result h3 { font-size: 1.5rem; }
.result p { color: var(--ink-2); }

/* ---------- services ---------- */
.services, .work, .reviews { padding-block: var(--section); }
.svc-list { margin-top: 32px; border-top: 1px solid var(--line); }
.svc-list li { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc-list p { color: var(--ink-2); max-width: 52ch; }
.svc-list a { justify-self: start; font-weight: 600; color: var(--green-ink); text-underline-offset: 3px; padding: 6px 0; }
@media (min-width: 760px) {
  .svc-list li { grid-template-columns: 1fr 1.6fr auto; align-items: baseline; gap: 32px; }
}

/* ---------- work ---------- */
.work { padding-top: 0; }
.work-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 12px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.work-row::-webkit-scrollbar { display: none; }
.work-row figure { scroll-snap-align: start; }
.work-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.work-row figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 900px) {
  .work-row { grid-auto-flow: row; grid-template-columns: 1.4fr 1fr 1fr; overflow: visible; gap: 20px; }
}

/* ---------- reviews ---------- */
.reviews { background: var(--paper); }
.rv-grid { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 760px) { .rv-grid { grid-template-columns: 1fr 1fr; gap: 40px 56px; } }
.rv p { font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.rv figcaption { margin-top: 10px; font-weight: 600; color: var(--green-ink); font-size: var(--fs-sm); }
.rv-more { margin-top: 32px; font-size: var(--fs-sm); color: var(--muted); }
.rv-more a { color: var(--green-ink); font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--field); color: rgb(255 255 255 / 0.8); padding-top: clamp(48px, 7vw, 88px); padding-bottom: calc(28px + var(--dock-h)); }
.foot-grid { display: grid; gap: 36px; }
.foot-brand img { width: 52px; height: 52px; }
.foot-lede { margin-top: 14px; color: var(--white); font-size: 1.1rem; line-height: 1.45; max-width: 30ch; }
.foot h2 { font-size: var(--fs-sm); font-weight: 600; color: rgb(255 255 255 / 0.6); letter-spacing: 0; margin-bottom: 10px; }
.foot ul { display: grid; gap: 2px; }
.foot a { color: var(--white); text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot-phone { font-size: 1.5rem; font-weight: 700; color: var(--gold) !important; text-decoration: none; }
.foot .status { margin-top: 10px; color: var(--white); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 0.7fr 1fr 1fr; gap: 40px; } }
.foot-meta { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; font-size: var(--fs-sm); color: rgb(255 255 255 / 0.6); }
.foot-meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgb(255 255 255 / 0.14); }

/* closing call to action */
.cta-band { padding-block: var(--section); text-align: center; }
.cta-band p { margin: 14px auto 0; max-width: 40ch; color: var(--ink-2); }
.cta-band .hero-ctas { justify-content: center; }

/* section heads with a link on the right */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sec-head a { font-weight: 600; color: var(--green-ink); text-underline-offset: 3px; padding: 8px 0; }

/* ---------- services page ---------- */
.svc-detail { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.svc-detail-grid { display: grid; gap: 28px; align-items: start; }
.svc-detail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.svc-detail h2 { margin-bottom: 12px; }
.svc-detail > .wrap > div > p, .svc-detail-body > p { color: var(--ink-2); max-width: 52ch; }
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 4px, var(--lime) 4px 8px); }
.ticks b { font-weight: 600; color: var(--field); }
.svc-detail .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .svc-detail-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .svc-detail.is-flip .svc-media { order: 2; }
  .svc-detail-grid.no-media { grid-template-columns: 1fr; max-width: 760px; }
}
@media (min-width: 640px) { .ticks-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- about page ---------- */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--r-lg); }
.about-grid p { color: var(--ink-2); max-width: 52ch; }
.about-grid p + p { margin-top: 14px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.values { display: grid; gap: 24px; margin-top: 32px; }
.values div { padding-top: 16px; border-top: 3px solid var(--lime); }
.values dt { font-weight: 700; color: var(--field); font-size: 1.1rem; }
.values dd { margin-top: 6px; color: var(--ink-2); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.facts { display: grid; gap: 20px; margin-top: 32px; }
.facts dt { font-size: var(--fs-sm); color: var(--muted); }
.facts dd { font-weight: 500; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* ---------- book page ---------- */
.book-page { padding-block: clamp(24px, 5vw, 64px) var(--section); background: var(--paper); }
.book-page h1 { font-size: var(--fs-h2); }
.book-page .book-intro > p:first-of-type { margin-top: 12px; }
.book-side-list { margin-top: 16px; }
.book-side-list dt { font-size: var(--fs-sm); color: var(--muted); }
.book-side-list dd { font-weight: 500; }
.book-side-list a { color: var(--green-ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 899px) { .book-page .book-intro p:not(.status) { display: none; } .book-page .book-grid { gap: 20px; } }
.about { padding-bottom: var(--section); }

/* ---------- phone dock ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: var(--field);
  transition: transform var(--t-ui) var(--ease-out);
}
.dock.is-away { transform: translateY(110%); }
@media (max-width: 899px) { :root { --dock-h: 68px; } }
@media (min-width: 900px) { .dock { display: none; } }

/* page changes: a short cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-ui); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
