/* Dayly, the brand in code. The one stylesheet for the website, the brand page,
   the post template and prototype v2. Change a colour or a component here, never in a page.
   Brand: marketing/brand/brand.html. 60 cream, 30 navy, 10 sunshine. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --cream: #FFF7EC;
  --navy: #14213D;
  --accent: #FFC23D;            /* sunshine: buttons, highlights, the sun in the mark */
  --gold: #7A5200;              /* sunshine's text colour on cream (readable) */
  --paper: #FFFBF4;             /* cards on cream */
  --ember: #E0552D;             /* achievements and levels only: earned, not the main action (Guan, 25 Nov) */
  --ember-text: #A8391C;        /* ember's text colour on cream (readable) */
  --ink-soft: color-mix(in srgb, var(--navy) 72%, var(--cream));
  --line: color-mix(in srgb, var(--navy) 14%, var(--cream));
  --card: color-mix(in srgb, #fff 55%, var(--cream));
  --on-navy-soft: rgba(255, 247, 236, .78);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --r-card: 28px; --r-box: 20px; --r-field: 14px;
  --shadow: 0 1px 0 rgba(20,33,61,.06), 0 24px 48px -24px rgba(20,33,61,.35);
  --sun: var(--accent);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--navy); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(54px, 8vw, 104px); line-height: .96; }
h2 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; }
h3 { font-size: 28px; line-height: 1.12; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
/* the brand's highlight: a sunshine band under the key words */
/* the accent word: a colour, never a highlighter (Guan, 11 Nov). Gold on cream, sunshine on navy */
.hl { color: var(--gold); }
.navy .hl, .dark .hl { color: var(--accent); }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
.small { font-size: 14px; color: var(--ink-soft); }
.navy { background: var(--navy); color: var(--cream); }
.navy .eyebrow, .navy .lede, .navy .small { color: var(--on-navy-soft); }

/* ---------- the D mark: <svg class="dmark"><use href="#dmark"/></svg> ---------- */
.dmark { width: 1em; height: 1em; display: inline-block; color: var(--navy); }
.navy .dmark { color: var(--cream); }
.lockup { display: inline-flex; align-items: center; gap: .32em; font: 700 28px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; }
.lockup .dmark { width: 1.25em; height: 1.25em; }

/* ---------- buttons: one style, three colours ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--navy);
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(20,33,61,.6); }
.btn.dark { background: var(--navy); color: var(--cream); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.navy .btn.dark, .dark .btn.dark { background: var(--cream); color: var(--navy); }  /* a navy button on navy would vanish */
.btn.small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 10px; }
.field > span { font: 600 15px/1.2 var(--sans); }
.input {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: var(--r-field);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy);
  font: 400 17px/1 var(--sans);
}
.input::placeholder { color: color-mix(in srgb, var(--navy) 45%, var(--cream)); }
.input:focus { outline: none; border-color: var(--navy); }

/* ---------- chips: pick one (aria-pressed) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: inherit;
  font: 500 16px/1 var(--sans); transition: background .15s, border-color .15s;
}
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.navy .chip { border-color: rgba(255,247,236,.28); }
.navy .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--navy); }
/* a cream box inside a navy section (the waitlist form): everything inside goes back to the cream look */
.navy .on-cream { color: var(--navy); }
.navy .on-cream .chip { border-color: var(--line); }
.navy .on-cream .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.navy .on-cream .small, .navy .on-cream .eyebrow { color: var(--ink-soft); }

/* ---------- the compliment card: the same everywhere (site, brand page, posts, app) ----------
   <article class="cardc c-white"><span class="to">To Mum</span><p class="line">…</p>
   <span class="from"><span>Dayly good vibes</span><svg class="dmark"><use href="#dmark"/></svg></span></article>
   It names who it's for, never the feeling: the feeling is the filter you tap to find it. */
.cardc {
  border-radius: var(--r-card); padding: 30px 30px 26px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow);
}
.cardc .to { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.cardc .line { font: 400 34px/1.12 var(--serif); }
.cardc .from { display: flex; justify-content: space-between; align-items: center; font: 500 14px/1 var(--sans); opacity: .85; }
.cardc .from .dmark { width: 34px; height: 34px; color: inherit; }
.cardc.c-navy { background: var(--navy); color: var(--cream); }
.cardc.c-sun { background: var(--accent); color: var(--navy); }
.cardc.c-white { background: var(--paper); color: var(--navy); }
.cardc.c-sun .dmark { --sun: var(--navy); }
.cardc.c-sun .to, .cardc.c-sun .from { opacity: 1; }

/* ---------- the vision card: photo whole on top, words below it (never over a face) ---------- */
.vcard { border-radius: var(--r-card); overflow: hidden; background: var(--navy); color: var(--cream); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.vcard .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.vcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .35s; }
.vcard .tx { padding: 24px 28px 26px; display: grid; gap: 14px; }
.vcard .kick { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.vcard .story { font: italic 400 24px/1.3 var(--serif); }
.vcard .foot { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--sans); color: var(--on-navy-soft); }
