:root {
  --paper: #f6f0e8;
  --ink: #1d1a18;
  --muted: #756e68;
  --line: rgba(29, 26, 24, .14);
  --card: rgba(255, 255, 255, .56);
  --accent: #d95076;
  --accent-soft: #f2ccd6;
  --radius-lg: 2rem;
  --radius-md: 1.35rem;
  --shadow: 0 20px 60px rgba(72, 52, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(234, 127, 109, .10), transparent 22rem),
    radial-gradient(circle at 90% 24%, rgba(157, 116, 183, .09), transparent 22rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-shell { width: min(100%, 72rem); margin: 0 auto; overflow: hidden; }
.site-header {
  height: 4.75rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .21em;
  text-decoration: none;
  font-size: 1rem;
}
.brand span { color: var(--accent); font-size: .48rem; vertical-align: top; letter-spacing: 0; margin-left: .12rem; }
.saved-season {
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.saved-season:not([hidden]) { display: flex; }
.saved-dot { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,.04); }

.hero {
  min-height: 37rem;
  padding: 6.25rem 1.25rem 4.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 0;
  height: 1px;
  background: var(--line);
}
.eyebrow, .card-kicker {
  margin: 0 0 1rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.hero h1 {
  max-width: 19ch;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.35rem, 13vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero h1 em { color: var(--accent); font-weight: 600; }
.hero-copy { max-width: 34rem; margin: 1.75rem 0 2rem; color: var(--muted); line-height: 1.65; font-size: .98rem; }
.primary-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.primary-link span { font-size: 1.1rem; transition: transform .2s ease; }
.primary-link:hover span { transform: translateY(.2rem); }
.hero-orbit { position: absolute; inset: 3rem 0 0; z-index: -1; pointer-events: none; opacity: .9; }
.hero-orbit span {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: var(--c); border-radius: 50%; filter: blur(.2px);
  box-shadow: inset -10px -10px 25px rgba(0,0,0,.08), 0 14px 30px rgba(0,0,0,.08);
}

.picker-section, .guide-section { padding: 4.5rem 1.25rem 5.5rem; }
.section-heading { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: .55rem; color: var(--muted); }
.step {
  display: grid; place-items: center; flex: 0 0 auto; width: 2rem; height: 2rem;
  border: 1px solid var(--ink); border-radius: 50%; font-size: .65rem; font-weight: 700;
}
h2, h3 { margin: 0; font-family: "Playfair Display", serif; font-weight: 600; }
.section-heading h2 { font-size: clamp(2rem, 8vw, 3.7rem); line-height: 1; letter-spacing: -.035em; }
.season-filters {
  display: flex; gap: .55rem; margin: 0 -.1rem 1.4rem; padding: .1rem;
  overflow-x: auto; scrollbar-width: none;
}
.season-filters::-webkit-scrollbar { display: none; }
.filter-button {
  border: 1px solid var(--line); background: rgba(255,255,255,.35); color: var(--ink);
  border-radius: 999px; padding: .7rem .9rem; white-space: nowrap; cursor: pointer;
  font-size: .74rem; font-weight: 600; transition: .2s ease;
}
.filter-button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .42rem; }
.mini-dot.spring { background: #ef8b6f; }
.mini-dot.summer { background: #8c92bf; }
.mini-dot.autumn { background: #a86739; }
.mini-dot.winter { background: #533d72; }

.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.season-card {
  min-height: 10.6rem; padding: 1rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  border: 1px solid rgba(29,26,24,.1); border-radius: var(--radius-md); color: var(--ink);
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 24%, white), rgba(255,255,255,.45));
  box-shadow: 0 8px 24px rgba(72,52,43,.05); cursor: pointer; transition: transform .22s ease, box-shadow .22s ease;
}
.season-card::after {
  content: ""; position: absolute; right: -1.1rem; top: -1.1rem; width: 5.5rem; height: 5.5rem;
  border-radius: 50%; background: var(--card-color); opacity: .88;
  box-shadow: -1.7rem 2.2rem 0 color-mix(in srgb, var(--card-color) 68%, white);
}
.season-card:hover, .season-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); outline: none; }
.season-card small { position: relative; z-index: 1; font-size: .58rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.season-card strong { position: relative; z-index: 1; max-width: 7ch; font-family: "Playfair Display", serif; font-size: 1.5rem; line-height: 1; }
.season-arrow {
  position: absolute; right: .9rem; bottom: .8rem; display: grid; place-items: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid rgba(29,26,24,.3); font-size: .85rem;
}
.season-card[hidden] { display: none; }

.guide-section { scroll-margin-top: 1rem; }
.guide-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.text-button { padding: .5rem 0; border: 0; background: none; cursor: pointer; font-size: .76rem; font-weight: 600; }
.guide-count { color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .16em; }
.guide-hero {
  min-height: 20rem; padding: 2rem 1.35rem; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; border-radius: var(--radius-lg); color: white;
  background: var(--guide-color); box-shadow: var(--shadow); isolation: isolate;
}
.guide-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(20deg, rgba(0,0,0,.32), transparent 64%);
}
.guide-title-wrap { position: relative; z-index: 2; max-width: 72%; }
.guide-title-wrap .eyebrow { margin-bottom: .6rem; }
.guide-title-wrap h2 { font-size: clamp(3.2rem, 14vw, 6.2rem); line-height: .86; letter-spacing: -.05em; }
.guide-tagline { margin: 1rem 0 0; font-size: .86rem; line-height: 1.4; }
.color-fan { position: absolute; right: -2.8rem; top: 1rem; width: 12rem; height: 15rem; }
.color-fan span {
  position: absolute; right: 0; top: 0; width: 5.2rem; height: 12rem; border-radius: 3rem;
  background: var(--fan-color); transform-origin: 50% 88%; transform: rotate(var(--angle));
  box-shadow: 0 10px 24px rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.18);
}
.traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: 1rem 0; }
.trait { padding: 1rem .72rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
.trait span { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .57rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.trait strong { font-size: .76rem; line-height: 1.2; }
.definitions-card {
  margin: 1rem 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .48);
}
.definitions-heading { margin-bottom: 1.4rem; }
.definitions-heading .card-kicker { margin-bottom: .55rem; color: var(--muted); }
.definitions-heading h3 { font-size: 1.75rem; line-height: 1.05; }
.definitions-heading > p:last-child { margin: .75rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.definitions-list { border-top: 1px solid var(--line); }
.definition-item { border-bottom: 1px solid var(--line); }
.definition-item summary {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
}
.definition-item summary::-webkit-details-marker { display: none; }
.definition-item summary i {
  margin-right: .7rem;
  color: var(--accent);
  font-size: .58rem;
  font-style: normal;
  letter-spacing: .08em;
}
.definition-item .details-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.definition-item[open] .details-icon { transform: rotate(45deg); background: var(--ink); color: white; }
.definition-item > p { margin: -.15rem 0 1.15rem; padding-right: 1.9rem; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.profile-card { padding: 1.5rem; border-radius: var(--radius-md); background: var(--ink); color: white; }
.profile-card .card-kicker { color: var(--accent-soft); }
.profile-card h3 { font-size: 1.85rem; line-height: 1.05; }
.profile-card p:last-child { margin: .9rem 0 0; color: rgba(255,255,255,.7); font-size: .86rem; line-height: 1.6; }

.palette-block { padding: 3.25rem 0 1.5rem; }
.palette-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.palette-heading .card-kicker { margin-bottom: .5rem; color: var(--muted); }
.palette-heading h3 { font-size: 1.75rem; line-height: 1; }
.palette-heading > p { max-width: 9.5rem; margin: 0; color: var(--muted); text-align: right; font-size: .66rem; line-height: 1.4; }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.swatch {
  aspect-ratio: .92; padding: .72rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  border: 0; border-radius: 1rem; color: var(--swatch-text); background: var(--swatch-color); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(29,26,24,.08); transition: transform .16s ease;
}
.swatch:active { transform: scale(.96); }
.swatch strong { font-size: .72rem; text-align: left; }
.swatch small { margin-top: .18rem; font-size: .56rem; opacity: .72; text-transform: uppercase; }
.essentials-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: .65rem; margin: 1.1rem 0 1.6rem; }
.essentials-card { min-height: 9.5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.essentials-card .card-kicker { color: var(--muted); }
.small-swatches { display: flex; gap: .35rem; }
.small-swatch { width: 2.25rem; height: 4.4rem; border-radius: 999px; background: var(--small-color); border: 1px solid rgba(29,26,24,.1); }
.metal-copy { margin: 1.8rem 0 0; font-family: "Playfair Display", serif; font-size: 1.3rem; line-height: 1.15; }
.save-button {
  width: 100%; padding: 1rem 1.2rem; display: flex; justify-content: center; align-items: center; gap: .65rem;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; cursor: pointer; font-weight: 700;
  transition: .2s ease;
}
.save-button.is-saved { background: transparent; color: var(--ink); }
.save-hint { margin: .7rem 0 0; color: var(--muted); text-align: center; font-size: .65rem; }

footer { margin: 0 1.25rem; padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer-brand { display: inline-block; margin-bottom: .65rem; }
footer p { margin: .3rem 0; color: var(--muted); font-size: .7rem; }
.footer-note { max-width: 31rem; padding-top: 1.4rem; line-height: 1.6; }
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 20; transform: translate(-50%, 1rem); opacity: 0;
  padding: .75rem 1rem; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow);
  font-size: .72rem; font-weight: 600; pointer-events: none; transition: .22s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.client-mode .hero,
.client-mode .picker-section,
.client-mode #changeSeason { display: none; }
.client-mode .guide-section { padding-top: 2rem; }
.client-mode .guide-topline { justify-content: flex-end; }

@media (min-width: 44rem) {
  .site-header { padding-inline: 2.5rem; }
  .hero { min-height: 43rem; padding-inline: 4rem; }
  .hero::after { inset-inline: 2.5rem; }
  .picker-section, .guide-section { padding: 6rem 2.5rem 7rem; }
  .season-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .season-card { min-height: 14rem; padding: 1.25rem; }
  .season-card strong { font-size: 2rem; }
  .guide-hero { min-height: 27rem; padding: 2.5rem; }
  .palette { grid-template-columns: repeat(4, 1fr); }
  footer { margin-inline: 2.5rem; }
  .client-mode .guide-section { padding-top: 3rem; }
}

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