:root {
  --ink: #172e3c;
  --navy: #112f3d;
  --footer: #102b37;
  --paper: #faf7ef;
  --surface: #fffdf7;
  --wash: #dfe6dc;
  --sand: #eee4d0;
  --line: #cfc8b8;
  --accent: #805e35;
  --focus: #805e35;
  --hero-bg: var(--navy);
  --hero-ink: #fbf4e6;
  --hero-muted: #dfebe7;
  --hero-accent: #e4cba1;
  --motif-start: #314d54;
  --motif-end: var(--navy);
  --motif-line: #c5ad7e70;
  --button-bg: var(--navy);
  --button-ink: #fbf4e6;
  --button-hover: #314d54;
  --hero-button-bg: var(--sand);
  --hero-button-ink: var(--ink);
  --hero-button-hover: #fffdf7;
  --serif: 'Baskervville', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gutter: max(6vw, calc((100% - 76rem) / 2));
  --section-space: clamp(2.75rem, 5.5vw, 5.5rem);
  --hero-space: clamp(3.25rem, 6vw, 6.5rem);
  --grid-gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
main { background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:is(a, summary, button, input, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, .brand, .seal { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.45rem, 5.7vw, 5.25rem); line-height: 1.05; letter-spacing: -.042em; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.65rem); line-height: 1.12; letter-spacing: -.032em; margin: 0 0 1.5rem; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.2; margin: 0 0 .75rem; }
p { max-width: 65ch; }
small { font: 700 .72rem/1.5 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.note { font-size: .9rem; }

header, footer { padding: 1.2rem var(--gutter); display: flex; align-items: center; gap: 1.25rem 2rem; }
header { position: relative; z-index: 3; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { font-size: clamp(1.45rem, 2.4vw, 2.35rem); text-decoration: none; line-height: 1.15; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(.65rem, 2vw, 1.5rem); min-width: 0; }
nav > a, nav summary { display: inline-block; padding: .65rem 0; white-space: nowrap; }
nav summary { display: list-item; }
nav a, nav summary { font-size: .9rem; text-decoration: none; cursor: pointer; }
nav details { position: relative; }
nav details[open] { z-index: 5; }
nav details > div {
  position: absolute;
  inset: 100% 0 auto auto;
  width: min(19rem, calc(100vw - 2rem));
  max-height: 65vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px #172e3c24;
  padding: .5rem .7rem;
}
nav details a { display: flex; align-items: center; min-height: 44px; padding: .5rem; border-radius: 4px; }
nav details a:hover { background: var(--sand); }
nav a[aria-current="page"] { text-decoration: underline; }
footer { flex-wrap: wrap; background: var(--footer); color: #fff4df; --focus: #fff4df; }
footer .brand { flex-basis: 100%; }
footer a { font-size: .9rem; overflow-wrap: anywhere; }
footer a:hover { color: var(--hero-accent); }

.hero, .mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--hero-space) var(--gutter);
  background: var(--hero-bg);
  color: var(--hero-ink);
  --focus: var(--hero-ink);
}
.hero .intro { position: relative; z-index: 1; width: min(73%, 52rem); }
.hero small, .mast small { display: block; margin-bottom: 1.15rem; color: var(--hero-accent); }
.hero em, .mast em { color: var(--hero-accent); }
.hero p, .mast p { color: var(--hero-muted); }
.motif {
  position: absolute;
  inset: 0 0 0 69%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--motif-start), var(--motif-end));
}
.motif i {
  position: absolute;
  width: 150%;
  height: 130%;
  border: 1px solid var(--motif-line);
  border-radius: 50% 50% 0 0;
  transform: rotate(-28deg);
}

.button, main button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  max-width: 100%;
  padding: .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-ink);
  font: 600 .9rem/1.4 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, main button:not(:disabled):hover { background: var(--button-hover); color: var(--button-ink); }
.hero .button { margin-top: .6rem; background: var(--hero-button-bg); color: var(--hero-button-ink); }
.hero .button:hover { background: var(--hero-button-hover); color: var(--hero-button-ink); }
.hero .button.secondary { border-color: currentColor; background: transparent; color: var(--hero-ink); }
.hero .button.secondary:hover { background: var(--hero-button-bg); color: var(--hero-button-ink); }
button:disabled { opacity: .62; cursor: default; }

.wrap, .feature, .sheet, .signup { padding: var(--section-space) var(--gutter); }
.feature, .signup { background: var(--wash); }
.feature small { display: block; margin-bottom: .9rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
:is(.grid > article, .services > article, .services article, .cards > .card, .lead) {
  min-width: 0;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
article a { text-decoration-thickness: 1px; }
main :is(.collections, .collection, .billing) details { border-top: 1px solid var(--line); }
main :is(.collections, .collection, .billing) summary { cursor: pointer; }
.collections details { padding: 1rem 0; }
.collections summary { font: 1.3rem/1.4 var(--serif); }
.collections details div { padding: 1rem 0; max-width: 48rem; }
aside { padding: 0 var(--gutter) var(--section-space); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 9; background: white; padding: 8px; }

.mom-nook main {
  --ink: #51463d;
  --paper: #fffcf4;
  --surface: #fff3c9;
  --wash: #fff3c9;
  --line: #b6a493;
  --accent: #51463d;
  --focus: #51463d;
  --hero-bg: #f5e6a8;
  --hero-ink: #51463d;
  --hero-muted: #51463d;
  --hero-accent: #51463d;
  --motif-start: #fff3c9;
  --motif-end: #f5e6a8;
  --motif-line: #b6a493;
  --button-bg: #f5e6a8;
  --button-ink: #51463d;
  --button-hover: #fff3c9;
  --hero-button-bg: #fff3c9;
  --hero-button-ink: #51463d;
  --hero-button-hover: #fffcf4;
}
.mom-nook .button { border-color: var(--ink); }

@media (max-width: 800px) {
  header { align-items: flex-start; flex-direction: column; gap: .45rem; }
  nav details { position: static; }
  nav details > div { inset: 100% auto auto var(--gutter); }
  .hero .intro { width: min(100%, 41rem); }
  .motif { left: 83%; opacity: .38; }
}
@media (max-width: 580px) {
  .grid { grid-template-columns: 1fr; }
  .motif { opacity: .22; }
  footer { gap: .8rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
