/* Colours from docs/product/design-system/robins-eggs/MASTER.md. Lora is served from this site. */
@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --background: #FBF6EE;
  --cream: #FEF9F3;
  --surface: #FFFDF9;
  --sunken: #F3EBDF;
  --text-primary: #3B2A1A;
  --text-secondary: #6E6253;
  --primary: #664E36;
  --on-primary: #FFFDF9;
  --heading: #543C24;
  --accent: #3E6767;
  --border: #E4D8C8;
  --egg: #AEC6C6;
  --egg-speckle: #6F9090;
  --sage: #93937B;
  --breast: #EAC09C;
  --waiting-fill: #AEC6C6;
  --waiting-ink: #3B2A1A;
  --notice-fill: #F4DCCF;
  --notice-ink: #9A4A2E;
  --done-fill: #D3DEC0;
  --done-ink: #3B2A1A;
  --locked-fill: #664E36;
  --locked-ink: #FFFDF9;
  --radius: 1rem;
  --serif: "Lora", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1E1813;
    --surface: #2A221B;
    --sunken: #251E18;
    --text-primary: #F3EADF;
    --text-secondary: #C9BBAA;
    --primary: #E3C3A0;
    --on-primary: #1E1813;
    --heading: #F3EADF;
    --accent: #9FC4C4;
    --border: #3E342A;
    --waiting-fill: #2F3B3B;
    --waiting-ink: #9FC4C4;
    --notice-fill: #3A2A22;
    --notice-ink: #E5A27F;
    --done-fill: #2F3526;
    --done-ink: #B7C79A;
    --locked-fill: #E3C3A0;
    --locked-ink: #1E1813;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 100%/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--primary); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0.5rem; }

h1, h2, h3 { color: var(--heading); font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }
.meta { color: var(--text-secondary); }
.lede { font-size: 1.2rem; color: var(--text-secondary); max-width: 38rem; }
.eyebrow {
  font: 600 0.8rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* Page frame */
main { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.wide { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.tinted { background: var(--sunken); }
.narrow { max-width: 42rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--background); }
.site-header .wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--heading); font: 600 1.35rem/1 var(--serif); min-height: 44px; }
.brand img { width: 2.75rem; height: auto; border-radius: 50%; background: var(--cream); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.site-nav a { text-decoration: none; color: var(--text-primary); padding: 0.6rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; box-shadow: inset 0 -2px 0 var(--primary); }
.site-nav .button { padding: 0.55rem 1.1rem; color: var(--on-primary); box-shadow: none; }
@media (max-width: 30rem) {
  .site-nav { gap: 0.25rem 0.9rem; font-size: 0.95rem; }
  .site-nav .button { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 0.85rem; border: 1.5px solid var(--primary);
  background: var(--primary); color: var(--on-primary);
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero .wide { display: grid; gap: 2rem; align-items: center; }
.hero-art { justify-self: center; width: min(22rem, 80vw); }
.plate { background: var(--cream); border-radius: 2rem; padding: 1.5rem; }
@media (min-width: 52rem) {
  .hero .wide { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .hero-art { width: 100%; max-width: 26rem; }
}
.tagline { font: 600 0.85rem/1.3 var(--sans); letter-spacing: 0.25em; text-transform: uppercase; color: var(--sage); margin: 0 0 1rem; }
@media (prefers-color-scheme: dark) { .tagline { color: #B9B9A0; } }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

/* Eggs */
.egg { width: 2.75rem; height: auto; flex: none; }
.egg-title { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.6rem; }
.egg-title h3 { margin: 0; }

/* Numbered steps, each on an egg */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 2rem 4rem; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.2rem;
  width: 2.75rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center; padding-top: 0.35rem;
  font: 600 1.2rem/1 var(--serif); color: #3B2A1A;
  background: var(--egg);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset -4px -5px 0 rgba(59, 42, 26, 0.08);
}
.steps > li::after { content: ""; position: absolute; left: 1.35rem; top: 3.6rem; bottom: 0.3rem; width: 2px; background: var(--border); }
.steps > li:last-child::after { display: none; }
.steps h3 { padding-top: 0.35rem; }
.steps ul { padding-left: 1.2rem; }
.steps li li { margin-bottom: 0.35rem; }

/* Timeline for a day */
.day { list-style: none; margin: 0; padding: 0; }
.day > li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1rem; padding-bottom: 2.25rem; position: relative; }
.day > li::before { content: ""; position: absolute; left: 5.4rem; top: 0.6rem; bottom: 0; width: 2px; background: var(--border); }
.day > li:last-child::before { display: none; }
.day time { font: 600 1.05rem/1.3 var(--serif); color: var(--accent); padding-top: 0.15rem; text-align: right; }
.day .moment { position: relative; padding-left: 1.5rem; }
.day .moment::before { content: ""; position: absolute; left: -0.45rem; top: 0.4rem; width: 0.85rem; height: 1.05rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--egg); }
.day .moment.locks::before { background: var(--primary); }
@media (min-width: 40rem) { .day > li { grid-template-columns: 6rem 1fr; } .day > li::before { left: 6.9rem; } }

/* Status chips, as the app shows them */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.7rem; border-radius: 999px; font: 600 0.9rem/1.6 var(--sans); white-space: nowrap; }
.chip.todo { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border); }
.chip.waiting { background: var(--waiting-fill); color: var(--waiting-ink); }
.chip.sent-back { background: var(--notice-fill); color: var(--notice-ink); }
.chip.done { background: var(--done-fill); color: var(--done-ink); }
.chip.holds { background: var(--locked-fill); color: var(--locked-ink); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.flow .arrow { color: var(--text-secondary); }

/* Phone screenshots */
.phone { margin: 0; justify-self: center; width: min(17rem, 100%); }
.phone img { border-radius: 2rem; border: 6px solid #2A221B; box-shadow: 0 1.5rem 3rem -1.5rem rgba(59, 42, 26, 0.45); background: var(--cream); }
.phone figcaption, .snip figcaption { font-size: 0.95rem; color: var(--text-secondary); text-align: center; margin-top: 0.75rem; }
.snip { margin: 1.25rem 0; }
.snip img { border-radius: var(--radius); border: 1px solid var(--border); background: var(--cream); }
.gallery { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: start; }

/* Split rows: words beside a picture */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .split { grid-template-columns: 1.2fr 1fr; gap: 3rem; } .split.flip > :first-child { order: 2; } }

/* The resting phone, drawn in HTML */
.resting { background: var(--cream); color: #3B2A1A; border-radius: 1.75rem; border: 6px solid #2A221B; padding: 2rem 1.5rem; max-width: 17rem; margin: 0 auto; text-align: center; box-shadow: 0 1.5rem 3rem -1.5rem rgba(59, 42, 26, 0.45); }
.resting h3 { color: #543C24; font-size: 1.4rem; }
.resting .label { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: #6E6253; margin: 1.25rem 0 0.35rem; }
.resting p { margin: 0; }
.resting img { width: 6rem; margin: 0 auto 0.75rem; }
.resting-button { display: block; margin-top: 1.5rem; padding: 0.7rem 1rem; border-radius: 0.85rem; background: #664E36; color: #FFFDF9; font-weight: 600; }
.resting.tall { max-width: 19rem; padding: 3rem 1.5rem 2rem; min-height: 30rem; display: flex; flex-direction: column; justify-content: center; }
.resting.tall .resting-button { margin-top: auto; }
.resting.tall img { width: 7.5rem; }

/* Callouts */
.note { border-left: 4px solid var(--egg); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.note.warm { border-left-color: var(--breast); }
.note p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.2rem; width: 1.1rem; height: 1.35rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--egg); }
.not-list li::before { background: var(--border); }

.nest { width: 9rem; margin: 0 auto 1.25rem; border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.growth { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .growth { grid-template-columns: repeat(3, 1fr); } }
.growth .stage { text-align: center; }
.growth .stage svg, .growth .stage img { height: 5rem; width: auto; margin: 0 auto 0.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--text-secondary); font-size: 0.95rem; }
.site-footer .wide { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Privacy notice and tag holding page */
.draft {
  background: var(--notice-fill);
  color: var(--notice-ink);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.card p { font-size: 1.25rem; margin: 0.5rem 0; }

/* The privacy notice's headings sit straight inside main. */
main > h2 { margin-top: 2.25rem; font-size: 1.35rem; }
main.site { max-width: none; padding: 0; }
