/*
 * Halfpix palette - Porcelain and deep jade (暖瓷深玉) v1.8.0
 *
 * GENERATED FILE - DO NOT EDIT.
 * Source: design/palette.json   Build: design/build-palette.ps1
 *
 * Mint sea-salt, chosen by the owner from three researched directions: a warm off-white canvas, the HALFPIX logo recoloured to mint (#2CBFA0) with a coral swirl (#FF7A6B), a deeper mint for the few filled controls, and coral only for likes and counts. Light tints with coloured text for selected states instead of heavy fills keep the page airy; the neutrals stay quiet so the pottery in the photographs carries the colour.
 *
 * Loaded last, after design-tokens.css, style.css, pages.css and parity.css,
 * each of which declares its own :root colour block. This file overrides the
 * values only - every token name and every usage stays where it was, so
 * rolling back a scheme means not loading this one stylesheet.
 */

:root {
  --cream: #f3f2ee;  /* Warm neutral page background, separated from white cards. */
  --porcelain: #ffffff;  /* Cards, panels, inputs, sheets. */
  --ink: #202e2a;  /* Body text and headings. */
  --muted: #626b66;  /* Secondary text, meta lines, captions. */
  --line: #dce1da;  /* Borders and dividers. */
  --neutral-soft: #eef2ef;  /* Image placeholder and avatar fallback. Deliberately neutral: a tinted placeholder fights the ceramics it frames. */
  --brand: #2cbfa0;  /* The logo's mint (the letters). Decoration only (logo, highlights, illustrations): white text on it fails contrast. */
  --brand-accent: #ff7a6b;  /* The logo's coral swirl. Decoration only. */
  --celadon: #176b58;  /* Buttons, links, active tabs, selected states. Deep jade with accessible white text. */
  --celadon-deep: #104d40;  /* Hover, pressed, eyebrow text. */
  --celadon-soft: #e4f5ef;  /* Chip and badge background, soft tints. */
  --celadon-on-soft: #0a6b5c;  /* Text that sits on primarySoft. */
  --sage: #1e7563;  /* The secondary green for marks, charts and secondary text. */
  --accent: #c8453a;  /* Coral, the logo swirl deepened for text: likes, notification counts, small highlights. Never a second button colour. */
  --accent-soft: #fdecea;  /* Tint behind accent marks. */
  --terracotta: #b4552b;  /* The real clay colour, for piece and firing accents. */
  --terracotta-soft: #fbede4;  /* Warm tint behind terracotta marks. */
  --kiln-blue: #2d6e9e;  /* Reserved for explicit kiln/temperature data only. NOT the Material secondary slot - wiring it there turned chips, switches and nav indicators blue. */
  --navy-soft: #e7f0f8;  /* Tint behind kiln marks. */
  --green-soft: #eef7f3;  /* Subtle section surface, a faint mint tint. */
  --danger: #b3261e;  /* Destructive actions and errors. */
  --warning: #8a5700;  /* Warnings and pending states. */

  /* --clay stays pointed at the primary because the shared component rules
     fill every button with var(--clay). Only values change here; rewiring
     what a name means is a behaviour change, not a colour change. */
  --clay: var(--celadon);
  --clay-dark: var(--celadon-deep);
  --clay-soft: var(--neutral-soft);
  --coral-soft: var(--terracotta-soft);

  --shadow-sm: 0 4px 16px rgb(21 24 29 / 0.045);
  --shadow-md: 0 8px 24px rgb(21 24 29 / 0.065);
  --shadow: var(--shadow-md);

  /* Aliases used by style.css, pages.css and the WordPress shell. */
  --hp-canvas: var(--cream);
  --hp-surface: var(--porcelain);
  --hp-surface-soft: var(--green-soft);
  --hp-ink: var(--ink);
  --hp-muted: var(--muted);
  --hp-line: var(--line);
  --hp-primary: var(--celadon);
  --hp-primary-deep: var(--celadon-deep);
  --hp-primary-soft: var(--celadon-soft);
  --hp-clay: var(--terracotta);
  --hp-clay-soft: var(--terracotta-soft);
  --hp-danger: var(--danger);
  --hp-shadow: var(--shadow);
  --hp-green: var(--celadon);
  --hp-deep: var(--celadon-deep);
  --hp-soft: var(--celadon-soft);
  --hp-bg: var(--cream);
  --hp-card: var(--porcelain);
  --hp-blue: var(--kiln-blue);
  --hp-warn: var(--warning);
  --hp-brand: var(--brand);
  --hp-accent: var(--accent);

  /* unified-ui.css declares its own --ui-* set, which this file did not
     reach before v1.7.8: the brand mark and several panels kept the old
     green whatever the scheme. Success stays green on purpose. */
  --ui-canvas: var(--cream);
  --ui-surface: var(--porcelain);
  --ui-surface-soft: var(--green-soft);
  --ui-ink: var(--ink);
  --ui-muted: var(--muted);
  --ui-line: var(--line);
  --ui-primary: var(--celadon);
  --ui-primary-strong: var(--celadon-deep);
  --ui-primary-soft: var(--celadon-soft);
  --ui-form-focus: var(--celadon);
  --ui-danger: var(--danger);

  /* Used by upload-progress-v141.css, works-v170.css and others but never
     declared anywhere, so those colours silently did not apply. */
  --forest: var(--celadon);
  --mist: var(--green-soft);
}

/* The old body background layered two tinted radial washes over the canvas,
   which is part of why the page read as muddy. A flat canvas leaves the
   photographs as the only source of colour. */
html { background: var(--cream); }
body { background: var(--cream); }

/* Chips carry their own darker text; otherwise they inherit the accent on its
   own tint, which is too close to read comfortably. */
.hp-chip,
.content-badge,
.discover-chip { color: var(--celadon-on-soft); }

/* The logo pink, used sparingly: the unread count and a liked heart. */
.hp-notification-count { background: var(--accent); color: #fff; }
.feed-card__stats span.is-active:first-child { color: var(--accent); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--celadon) 55%, transparent);
  outline-offset: 3px;
}

:where(
  .hp-field,
  .creation-section,
  .checkout-section,
  .astra-field-grid,
  .astra-order-note,
  .address-form,
  .discover-filters
) :is(input, select, textarea):focus {
  border-color: var(--celadon);
  outline: 3px solid color-mix(in srgb, var(--celadon) 22%, transparent);
}
