/* KeepAboo teaser (keepaboo.co.uk). One screen, light only, palette "Blush" (decisions/website.md).
   The wordmark keeps the app colours: ink #2B303B, gold A #7E6238.
   Fonts are subset to the glyphs on index.html and 404.html (see out/FE-site-teaser/tools/build.mjs);
   if you change any wording, rebuild the fonts or a fallback face will show. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: block;
  src: url("/assets/fonts/cormorant-wordmark-v2.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: block;
  src: url("/assets/fonts/cormorant-italic-v2.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/manrope-v2.woff2") format("woff2"); }

:root {
  --ink: #2B303B; --gold: #7E6238;
  --bg: #F7E8DF; --glow1: #F1CDBB; --glow2: #FBF3EC; --muted: #6A5A55; --rule: #C9A893;
  --on-ink: #FFFFFF;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: 1fr auto;
  padding: max(28px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
  color: var(--ink); background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
::selection { background: var(--glow1); color: var(--ink); }

/* Soft light, like a lamp in a nursery: two blurred glows. Fixed, so they never make the page scroll. */
body::before, body::after {
  content: ""; position: fixed; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
body::before { width: 120vmax; height: 120vmax; right: -70vmax; top: -60vmax; background: var(--glow1); opacity: .75; }
body::after  { width: 90vmax; height: 90vmax; left: -55vmax; bottom: -60vmax; background: var(--glow2); opacity: .9; }

main, footer { position: relative; z-index: 1; width: 100%; max-width: 36rem; justify-self: center; }
main { align-self: center; display: flex; flex-direction: column; align-items: flex-start; }

.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: clamp(3.8rem, 17vw, 8.5rem); line-height: .92; letter-spacing: -0.015em; color: var(--ink);
}
.wordmark .a { color: var(--gold); }
.rule { width: 3rem; height: 2px; border-radius: 2px; background: var(--rule); margin: 2.1rem 0 1.7rem; }
.line {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 5.8vw, 2rem); line-height: 1.25; max-width: 32ch; text-wrap: balance;
}
.sub { margin-top: .85rem; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 40ch; text-wrap: pretty; }

/* Placeholders, not store badges: no Apple or Google marks and no links until the apps are live. */
/* Two equal twins: both columns take the width of the wider badge; one column on very narrow phones. */
.badges { margin-top: 2.2rem; display: inline-grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 389px) { .badge { min-width: 0; padding: 0 .75rem; } .badge small { letter-spacing: .05em; } }
@media (max-width: 374px) { .badges { grid-template-columns: 1fr; } }
.badge {
  display: flex; flex-direction: column; justify-content: center; min-width: 9.5rem; height: 3.1rem;
  padding: 0 1.1rem; border-radius: .7rem; background: var(--ink); color: var(--on-ink); line-height: 1.1;
}
.badge small, .badge b { white-space: nowrap; }
.badge small { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.badge b { font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em; }

.mail-row { margin-top: 1.6rem; font-size: .95rem; line-height: 1.7; color: var(--muted); max-width: 36ch; text-wrap: pretty; }
.mail-row .link { white-space: nowrap; }
.link {
  font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 1px;
  background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 3px;
  transition: background-size .3s ease;
}
.link:hover { background-size: 100% 2px; }
.link:focus { outline: none; }
.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 2px; }

footer { font-size: .75rem; color: var(--muted); letter-spacing: .02em; padding-top: 1.5rem; }

/* Gentle arrival: each line rises in, one after another. */
.in { opacity: 0; transform: translateY(10px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .25s } .d3 { animation-delay: .4s }
.d4 { animation-delay: .55s } .d5 { animation-delay: .7s } .d6 { animation-delay: .85s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Short screens (iPhone SE, small Android, 1280x720 and 1366x768 laptops): the same page, a little tighter, still
   one screen. Spacing only (FE-teaser-wording-2); the wordmark size rule stays where it was, under 700px. */
@media (max-height: 700px) {
  .wordmark { font-size: clamp(3.4rem, 15vw, 7rem); }
}
@media (max-height: 760px) {
  body { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .rule { margin: 1.25rem 0 1rem; }
  .badges { margin-top: 1.4rem; }
  .mail-row { margin-top: 1rem; }
  footer { padding-top: 1rem; }
}
@media (min-width: 900px) {
  body { padding: 48px 72px; }
  main, footer { max-width: 46rem; }
}
@media (prefers-reduced-motion: reduce) {
  .in { animation: none; opacity: 1; transform: none; }
  .link { transition: none; }
}
