/* ════════════════════════════════════════════════════════════
   faithudall.com — warm, bold, Apple-soft.

   the system:
   · 70 / 30 / 10 — cream neutrals carry the page, soft tinted
     surfaces and imagery carry the middle weight, and a coral +
     marigold + sage accent family provides the pop. one full
     coral "bold moment" per page (the Someday band).
   · big soft radii, layered shadows, overshoot easing — things
     feel tactile, nothing feels flat or clinical.
   · ambient motion is desynchronized: float periods that don't
     divide into each other, so nothing ever pulses in unison.
   · icons are drawn inline as SVG strokes, never emoji.
   ════════════════════════════════════════════════════════════ */

:root {
  /* neutrals — the 70 */
  --cream: #faf4e9;
  --cream-2: #f2e8d7;
  --card: #fffdf7;
  --ink: #33291e;
  --ink-soft: #6e6252;
  --line: rgba(51, 41, 30, 0.12);

  /* accents — the 10, plus tints for the 30 */
  --coral: #e15a3a;
  --coral-deep: #c74a2c;
  --marigold: #f0a63a;
  --sage: #7c9d69;
  --sky: #6fa7c4;
  --on-coral: #fff6ea;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-l: 28px;
  --r-m: 20px;

  --shadow-s: 0 2px 6px rgba(51, 41, 30, 0.05), 0 10px 28px rgba(51, 41, 30, 0.08);
  --shadow-m: 0 4px 10px rgba(51, 41, 30, 0.07), 0 22px 48px rgba(51, 41, 30, 0.13);

  --wrap: 1080px;
  --gutter: 24px;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-pop: cubic-bezier(0.3, 1.4, 0.4, 1); /* every entrance overshoots and settles */
}

/* naptime — accents re-picked brighter for the dark ground */
:root[data-theme="dark"] {
  --cream: #211a12;
  --cream-2: #2b2218;
  --card: #2a2118;
  --ink: #f3eadb;
  --ink-soft: #a99c88;
  --line: rgba(243, 234, 219, 0.13);
  --coral: #ef7350;
  --coral-deep: #d95b39;
  --marigold: #f4b455;
  --sage: #94b37e;
  --sky: #83b8d1;
  --shadow-s: 0 2px 6px rgba(0, 0, 0, 0.25), 0 10px 28px rgba(0, 0, 0, 0.3);
  --shadow-m: 0 4px 10px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
}

::selection { background: var(--coral); color: var(--on-coral); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); }

h2 {
  font-weight: 640;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* the gradient word — one per heading, never more */
.gx {
  background: linear-gradient(100deg, var(--coral), var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── chrome ─────────────────────────────────────────────── */

.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(max(env(safe-area-inset-top), 10px) + 8px) var(--gutter) 12px;
}

.chrome__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.chrome__ring {
  width: 13px; height: 13px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  transition: background 0.25s ease;
}
.chrome__mark:hover .chrome__ring { background: var(--coral); }

.chrome__word {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.chrome__nav { display: flex; align-items: center; gap: 1.45rem; }

.chrome__nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.chrome__nav a:hover { color: var(--coral); }

.theme-flip {
  width: 17px; height: 17px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  cursor: pointer;
  transition: transform 0.5s var(--ease-pop), border-color 0.25s ease;
}
.theme-flip:hover { border-color: var(--coral); transform: rotate(180deg); }

/* ── hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(76px + env(safe-area-inset-top)) var(--gutter) 3rem;
}

/* ambient colour, floating on periods that never sync */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.orb--1 {
  width: 300px; height: 300px;
  top: 16%; left: 12%;
  background: radial-gradient(circle, color-mix(in srgb, var(--marigold) 32%, transparent), transparent 70%);
  animation: float-a 11.9s ease-in-out infinite;
}
.orb--2 {
  width: 380px; height: 380px;
  top: 34%; right: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--coral) 26%, transparent), transparent 70%);
  animation: float-b 8.7s ease-in-out infinite;
}
.orb--3 {
  width: 220px; height: 220px;
  bottom: 12%; left: 26%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sage) 30%, transparent), transparent 70%);
  animation: float-a 14.3s ease-in-out infinite reverse;
}
@keyframes float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, -18px); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 14px); } }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.word-slot {
  width: min(760px, 94vw);
  height: clamp(160px, 30vw, 300px);
}
.word-slot canvas { width: 100%; height: 100%; display: block; }

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 450;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 1rem 0 2.1rem;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 2.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ── buttons ────────────────────────────────────────────── */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-pop), box-shadow 0.35s ease,
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn--fill {
  background: var(--coral);
  color: var(--on-coral);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--coral) 40%, transparent);
}
.btn--fill:hover { background: var(--coral-deep); box-shadow: 0 10px 26px color-mix(in srgb, var(--coral) 48%, transparent); }

/* the shine crosses, then rests — travel is half the cycle */
.btn--fill::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -45%;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255, 248, 238, 0.35), transparent);
  transform: skewX(-18deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0% { left: -45%; } 55%, 100% { left: 135%; } }

.btn--ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--card);
}
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); }

/* ── ticker ─────────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  width: max-content;
  animation: tick 38s linear infinite;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track i { font-style: normal; color: var(--coral); font-weight: 700; }

@keyframes tick { to { transform: translateX(-50%); } }

/* ── sections ───────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 5rem var(--gutter) 4.4rem;
}

.section__rail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.coord {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.coord--note { letter-spacing: 0.1em; text-transform: none; opacity: 0.75; }

.section__title { max-width: 18em; margin-bottom: 2.6rem; }

/* ── about ──────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__portrait {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  transform: rotate(-1.5deg);
}
.about__portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.about__copy h2 { margin-bottom: 1.2rem; max-width: 13em; }
.about__copy p { color: var(--ink-soft); max-width: 32em; font-size: 1.02rem; }
.about__copy p + p { margin-top: 0.95rem; }

.specs {
  list-style: none;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

.spec {
  background: var(--card);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: 0.85rem 1.25rem;
  display: grid;
  gap: 0.15rem;
}

/* the label/value stack: tiny tracked label over a solid value */
.spec__key {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spec__val { font-weight: 600; font-size: 0.98rem; }

/* ── days: four cards, each with its own accent ─────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.2rem;
}

.card {
  --c: var(--coral);
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: 1.8rem 1.6rem 1.7rem;
  transition: transform 0.4s var(--ease-pop), box-shadow 0.4s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-m); }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
  margin-bottom: 1.15rem;
  transition: transform 0.4s var(--ease-pop);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.08); }
.card__icon svg { width: 26px; height: 26px; }

.card h3 {
  font-weight: 620;
  font-size: 1.16rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ── little moments: the image band ─────────────────────── */

.moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 1rem;
}

.tile {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease-pop), box-shadow 0.4s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }

.tile img { width: 100%; height: 100%; object-fit: cover; }

/* placeholders that look intentional until the photos arrive */
.tile--soon { display: grid; place-items: center; }
.tile--soon svg { width: 44px; height: 44px; color: var(--ink); opacity: 0.28; }
.tile--soon .tile__note {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tile--peach    { background: color-mix(in srgb, var(--coral) 14%, var(--card)); }
.tile--gold     { background: color-mix(in srgb, var(--marigold) 18%, var(--card)); }
.tile--green    { background: color-mix(in srgb, var(--sage) 16%, var(--card)); }
.tile--blue     { background: color-mix(in srgb, var(--sky) 16%, var(--card)); }
.tile--plain    { background: var(--cream-2); }

/* ── someday: the bold moment ───────────────────────────── */

.band {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  border-radius: 32px;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--on-coral);
  box-shadow: var(--shadow-m);
}

.band h2 { color: var(--on-coral); max-width: 16em; margin-bottom: 0.6rem; }
.band .gx {
  background: linear-gradient(100deg, #ffd98f, var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
}
.band__sub { opacity: 0.85; max-width: 34em; margin-bottom: 2.2rem; }

.ideas { list-style: none; }

.idea {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.3rem;
  align-items: baseline;
  border-top: 1px solid rgba(255, 246, 234, 0.25);
  padding: 1.35rem 0.2rem;
}
.idea:last-child { padding-bottom: 0.4rem; }

.idea__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.idea__body h3 {
  font-weight: 620;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.idea__body p { opacity: 0.82; font-size: 0.95rem; max-width: 34em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 246, 234, 0.4);
  border-radius: 999px;
  padding: 0.45em 1em;
  white-space: nowrap;
}
.chip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--marigold); }

/* ── hello ──────────────────────────────────────────────── */

.section--hello { padding-bottom: 6rem; }

.hello { text-align: center; padding: 2.2rem 0 1rem; }
.hello h2 { margin: 0 auto 0.8rem; }
.hello > p { color: var(--ink-soft); margin-bottom: 2.1rem; }
.hello .btn--fill { font-size: 1.05rem; padding: 1em 2.2em; }
.hello__alt {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hello__alt a { color: var(--coral); font-weight: 600; text-decoration: none; }
.hello__alt a:hover { text-decoration: underline; }

/* ── footer ─────────────────────────────────────────────── */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 2.2rem var(--gutter) calc(2.4rem + env(safe-area-inset-bottom));
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.foot i { font-style: normal; color: var(--coral); padding: 0 0.4em; }
.foot__ver {
  position: absolute;
  right: var(--gutter);
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  opacity: 0.45;
}

/* ── reveals: pop up with a little overshoot ────────────── */

.t-fx {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-pop);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.in .t-fx, .t-fx.in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────── */

@media (max-width: 840px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 320px; margin: 0 auto; }
  .about__copy { text-align: center; }
  .about__copy h2, .about__copy p { margin-left: auto; margin-right: auto; }
  .specs { justify-content: center; }
  .moments { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .idea { grid-template-columns: 2rem 1fr; }
  .idea .chip { grid-column: 2; justify-self: start; }
  .section { padding: 3.6rem var(--gutter) 3.2rem; }
}

@media (max-width: 600px) {
  .chrome { padding-left: 16px; padding-right: 16px; }
  .chrome__nav { gap: 0.95rem; }
  .chrome__nav a { font-size: 0.85rem; }
  .chrome__word { display: none; }
  .hero { min-height: 88svh; }
  .coord--note { display: none; }
  .orb { display: none; }
}

/* ── reduced motion: everything, instantly ──────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t-fx { transition-duration: 0.01ms; transition-delay: 0ms; }
  .ticker__track, .orb, .pulse-dot, .btn--fill::after { animation: none; }
  .theme-flip, .btn, .card, .tile, .card__icon { transition: none; }
}
