/* MOTION TIER: L1     (declared in DESIGN.md; see docs/motion-patterns.md)
 * STYLE SEED: none — client brand carried over from the WordPress/Elementor kit (migration)
 * SIGNATURE: three-band Pink/Makes/Red flag hero
 * PRE-EMIT: P4 H4 E3 S4 R4 V4       (author self-critique — see docs/reviewer-reference.md → "Pre-emit Self-Critique")
 * CONTRAST: pass                    (flag words exempt as logotype, WCAG 1.4.3; see DESIGN.md → Visual System)
 */

@font-face {
  font-family: "Caramel and Vanilla";
  src: url("/assets/fonts/caramel-and-vanilla.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* === COLOR — from the client's Elementor kit (post-5.css), unchanged except the ink === */
  --pink-hot: #FC0FC0;
  --red: #FF0000;
  --pink-soft: #FFA4E6;
  --yellow: #F6F681;
  --coral: #FFA5A7;
  --ink: #1c0a14;            /* replaces the kit's pure #000 */

  --color-bg: var(--pink-soft);
  --color-fg: var(--ink);
  --color-muted: #4a2a3c;
  --color-accent: var(--pink-hot);
  --color-accent-ink: var(--ink);
  --color-focus: var(--ink);
  --color-bg-subtle: var(--coral);
  --color-danger: #a3001c;

  /* === TYPE === one face, the client's brush script */
  --font-display: "Caramel and Vanilla", "Brush Script MT", cursive;
  --font-body: "Caramel and Vanilla", "Brush Script MT", cursive;
  --font-mono: ui-monospace, monospace;

  --step-0: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);     /* body copy (kit: 40px) */
  --step-7: clamp(5rem, 3.4rem + 6.8vw, 8.125rem);       /* flag words (kit: 80px → 130px) */

  --space-s: clamp(1rem, 0.91rem + 0.43vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.37rem + 0.65vw, 1.88rem);
  --space-l: clamp(2rem, 1.83rem + 0.87vw, 2.5rem);
  --space-xl: clamp(3rem, 2.74rem + 1.3vw, 3.75rem);
  --space-3xl: clamp(6rem, 5.48rem + 2.61vw, 7.5rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html, body { overflow-x: clip; }

*, *::before, *::after { box-sizing: border-box; }

html { accent-color: var(--ink); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 10;
  padding: 0.25em 0.75em;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.25rem;
}
.skip-link:focus { top: var(--space-s); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

/* === FLAG — three bands, a third of the viewport each === */
.flag__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: var(--step-7);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.flag__band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 33.3svh;
  padding: 0.1em var(--space-s);
  min-width: 0;
}
/* Flag words: brand colours on brand bands. Logotype, exempt from 1.4.3 (DESIGN.md). */
.flag__band--pink   { background: var(--pink-soft); color: var(--pink-hot); }
.flag__band--yellow { background: var(--yellow);    color: var(--pink-hot); }
.flag__band--coral  { background: var(--coral);     color: var(--red); }

/* 404: the third band holds the way home, in ink so it reads as a link */
.flag__home {
  color: var(--ink);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}
@media (hover: hover) {
  .flag__home:hover { text-decoration-thickness: 6px; }
}

/* === CONTENT BANDS === */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-l);
  padding: var(--space-xl) var(--space-m);
  color: var(--ink);
}
.band--pink   { background: var(--pink-soft); min-height: 400px; }
.band--yellow { background: var(--yellow); }
.band--coral  { background: var(--coral); }

.band__figure { margin: 0; justify-self: center; width: min(100%, 560px); }
.band__figure img { border: 2px solid var(--ink); }
.band__copy { justify-self: center; }
.line { display: block; }
.band__copy > p + p { margin-top: 0.8em; }

@media (min-width: 768px) {
  .band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    padding-inline: var(--space-xl);
  }
  .band--solo { grid-template-columns: minmax(0, 1fr); }
  .band--solo .band__figure { width: min(100%, 420px); }
}

/* === FOOTER — the source's gradient band, minus the survey button === */
.site-footer {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) var(--space-m) max(var(--space-3xl), env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--pink-hot) 0%, var(--pink-soft) 100%);
  color: var(--ink);
  text-align: center;
}
.site-footer a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness 0.2s var(--ease-out), text-underline-offset 0.2s var(--ease-out);
}
@media (hover: hover) {
  .site-footer a:hover { text-decoration-thickness: 4px; text-underline-offset: 0.28em; }
}
.site-footer a:active { text-underline-offset: 0.1em; }

@media (pointer: coarse) {
  .site-footer a { display: inline-block; min-height: 44px; }
}

a, button { touch-action: manipulation; }

@media (prefers-contrast: more) {
  .flag__band--pink, .flag__band--yellow { color: #000; }
  .flag__band--coral { color: #6b0000; }
}

@media (forced-colors: active) {
  *:focus-visible { outline: 2px solid ButtonText; outline-offset: 2px; }
  .band__figure img { border-color: CanvasText; }
}

/* === MOTION GUARD — required at every tier === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
