/* daybreakpals.com: "Tawny's Room". Colours are the app's room roles (docs/gate-a/app-tokens.json → color.room). */
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-latin-opsz-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --wall: #E7ECF6; --quilt: #FFFDF8; --sunk: #F1F3F9; --ink: #1F2440; --ink-soft: #535A78; --hair: #D6DCEA;
  --ember: #A8441A; --apricot: #E8743B; --brass: #C9973F; --amber: #F2B24C; --btn: #232A44; --btn-ink: #FFFDF8;
  --night: #0F1324; --night-quilt: #1A2038; --night-ink: #F3EBDD; --night-soft: #A9AEC6;
  --dot: rgb(31 36 64 / .07);
  --shadow: 0 1px 2px rgb(31 36 64 / .06), 0 12px 32px rgb(31 36 64 / .10);
  --serif: "Fraunces", "New York", ui-serif, Georgia, serif;
  --sans: "Figtree", ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #0F1324; --quilt: #1A2038; --sunk: #242B48; --ink: #F3EBDD; --ink-soft: #A9AEC6; --hair: #2C3456;
    --ember: #F2B24C; --btn: #F2B24C; --btn-ink: #0F1324; --dot: rgb(243 235 221 / .06); --shadow: none;
    color-scheme: dark;
  }
}
@media (prefers-contrast: more) {
  :root { --ink-soft: #3E4463; --hair: #B8C1D8; --ember: #8A3612; }
  @media (prefers-color-scheme: dark) { :root { --ink-soft: #C9CDE0; --hair: #4A5378; --ember: #F2B24C; } }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--wall); }
/* The wallpaper: tiny moons and dots, as in the app (40 pt repeat, about 6% ink). */
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font: 17px/1.6 var(--sans);
  background-color: var(--wall);
  background-image: radial-gradient(circle at 10px 10px, var(--dot) 1.6px, transparent 2.2px),
    radial-gradient(circle at 30px 30px, var(--dot) 3.4px, transparent 3.8px);
  background-size: 40px 40px;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; font-optical-sizing: auto; }
p { text-wrap: pretty; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 9; background: var(--quilt); padding: .5em .9em; border-radius: 10px; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); margin: 14px 0 0; }
.note { color: var(--ink-soft); font-size: 14px; }
.aw { white-space: nowrap; font-weight: 600; } .aw svg { width: 1em; height: 1em; vertical-align: -0.1em; margin-right: 1px; }

/* header + footer */
.top .wrap { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 21px/1 var(--serif); }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--quilt); }
.top nav a, .foot nav a { color: var(--ink-soft); text-decoration: none; padding: 12px 4px; display: inline-block; }
.top nav a:hover, .top nav a[aria-current], .foot nav a:hover { color: var(--ink); }
.foot { border-top: 1px solid var(--hair); margin-top: 40px; font-size: 14px; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 24px 0 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot p { margin: 0; }

/* buttons + pill */
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--quilt); border: 1px solid var(--hair); font-size: 14px; font-weight: 600; }
.pill svg { width: 15px; height: 15px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 18px; background: var(--btn); color: var(--btn-ink); font-weight: 700; text-decoration: none; }
.btn svg, .mail svg { width: 18px; height: 18px; }
.mail { color: var(--ink-soft); margin: 22px 0 0; }
.cta { margin: 26px 0 0; }
.mail a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 10px 0; }

/* hero: Tawny's window */
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 24px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); margin-top: 20px; font-weight: 650; }
.scene { position: relative; margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.scene .window { width: 100%; filter: drop-shadow(0 18px 30px rgb(31 36 64 / .18)); }
.owl { position: absolute; bottom: 6.5%; }
.owl-day { right: 21%; width: 37%; }
.owl-day .blink { position: absolute; inset: 0; opacity: 0; }
.owl-night { right: 17%; width: 42%; display: none; }
.say { position: absolute; top: 13%; left: 17%; max-width: 46%; margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--quilt); box-shadow: var(--shadow); font: italic 500 clamp(15px, 1.7vw, 18px)/1.35 var(--serif); }
.say-night { display: none; }
@media (prefers-color-scheme: dark) {
  .owl-day, .say-day { display: none; } .owl-night, .say-night { display: block; }
  .say { border: 1px solid var(--hair); }
}
@media (prefers-reduced-motion: no-preference) {
  .owl img { transform-origin: 50% 100%; animation: breathe 4s ease-in-out infinite; }
  .owl-day .blink { animation: breathe 4s ease-in-out infinite, blink 6s steps(1) infinite 1.5s; }
}
@keyframes breathe { 50% { transform: scaleY(1.015); } }
@keyframes blink { 0% { opacity: 1; } 3% { opacity: 0; } }

/* sections */
section > .wrap > h2, .sky h2, .bed-in h2, .end h2 { font-size: clamp(32px, 4.4vw, 50px); }
.steps, .more { padding: clamp(48px, 8vw, 96px) 0 0; }
.rail { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.rail h3 { font-size: 22px; margin-top: 22px; display: flex; gap: 10px; align-items: baseline; }
.rail .n { font: 700 14px/1 var(--sans); color: var(--btn-ink); background: var(--btn); border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.rail p { margin: 8px 0 0; color: var(--ink-soft); }
.phone { border-radius: 38px; padding: 7px; background: #11131c; box-shadow: var(--shadow), inset 0 0 0 1.5px #3a3f52; max-width: 250px; }
.phone img { border-radius: 31px; }
.phone.wide { max-width: 580px; border-radius: 34px; }
.phone.wide img { border-radius: 27px; }

.sky { padding: clamp(56px, 9vw, 110px) 0 0; }
.sky-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.skies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skies li { position: relative; }
.skies img { border-radius: 22px 22px 8px 8px; aspect-ratio: 1; object-fit: cover; box-shadow: inset 0 0 0 1px var(--hair); }
.skies span { position: absolute; left: 10px; bottom: 10px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--quilt); color: var(--ink); }

.night { margin-top: clamp(56px, 9vw, 110px); padding: clamp(48px, 7vw, 88px) 0; background: var(--night); color: var(--night-ink); }
.night .lede { color: var(--night-soft); }
.night h2 svg { width: .8em; height: .8em; color: var(--amber); margin-right: 12px; vertical-align: -0.05em; }
.bed-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { padding: 10px 0 10px 30px; border-top: 1px solid #2C3456; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards li { background: var(--quilt); border: 1px solid var(--hair); border-radius: 24px; padding: 24px; }
.cards svg { width: 28px; height: 28px; color: var(--ember); }
.cards h3 { font-size: 22px; margin-top: 14px; }
.cards p { margin: 8px 0 0; color: var(--ink-soft); }

.end { padding: clamp(64px, 10vw, 120px) 0 24px; text-align: center; }
.end-owl, .nf-owl { width: 180px; margin: 0 auto 12px; }
.end .btn { margin-top: 18px; }

/* documents */
.doc article { padding: clamp(24px, 6vw, 64px) 0 40px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); }
.prose, .qa, .contact { background: var(--quilt); border: 1px solid var(--hair); border-radius: 24px; padding: clamp(20px, 4vw, 36px); margin-top: 28px; }
.prose h2 { font-size: 24px; margin: 28px 0 6px; }
.prose > :first-child { margin-top: 0; }
.prose li + li { margin-top: 6px; }
.contact { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.contact .big { font: 600 clamp(20px, 3vw, 26px)/1.2 var(--serif); padding: 8px 0; }
.contact p { margin: 0; color: var(--ink-soft); }
.qa { margin-bottom: 0; }
.qa div + div { border-top: 1px solid var(--hair); margin-top: 16px; padding-top: 16px; }
.qa dt { font-weight: 700; }
.qa dd { margin: 6px 0 0; color: var(--ink-soft); }
.nf { text-align: center; }

/* tablet + phone */
@media (max-width: 900px) {
  .hero-in, .sky-in, .bed-in { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; } .scene { max-width: 460px; }
  .rail { grid-template-columns: repeat(4, min(62vw, 240px)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .rail li { scroll-snap-align: start; }
  .cards { grid-template-columns: 1fr; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .say { left: 14%; max-width: 56%; top: 13%; padding: 9px 12px; } }
