/* ============================================================
   THE ART OF DIY — Rust-Oleum SPP Spring 2026
   Built on Rust-Oleum's own brand system:
     · Brand red        #F4462F  (matched to the supplied logo artwork, Sep 2026;
     ·                    was #EC1B2E, which differed from the logo mark)
     · Logo square red  #F4462F  (fixed inside the logo mark)
     · Black            #000000
     · White ground dominant, red used as bold bands
     · Display voice: heavy condensed grotesque caps (Archivo)
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.7vw, 1.4375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.1rem + 4.6vw, 5.25rem);
  --text-hero: clamp(3rem, 0.6rem + 7.2vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts — Archivo condensed black matches the Rust-Oleum headline voice */
  --font-display: 'Archivo', 'Archivo Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  /* The existing Art of DIY campaign signature is set in handwriting */
  --font-script: 'Caveat', 'Segoe Script', cursive;

  /* ---- Rust-Oleum brand palette ---- */
  /* Matched to the red in the supplied Rust-Oleum logo artwork. The campaign
     lettering sits directly under the header rule, so a single red is the only
     way the two do not read as a mismatch. */
  --ro-red: #f4462f;
  --ro-red-deep: #cd3b27;
  --ro-red-dark: #a32f1f;
  --ro-square: #f4462f; /* logo mark only — never as a UI colour */
  --ro-black: #000000;
  --ro-ink: #111111;
  --ro-ink-2: #1c1c1c;
  --ro-ink-3: #262626;
  --ro-white: #ffffff;
  --ro-grey-1: #f4f4f4;
  --ro-grey-2: #ededed;
  --ro-grey-3: #dcdcdc;
  --ro-grey-line: #d2d2d2;

  /* Bright Art of DIY grounds — warm, light and airy */
  --ro-cream: #fdf7ef;
  --ro-cream-2: #f8eee1;
  --ro-cream-line: #e8dbc9;
  --ro-sky: #eef5f8;
  --ro-sky-2: #e2eef3;
  --ro-sky-line: #cfe0e8;
  --ro-blush: #fdf0ea;

  /* Range paint chips — bright colours drawn from the campaign photography */
  --chip-2x: #e08a63; /* blush terracotta — the outdoor chair */
  --chip-home: #8fa87c; /* fresh sage — the cabinet door */
  --chip-5in1: #a2521c; /* deep burnt rust */
  --chip-chalked: #8fb3cc; /* powder blue — the dresser */
  --chip-tubtile: #2f7fb5; /* Tub & Tile pack blue */

  /* Range chips — text-safe inks on light grounds */
  --ink-2x: #b85c33;
  --ink-home: #5c7049;
  --ink-5in1: #8a4415;
  --ink-chalked: #4f7691;
  --ink-tubtile: #2a6b96;

  /* ---- Semantic defaults: WHITE ground (Rust-Oleum's dominant surface) ---- */
  --bg: var(--ro-white);
  --surface: var(--ro-cream);
  --surface-2: var(--ro-cream-2);
  --line: var(--ro-cream-line);
  --tx: var(--ro-black);
  --tx-muted: #554c43;
  --tx-faint: #6f6558;
  --accent: var(--ro-red);
  --accent-text: var(--ro-red-deep);

  --radius-sm: 2px;
  --radius: 3px;
  --maxw: 1320px;
}

/* Warm cream panel sections */
.on-paper {
  --bg: var(--ro-cream);
  --surface: var(--ro-white);
  --surface-2: var(--ro-cream-2);
  --line: var(--ro-cream-line);
  --tx: var(--ro-black);
  --tx-muted: #554c43;
  --tx-faint: #6f6558;
  --accent-text: var(--ro-red-deep);
}

/* Soft sky panel sections */
.on-sky {
  --bg: var(--ro-sky);
  --surface: var(--ro-white);
  --surface-2: var(--ro-sky-2);
  --line: var(--ro-sky-line);
  --tx: var(--ro-black);
  --tx-muted: #44525a;
  --tx-faint: #5f6e75;
  --accent-text: var(--ro-red-deep);
}

/* Soft blush panel sections */
.on-blush {
  --bg: var(--ro-blush);
  --surface: var(--ro-white);
  --surface-2: #fae2d7;
  --line: #f0d8cb;
  --tx: var(--ro-black);
  --tx-muted: #614d43;
  --tx-faint: #74604f;
  --accent-text: var(--ro-red-deep);
}

/* Full-bleed brand red sections */
.on-red {
  --bg: var(--ro-red);
  --surface: rgb(0 0 0 / 0.14);
  --surface-2: rgb(0 0 0 / 0.2);
  --line: rgb(255 255 255 / 0.32);
  --tx: var(--ro-white);
  --tx-muted: rgb(255 255 255 / 0.88);
  --tx-faint: rgb(255 255 255 / 0.72);
  --accent: var(--ro-white);
  --accent-text: var(--ro-white);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ro-white);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* Display type = Rust-Oleum's heavy condensed caps voice */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--ro-red);
  color: #fff;
}

/* --- Rust-Oleum logo lockups --- */
.ro-logo {
  display: block;
  width: clamp(9.5rem, 12vw, 12.5rem);
  height: auto;
  flex: none;
}

.ro-logo--sm {
  width: clamp(8rem, 9vw, 9.5rem);
}

/* Header lockup — the masterbrand carries the header on its own, so it is set
   noticeably larger than the old logo + Art of DIY pairing allowed. */
.ro-logo--hdr {
  width: clamp(11rem, 14vw, 15rem);
}

/* Campaign signature lockup — logo above the handwritten Art of DIY line,
   matching the existing Art of DIY key visuals */
.aod-lock {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.aod-lock .ro-logo {
  width: clamp(9rem, 11vw, 11.5rem);
}

.aod-lock__script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-right: 0.06em;
}

.aod-script {
  font-family: var(--font-script);
  font-weight: 600;
  line-height: 0.95;
}

/* Co-brand credit line sitting beside the client logo */
.cobrand {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
  flex-wrap: wrap;
}

.cobrand__div {
  width: 1px;
  height: 1.75rem;
  background: currentColor;
  opacity: 0.28;
  flex: none;
}

.cobrand__by {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  opacity: 0.75;
}

.cobrand__by b {
  display: block;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 0.9375rem;
  text-transform: none;
  opacity: 1;
}

/* --- Reusable primitives --- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  /* exposed so swipe rails can bleed out to the screen edge and back */
  --gutter: clamp(var(--space-5), 5vw, var(--space-16));
  padding-inline: var(--gutter);
}

/* On desktop the 4rem gutter cap was spending width the layout had spare, which
   left the five range tiles unnecessarily narrow. Trimmed once there is room. */
@media (min-width: 75rem) {
  .wrap {
    --gutter: var(--space-12);
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text, var(--accent));
  margin: 0;
}

.eyebrow--muted {
  color: var(--tx-faint);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--tx);
  max-width: 34ch;
}

.body-copy {
  font-size: var(--text-base);
  color: var(--tx-muted);
  max-width: 62ch;
}

.body-copy strong {
  color: var(--tx);
  font-weight: 700;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Source citation */
.src {
  font-size: var(--text-xs);
  color: var(--tx-faint);
  line-height: 1.5;
}

.src a {
  color: var(--tx-muted);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 2px;
}

.src a:hover {
  color: var(--ro-red);
  text-decoration-color: var(--ro-red);
}

.on-red .src a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* Range chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  background: var(--c, var(--ro-red));
  flex: none;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}

/* Buttons (shared by the deck and the hub) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--ro-red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.6rem;
  border: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--ro-red-deep);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--ro-black);
}

.btn--dark:hover {
  background: #2b2b2b;
}

.btn--ghost {
  background: transparent;
  color: var(--tx);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--ro-red);
  color: var(--ro-red);
}

.on-red .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn svg {
  flex: none;
}

/* Callout note (shared) */
.note {
  border-left: 3px solid var(--accent);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--tx-muted);
  line-height: 1.55;
}

.note strong {
  color: var(--tx);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hide the lockup divider once the co-brand line wraps to its own row */
@media (max-width: 40rem) {
  .cobrand__div {
    display: none;
  }
}
