:root {
  --vanilla: #f8f0e6;
  --paper: #fffaf4;
  --white: #fffdf9;
  --soft: #f3e9de;
  --line: #e7d9cd;
  --ink: #4b4542;
  --muted: #807872;
  --sage: #b6b9a6;
  --sage-dark: #89907c;
  --feeding: #edcbc1;
  --sleep: #dce0d1;
  --diaper: #f4e7c3;
  --diaper-button: #dcc9b4;
  --pump: #d0a3a0;
  --clay: #bea087;
  --rose: #c99e9c;
  --apricot: #f4cc9a;
  --danger: #8e504a;
  --serif: Literata, Georgia, "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html { background: var(--vanilla); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vanilla);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection {
  background: var(--sage);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.skip:focus { top: 12px; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
}

.wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 600px) {
  .wrap { width: min(1040px, calc(100% - 32px)); }
}

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--vanilla);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--apricot);
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 56px 0 24px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede {
  margin: 20px 0 0;
  max-width: 38rem;
  font-size: 18px;
  line-height: 1.5;
}

.cta { margin-top: 28px; }

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
}

.btn-primary:hover { filter: brightness(0.96); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover { background: var(--soft); }

.btn-secondary[aria-current="page"] {
  background: var(--soft);
  border-color: var(--sage);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
}

.disc {
  position: absolute;
  width: min(440px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--apricot);
  right: 4%;
  top: 50%;
  transform: translateY(-52%);
}

.phone {
  position: relative;
  width: 288px;
  border: 8px solid var(--ink);
  border-radius: 40px;
  background: var(--vanilla);
  padding: 10px 12px 12px;
  user-select: none;
}

.status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 22px;
  font-size: 11px;
  font-weight: 600;
}

.status span:last-child { text-align: right; }

.island {
  width: 72px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
}

.baby {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.when {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.kicker {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.tiles.pair { grid-template-columns: 1fr 1fr; }

.tile {
  border-radius: 16px;
  padding: 8px;
  min-height: 58px;
}

.tile p { margin: 0; color: var(--ink); }
.tile-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
}
.tile-detail {
  margin-top: 4px !important;
  font-size: 11px;
  line-height: 1.25;
}

.feeding { background: var(--feeding); }
.sleep { background: var(--sleep); }
.diaper { background: var(--diaper); }
.bottle { background: var(--feeding); }
.medicine { background: #d9e2ec; }
.solids { background: #e6d0a8; }
.diaper-pill { background: var(--diaper-button); }

.tile.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
}

.tile.bottles { background: #fff9f4; }
.tile.diapers { background: var(--diaper); }

.glance-count {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.glance-label {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.pill.wide,
.pill.milestones { grid-column: 1 / -1; }

.pill.milestones {
  background: #dfd7e8;
  min-height: 44px;
}

.card-pill { margin-top: 16px; }

.rows {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 8px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-style: normal;
  color: var(--ink);
}

.rows time {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.rows b,
.rows small { display: block; }
.rows b { font-size: 12px; font-weight: 600; }
.rows small { color: var(--muted); font-size: 10px; }

.home-bar {
  width: 96px;
  height: 4px;
  margin: 12px auto 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}

.section {
  padding: 36px 0 72px;
}

.section h2 {
  margin: 0 0 20px;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stories {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.card > p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.tiles-large { margin-top: 20px; gap: 12px; }

.tiles-large .tile {
  min-height: 96px;
  padding: 16px;
}

.tiles-large .tile-name { font-size: 18px; }
.tiles-large .tile-detail { font-size: 14px; margin-top: 6px !important; }
.tiles-large .glance-count { font-size: 32px; }
.tiles-large .glance-label { font-size: 13px; }

.note {
  margin-top: 16px;
  background: var(--rose);
  border-radius: 16px;
  padding: 16px;
}

.note p { margin: 0; font-size: 15px; }
.note p + p { margin-top: 8px; }

.note-kicker {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
}

.card > p.who {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-brand p { margin: 0; }

.footer-name,
.footer-note { display: block; }

.footer-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.footer-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.page { padding: 40px 0 72px; }

.copy { max-width: 40rem; }

.copy h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.about-mark {
  width: 112px;
  height: 112px;
  margin: 8px 0 20px;
  border-radius: 50%;
  background: var(--apricot);
  display: block;
}

.prose h2 {
  margin: 32px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li { font-size: 16px; }

.prose p { margin: 0 0 12px; }

.prose ul {
  margin: 0 0 12px;
  padding-left: 1.15rem;
}

.prose li { margin: 4px 0; }

.prose a {
  color: var(--sage-dark);
  font-weight: 600;
}

.form-card {
  margin-top: 28px;
  max-width: 32rem;
}

.field-block { margin-top: 16px; }

.field-block:first-child { margin-top: 0; }

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
  padding: 12px;
}

.field::placeholder { color: var(--muted); }

.field:focus {
  border-color: var(--sage-dark);
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
}

textarea.field {
  min-height: 140px;
  resize: vertical;
}

.form-card .btn { width: 100%; margin-top: 20px; }

.form-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.form-card h2 + p { margin: 8px 0 0; }

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-error {
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note a {
  color: var(--sage-dark);
  font-weight: 600;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .stage { min-height: 520px; }

  .disc {
    right: 50%;
    transform: translate(50%, -50%);
  }

  .stories { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  .stories {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-nav {
    margin-left: 0;
    flex-direction: column;
  }

  .hero .btn-primary,
  .page .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
