/* GENERATED by scripts/gen-palette-css.py - do not edit by hand */

:root {
  --bg: #3C1630;
  --surface: #4A233D;
  --text: #FFD7EF;
  --accent: #E9B8D7;
  --on-accent: #4A233D;
}

[data-palette="1"] {
  --bg: #3C1630;
  --surface: #4A233D;
  --text: #FFD7EF;
  --accent: #E9B8D7;
  --on-accent: #4A233D;
}

[data-palette="2"] {
  --bg: #002736;
  --surface: #003548;
  --text: #C1E8FF;
  --accent: #95CEEE;
  --on-accent: #003548;
}

[data-palette="3"] {
  --bg: #002640;
  --surface: #023353;
  --text: #D1E4FF;
  --accent: #A9C9F3;
  --on-accent: #023353;
}

[data-palette="4"] {
  --bg: #421320;
  --surface: #51212C;
  --text: #FFD9DF;
  --accent: #FFB1C0;
  --on-accent: #660029;
}

[data-palette="5"] {
  --bg: #3A1C02;
  --surface: #492813;
  --text: #FFDBC7;
  --accent: #FFB689;
  --on-accent: #512400;
}

[data-palette="1"][data-mode="light"] {
  --bg: #FFE3F4;
  --surface: #FECCEA;
  --text: #3C1630;
  --accent: #7C516C;
  --on-accent: #FFFFFF;
}

[data-palette="1"][data-mode="dark"] {
  --bg: #3C1630;
  --surface: #4A233D;
  --text: #FFD7EF;
  --accent: #E9B8D7;
  --on-accent: #4A233D;
}

[data-palette="2"][data-mode="light"] {
  --bg: #D5EFFF;
  --surface: #ADE1FF;
  --text: #002736;
  --accent: #246581;
  --on-accent: #FFFFFF;
}

[data-palette="2"][data-mode="dark"] {
  --bg: #002736;
  --surface: #003548;
  --text: #C1E8FF;
  --accent: #95CEEE;
  --on-accent: #003548;
}

[data-palette="3"][data-mode="light"] {
  --bg: #DFECFF;
  --surface: #C3DCFF;
  --text: #002640;
  --accent: #3F6185;
  --on-accent: #FFFFFF;
}

[data-palette="3"][data-mode="dark"] {
  --bg: #002640;
  --surface: #023353;
  --text: #D1E4FF;
  --accent: #A9C9F3;
  --on-accent: #023353;
}

[data-palette="4"][data-mode="light"] {
  --bg: #FFE5E9;
  --surface: #FFCED6;
  --text: #421320;
  --accent: #B22253;
  --on-accent: #FFFFFF;
}

[data-palette="4"][data-mode="dark"] {
  --bg: #421320;
  --surface: #51212C;
  --text: #FFD9DF;
  --accent: #FFB1C0;
  --on-accent: #660029;
}

[data-palette="5"][data-mode="light"] {
  --bg: #FFE6D8;
  --surface: #FFD1B5;
  --text: #3A1C02;
  --accent: #9A4600;
  --on-accent: #FFFFFF;
}

[data-palette="5"][data-mode="dark"] {
  --bg: #3A1C02;
  --surface: #492813;
  --text: #FFDBC7;
  --accent: #FFB689;
  --on-accent: #512400;
}

:root {
  --font-head: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --type-scale: 1;
}

[data-font="1"] {
  --font-head: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-font="2"] {
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

[data-font="3"] {
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

[data-font="4"] {
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
}

[data-font="5"] {
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
}

[data-font="6"] {
  --font-head: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

[data-size="s"] { --type-scale: 0.92; }

[data-size="l"] { --type-scale: 1.12; }

/* ---- derived tokens (same for every palette) ---- */
:root {
  --text-muted: color-mix(in srgb, var(--text) 62%, var(--bg));
  --border: color-mix(in srgb, var(--text) 16%, var(--bg));
  --surface-2: color-mix(in srgb, var(--surface) 70%, var(--bg));
}

/* ---- base layout ---- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { font-size: calc(100% * var(--type-scale, 1)); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3, .product-card__title { font-family: var(--font-head); }
a { color: var(--accent); }

/* ---- palette top bar ---- */
.palette-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .9rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease;
}
.palette-bar__label {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: .15rem;
}
.palette-btn {
  display: inline-flex;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  line-height: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.palette-btn:hover { transform: translateY(-1px); }
.palette-btn[aria-pressed="true"] { border-color: var(--text); }
.palette-btn .sw { width: 15px; height: 22px; }
.bar-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.wide-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: none;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.wide-btn:hover { color: var(--text); }
.wide-btn[aria-pressed="true"] {
  border-color: var(--text);
  color: var(--text);
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

/* dropdown controls (mode + font pairing) */
.font-select, .mode-select {
  appearance: none;
  -webkit-appearance: none;
  padding: .35rem 1.5rem .35rem .6rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right .7rem center, right .5rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color .15s ease, color .15s ease;
}
.font-select:hover, .mode-select:hover { color: var(--text); }
.font-select:focus-visible, .mode-select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

/* text-size segmented control */
.size-ctl {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}
.size-btn {
  padding: .3rem .55rem;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.size-btn + .size-btn { border-left: 1px solid var(--border); }
.size-btn:hover { color: var(--text); }
.size-btn[aria-pressed="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

/* ---- narrow screens: wrap the toolbar instead of overflowing ---- */
@media (max-width: 680px) {
  /* static (not sticky) so the taller wrapped bar scrolls away with the page */
  .palette-bar { position: static; flex-wrap: wrap; row-gap: .5rem; }
  /* label on its own line, swatches wrap below it, controls drop to a last row */
  .palette-bar__label { flex: 0 0 100%; margin: 0; }
  .bar-group { margin-left: 0; width: 100%; flex-wrap: wrap; }
}

/* ---- demo content ---- */
.wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem); margin: 0 0 .5rem; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 8px;
  padding: .7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.card {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.card h2 { margin-top: 0; }

/* ---- collection pages ---- */
.wrap--wide { max-width: 1140px; }
.crumb { font-size: .85rem; color: var(--text-muted); margin: 0 0 1rem; }
.crumb a { color: var(--text-muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}
.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__alt { opacity: 0; transition: opacity .25s ease; }
.product-card:hover .product-card__alt { opacity: 1; }
.product-card__body { padding: .85rem 1rem 1.1rem; }
.product-card__title { font-size: 1.05rem; font-weight: 600; margin: 0; }
.product-card__meta { font-size: .82rem; color: var(--text-muted); margin: .25rem 0 0; }

/* ---- collections index ---- */
.collection-card .product-card__title { font-size: 1.2rem; }

/* ---- home hero ---- */
.hero--home {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 0 2rem;
}
.hero-sig {
  flex: 0 0 auto;
  width: min(180px, 34vw);
  height: 90px;
  background-color: var(--text);
  -webkit-mask: url(/signature-mask.png) right top / contain no-repeat;
  mask: url(/signature-mask.png) right top / contain no-repeat;
  transition: background-color .25s ease;
}
/* Text column takes the remaining width and shrinks first, so a narrow page
   wraps the subtitle onto more lines instead of pushing the signature out. */
.hero-text { flex: 1 1 0; min-width: 0; }
.hero--home h1 { font-size: clamp(1.9rem, 1.15rem + 3.4vw, 3rem); margin: 0 0 .25rem; }
.hero--home p { color: var(--text-muted); font-size: 1.1rem; margin: 0; max-width: 46ch; }
.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

/* ---- site footer ---- */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
}
.ig-link {
  display: inline-flex;
  color: var(--text-muted);
  transition: color .15s ease, transform .15s ease;
}
.ig-link:hover { color: var(--accent); transform: translateY(-1px); }
.ig-link svg { width: 26px; height: 26px; display: block; }

/* ---- wide mode ---- */
/* auto-fit (not auto-fill) collapses empty trailing tracks so the cards
   stretch to fill the row; the rightmost card then lines up with the
   signature at the container's right edge. */
[data-wide="1"] .wrap--wide { max-width: 1680px; }
[data-wide="1"] .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1.25rem;
}

