/* Windowsill site. Palette and type follow docs/AESTHETIC.md (the app's own tokens). */
:root {
  --bg: #f6efe6;
  --bg-deep: #efe4d6;
  --card: #fffaf4;
  --line: #e8ddcf;
  --ink: #3e3a4f;
  --ink-soft: #6f6985;
  --ink-faint: #aaa3b8;
  --coral: #e88c7d;
  --coral-deep: #c9685a;
  --leaf: #6fa77a;
  --leaf-deep: #4f8a5b;
  --mint: #8cc7a9;
  --water: #7fb5e0;
  --sun: #f2c46d;
  --lavender: #b8a6d9;
  --dew: #cdeedd;
  --night: #34304f;
  --night-deep: #262340;
  --night-ink: #f3ecf6;
  --night-soft: #c3bad6;


  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --measure: 34rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
em.sp { font-family: var(--serif); font-style: italic; }

.wrap { width: min(72rem, 100% - 32px); margin-inline: auto; }

/* ---------- hero: the room fills the screen, words float in frosted pills (like the app) ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 640px; max-height: 1200px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #e9d3c4;
  --fx: 50%;
}
.scene { position: absolute; inset: 0; }
.scene-inner {
  position: absolute; left: 50%; top: 50%;
  width: max(100%, calc(max(100svh, 640px) * 1.7778));
  aspect-ratio: 16 / 9;
  transform: translate(calc(-1 * var(--fx)), -50%);
}
.scene img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 900ms ease;
}
.scene img.on { opacity: 1; }
@media (max-aspect-ratio: 3/4) {
  .hero { --fx: 50%; }
  .scene-inner { width: max(100%, calc(max(100svh, 640px) * 0.4614)); aspect-ratio: 430 / 932; }
}
/* a soft wash so the card and dock read over any mood */
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246, 239, 230, 0.35), rgba(246, 239, 230, 0) 55%),
              linear-gradient(0deg, rgba(62, 58, 79, 0.18), rgba(62, 58, 79, 0) 26%);
}

.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 20px;
}
.brand, .top nav {
  background: rgba(255, 250, 244, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 8px 24px -16px rgba(62, 58, 79, 0.45);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.375rem; color: var(--ink);
  padding: 7px 18px 7px 12px;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.top nav { display: flex; gap: 2px; padding: 5px; }
.top nav a {
  text-decoration: none; font-weight: 700; font-size: 0.9375rem; color: var(--ink);
  padding: 7px 14px; border-radius: 999px; transition: background 200ms ease;
}
.top nav a:hover { background: var(--bg-deep); }
@media (max-width: 640px) { .top nav a.opt { display: none; } }

.hero-body { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; pointer-events: none; }
.card {
  pointer-events: auto;
  max-width: 35rem;
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-radius: 30px;
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 30px 60px -36px rgba(62, 58, 79, 0.55);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero .lede { margin-top: 18px; font-size: 1.125rem; color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--card);
  text-decoration: none; font-weight: 700;
  padding: 12px 22px 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(62, 58, 79, 0.6);
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-weight: 600; font-size: 0.75rem; opacity: 0.75; line-height: 1.1; }
.store span { line-height: 1.15; font-size: 1.0625rem; }
.store[aria-disabled="true"] { cursor: default; }
.cta-note { font-size: 0.9375rem; color: var(--ink-soft); }

.dock {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 16px clamp(20px, 3vw, 32px);
}
.dial {
  display: inline-flex; gap: 3px; padding: 5px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -14px rgba(62, 58, 79, 0.5);
}
.dial button {
  font: inherit; font-weight: 700; font-size: 0.875rem; color: var(--ink);
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 250ms ease, color 250ms ease;
}
.dial button svg { width: 16px; height: 16px; flex: none; }
.dial button:hover { background: var(--bg-deep); }
.dial button[aria-pressed="true"] { background: var(--coral); color: #fffaf4; }
.dial-caption {
  font-family: var(--serif); font-style: italic; font-size: 0.9375rem; color: var(--ink);
  background: rgba(255, 250, 244, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 4px 14px; border-radius: 999px; text-align: center; max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .scene img, .dial button { transition: none; }
}

@media (max-width: 760px) {
  .hero { min-height: 700px; }
  .hero-body { align-items: flex-start; padding-top: 4px; }
  .card { padding: 22px 22px 24px; border-radius: 26px; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero .lede { display: none; }
  .cta-row { margin-top: 16px; }
  .dial-caption { font-size: 0.875rem; }
  .scene::after { background: linear-gradient(0deg, rgba(62, 58, 79, 0.2), rgba(62, 58, 79, 0) 30%); }
}
@media (max-width: 420px) {
  .dial button { padding: 8px 10px; font-size: 0.8125rem; }
  .dial button .lbl-long { display: none; }
  .cta-note { display: none; }
}
@media (min-width: 421px) { .dial button .lbl-short { display: none; } }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 10vw, 120px); }
.intro { max-width: var(--measure); }
.intro p { margin-top: 18px; color: var(--ink-soft); font-size: 1.125rem; }

/* care: the nursery tag */
.care-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.care-points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; max-width: var(--measure); }
.care-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); }
.care-points li svg { width: 24px; height: 24px; margin-top: 2px; }
.care-points strong { color: var(--ink); font-weight: 700; }

.tag {
  width: min(320px, 86vw);
  background: var(--card);
  border-radius: 150px 150px 22px 22px;
  box-shadow: 0 30px 60px -36px rgba(62, 58, 79, 0.5), 0 0 0 1px var(--line);
  overflow: hidden;
  transform: rotate(-3deg);
}
.tag-head {
  background: var(--leaf);
  color: #fffaf4;
  text-align: center;
  padding: 30px 24px 22px;
}
.tag-hole { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); margin: 0 auto 14px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18); }
.tag-head .kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.9; }
.tag-head h3 { font-size: 1.75rem; margin-top: 2px; color: #fffaf4; }
.tag-head .latin { font-family: var(--serif); font-style: italic; font-size: 0.9375rem; opacity: 0.92; }
.tag dl { margin: 0; padding: 18px 22px 22px; display: grid; gap: 12px; }
.tag dl div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.tag dt { grid-row: span 2; }
.tag dt svg { width: 26px; height: 26px; }
.tag dd { margin: 0; font-size: 0.9375rem; line-height: 1.35; }
.tag dd.k { font-size: 0.75rem; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.03em; }
.tag dd.warn { color: var(--coral-deep); font-weight: 700; }
.tag dd.safe { color: var(--leaf-deep); font-weight: 700; }

@media (max-width: 760px) { .care-grid { grid-template-columns: 1fr; } .tag { margin-inline: auto; } }

/* moments: alternating phone + words */
.moments { background: var(--bg-deep); }
.moment {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center;
  max-width: 60rem; margin-inline: auto;
}
.moment + .moment { margin-top: clamp(56px, 9vw, 104px); }
.moment:nth-child(even of .moment) { grid-template-columns: minmax(0, 1fr) auto; }
.moment:nth-child(even of .moment) .shot { order: 2; }
.moment .words { max-width: 28rem; }
.moment h3 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 500; }
.moment p { margin-top: 14px; color: var(--ink-soft); }
.shot {
  width: min(250px, 64vw);
  border-radius: 34px; padding: 7px; background: var(--ink);
  box-shadow: 0 30px 60px -36px rgba(62, 58, 79, 0.55);
}
.shot img { border-radius: 28px; width: 100%; }
.moments .intro { margin-bottom: clamp(48px, 8vw, 88px); }
@media (max-width: 700px) {
  .moment, .moment:nth-child(even of .moment) { grid-template-columns: 1fr; }
  .moment:nth-child(even of .moment) .shot { order: 0; }
  .shot { margin-inline: auto; }
}

/* rooms: a scrolling row of postcards */
.rooms-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.rooms-head p { max-width: 26rem; color: var(--ink-soft); }
.rooms-row {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 36px max(16px, (100vw - 72rem) / 2) 24px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.room { flex: none; width: min(340px, 78vw); scroll-snap-align: start; margin: 0; }
.room img { border-radius: 22px; aspect-ratio: 960 / 560; object-fit: cover; width: 100%; background: var(--bg-deep); }
.room figcaption { padding: 12px 4px 0; }
.room figcaption b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.room figcaption span { color: var(--ink-soft); font-size: 0.9375rem; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 2px; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 2px 22px; color: var(--ink-soft); max-width: 38rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* footer: the end of the day */
.foot {
  background: linear-gradient(180deg, var(--night), var(--night-deep));
  color: var(--night-ink);
  padding-block: clamp(64px, 10vw, 112px) 36px;
  position: relative; overflow: hidden;
}
.foot .stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.7; }
.foot-cta { position: relative; max-width: 36rem; }
.foot-cta h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.foot-cta p { margin-top: 16px; color: var(--night-soft); }
.foot-cta .store { background: var(--card); color: var(--ink); margin-top: 28px; }
.foot-links {
  position: relative; margin-top: clamp(56px, 8vw, 96px); padding-top: 24px;
  border-top: 1px solid rgba(243, 236, 246, 0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  font-size: 0.9375rem; color: var(--night-soft);
}
.foot-links nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--night-ink); }

/* ---------- plain pages (privacy, support) ---------- */
.page-top { background: linear-gradient(180deg, #f6e2d6, var(--bg)); }
.doc { padding-block: clamp(24px, 5vw, 56px) clamp(64px, 10vw, 112px); }
.doc article { max-width: 40rem; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 600; font-variation-settings: "SOFT" 100, "opsz" 144; }
.doc .updated { margin-top: 12px; color: var(--ink-soft); font-family: var(--serif); font-style: italic; }
.doc .summary {
  margin-top: 32px; padding: 22px 24px; border-radius: 22px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.doc .summary p + p { margin-top: 10px; }
.doc h2 { font-size: 1.625rem; font-weight: 600; margin-top: 44px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc p, .doc li { color: #4d485f; }
.mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: var(--coral); color: #fffaf4; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
}
.mail:hover { background: var(--coral-deep); }
.mail svg { width: 20px; height: 20px; }
.page-foot { background: var(--night-deep); color: var(--night-soft); padding-block: 28px; font-size: 0.9375rem; }
.page-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.page-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.page-foot a { color: var(--night-ink); }
