/*
 * Brand layer: the ONE file a re-brand edits.
 *
 * /css/base.css holds every component and a neutral default for every token;
 * this file sets the Tiny Nail Art brand on top of it: the tokens every
 * component reads, the font stacks, the pastel hero, the wordmark in the
 * header, and the square gallery tiles. The admin console reads the same
 * tokens.
 *
 * Palette: berry #A3175D (primary), deep berry #7D0F46 (hover), blush
 * #FFF7FB / #FBEEF4 / #FDE7F1 (background, alternate surface, soft tint), a
 * pink-to-lavender hero (#FFE3EF -> #ECE4FF) with plum text (#3B1030,
 * #5E2350). Dark mode keeps base.css's neutrals and swaps in pink #FF8CC0
 * with deep plum hero shades. The pastel accents in the artwork (mint,
 * lavender, sunny yellow, coral) live only in the SVG files, never as text.
 *
 * Contrast (WCAG AA: 4.5:1 for text, 3:1 for control edges and focus rings),
 * computed with the WCAG relative-luminance formula for every pairing set
 * here (2026-10-10); recompute after changing any of them:
 *   light  #A3175D on #FFFFFF 7.4:1, on #FFF7FB 7.0:1, on #FBEEF4 6.6:1, on
 *          #FDE7F1 6.3:1; #FFFFFF on #A3175D 7.4:1, on #7D0F46 10.4:1;
 *          base.css text #1A2230 on #FFF7FB 15.2:1, on #FBEEF4 14.2:1, on
 *          #FDE7F1 13.6:1; muted #55606F on #FFF7FB 6.1:1, on #FBEEF4 5.7:1;
 *          edges #7D8796 on #FFF7FB 3.5:1, on #FBEEF4 3.2:1; base.css status
 *          colors on #FBEEF4 all >= 5.4:1
 *   hero   #3B1030 on #FFE3EF 13.4:1, on #ECE4FF 13.1:1; #5E2350 on both
 *          >= 9.3:1; #A3175D (the hero button) on #FFE3EF 6.2:1
 *   dark   #FF8CC0 on #18202A 7.6:1, on #0F141B 8.6:1, on #222B37 6.7:1, on
 *          #3A1730 7.3:1; #2A0718 on #FF8CC0 8.6:1, on #FFB3D6 11.1:1;
 *          #E6EAF0 on #3A1730 12.9:1; hero #FBE8F2 on #3A1530 13.5:1, on
 *          #2A1F4A 12.9:1; #E7C3D8 on both >= 9.4:1
 *
 * Fonts: system fonts only, so nothing is downloaded and no font license
 * applies. Headings ask for a rounded face where the system has one
 * (ui-rounded on Apple devices, Arial Rounded MT Bold where installed) and
 * fall back to the system sans. The Content-Security-Policy allows fonts from
 * this site only: a web font would be self-hosted under /fonts/ with its
 * license beside it.
 */

:root {
  --color-primary: #a3175d;
  --color-primary-hover: #7d0f46;
  --color-primary-contrast: #ffffff;
  --color-primary-soft: #fde7f1;

  --color-bg: #fff7fb;
  --color-surface-alt: #fbeef4;
  --color-border: #f0d9e5;

  --font-body:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-heading:
    ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', 'Segoe UI', system-ui,
    -apple-system, Roboto, Arial, sans-serif;

  --radius: 1rem;
  --radius-lg: 1.75rem;

  --hero-bg: linear-gradient(135deg, #ffe3ef 0%, #ece4ff 100%);
  --hero-text: #3b1030;
  --hero-muted: #5e2350;
  --hero-cta-bg: #a3175d;
  --hero-cta-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #ff8cc0;
    --color-primary-hover: #ffb3d6;
    --color-primary-contrast: #2a0718;
    --color-primary-soft: #3a1730;

    --color-bg: #0f141b;
    --color-surface-alt: #222b37;
    --color-border: #2e3846;

    --hero-bg: linear-gradient(135deg, #3a1530 0%, #2a1f4a 100%);
    --hero-text: #fbe8f2;
    --hero-muted: #e7c3d8;
    --hero-cta-bg: #ff8cc0;
    --hero-cta-text: #2a0718;
  }
}

/* The wordmark: the site's name beside the bottle, in the heading face and
   the brand color. */
.brand span {
  color: var(--color-primary);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.brand:hover span {
  color: var(--color-primary-hover);
}

h1,
h2 {
  letter-spacing: 0;
}

/* A hero secondary button on the light hero: base.css lightens it with
   white, which is invisible on a pastel background. */
.hero .btn-secondary:hover:not(:disabled) {
  background: rgb(255 255 255 / 45%);
}

@media (prefers-color-scheme: dark) {
  .hero .btn-secondary:hover:not(:disabled) {
    background: rgb(255 255 255 / 12%);
  }
}

/* Gallery tiles are square: phone photos of nails are often portrait, and a
   square crop keeps the nails in view better than base.css's 4:3. The full
   photo is a click away (each tile links its full-size copy). */
.gallery__item img {
  aspect-ratio: 1 / 1;
}

.gallery__item a {
  display: block;
}

.gallery__item a:focus-visible {
  outline-offset: -3px;
}

.gallery__item figcaption {
  font-weight: 600;
}
