/* ============================================================
   StyleYourSimcha — one stylesheet
   1. tokens        5. hero
   2. base          6. collection gallery
   3. type          7. how it works
   4. top bar       8. included, letters, faq, quote, footer
                    9. motion + responsive
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  color-scheme: light;

  /* paper and ink */
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F3F1EB;
  --ink: #16211B;
  --ink-soft: #4B554F;
  --muted: #6E7873; /* 4.7:1 on --bg, so the small labels stay readable */

  /* one accent, plus the shades it needs to be used properly:
     --brand is the fill, --brand-ink is the readable version of it on paper */
  --brand: #65c67a;
  --brand-hover: #4FB268;
  --brand-deep: #4FB268;
  --brand-ink: #22693E;
  --brand-soft: #EDF7F0;
  --on-brand: #10251A;
  --gold: #A87A32;
  --sage: #4F7A5D;

  --line: rgba(22, 33, 27, 0.10);
  --line-strong: rgba(22, 33, 27, 0.20);

  --shadow-sm: 0 1px 2px rgba(22, 33, 27, 0.05);
  --shadow-md: 0 1px 2px rgba(22, 33, 27, 0.04), 0 18px 40px -28px rgba(22, 33, 27, 0.35);

  /* type */
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --fs-util: 0.72rem;
  --fs-body: 1rem;

  /* space */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 2.75rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: 1.25rem;
  --radius: 14px;
  --radius-sm: 9px;
}

/* ---------- 2. base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* available to screen readers, gone from the page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, dl, dd, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-size: 0.9em; color: var(--brand-ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 0.85rem;
}
.skip:focus { left: 0; }

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 5rem;
}
.section--tint { background: var(--surface-2); }

/* anything marked [bracketed] is a placeholder the owner must replace */
.ph {
  color: var(--brand-ink);
  border-bottom: 1px dashed rgba(101, 198, 122, 0.55);
  padding-bottom: 1px;
  white-space: nowrap;
}

/* ---------- 3. type ---------- */
.eyebrow {
  font-size: var(--fs-util);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
  font-weight: 500;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.7rem;
  max-width: 24ch;
  text-wrap: balance;
}

.lede {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 0.9rem;
  text-wrap: pretty;
}

.head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}

/* ---------- 4. top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.topbar.is-stuck {
  box-shadow: 0 12px 28px -26px rgba(22, 33, 27, 0.55);
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  justify-self: start;
}
.logo__mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo__word {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.logo__accent { color: var(--brand-ink); }

.topnav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.9rem;
  font-size: 0.9rem;
}
.topnav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.topnav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.topnav a.is-current { color: var(--ink); border-bottom-color: var(--brand); }

.topbar__actions { display: flex; align-items: center; gap: 0.6rem; }

.topbar__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  position: relative;
  cursor: pointer;
}
.topbar__toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}
.topbar__toggle span:first-child { top: 1.15rem; }
.topbar__toggle span:last-child { top: 1.5rem; }
.topbar__toggle[aria-expanded="true"] span:first-child { transform: translateX(-50%) translateY(0.18rem) rotate(45deg); }
.topbar__toggle[aria-expanded="true"] span:last-child { transform: translateX(-50%) translateY(-0.18rem) rotate(-45deg); }

.topbar__menu {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding-block: 0.5rem 1rem;
}
.topbar__menu .wrap { display: grid; }
.topbar__menu a {
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.topbar__menu a:last-child {
  border-bottom: 0;
  margin-top: 0.75rem;
  color: var(--brand-ink);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  border-radius: 9px;
  padding: 0.78rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn:active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
.btn--block { width: 100%; padding-block: 0.95rem; }

/* ---------- 5. hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(2.75rem, 5vw, 4.5rem);
  text-align: center;
}
.hero__wash {
  position: absolute;
  inset: 0 0 auto;
  height: 130%;
  pointer-events: none;
  background: radial-gradient(58% 62% at 50% -8%, rgba(101, 198, 122, 0.16), transparent 72%);
}
.hero__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.9vw, 3.65rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 21ch;
  text-wrap: balance;
}
.hero__lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  max-width: 54ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.75rem;
  margin-top: 1rem;
}
.hero__facts li {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero__facts strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.hero__occasions {
  font-size: var(--fs-util);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 70ch;
  margin-top: 0.5rem;
}

/* ---------- 6. collection gallery ---------- */
.section--flush { padding-bottom: 0; }

.gal__hint {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 34ch;
}

.gal {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gal__viewport { overflow: visible; }

/* the pieces sit in a plain responsive grid; script still clones a second set
   into the row for the old marquee, so that copy is kept out of the layout */
.gal__row { display: block; width: 100%; }
.gal__set {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--gap);
}
.gal__set[aria-hidden="true"],
.gal__row > .gal__set + .gal__set { display: none; }

.slide {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.slide:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.slide__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--tint, var(--surface-2));
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
/* a photo covers the tinted label completely — it's absolutely placed so a
   tall image can't stretch the 4:3 box and change every slide's shape */
.slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide__label {
  grid-area: 1 / 1;
  display: grid;
  gap: 0.15rem;
  justify-items: center;
}
.slide__code {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.slide__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.slide__coll {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.slide__meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1;
}
.slide__body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.slide__specs {
  display: flex;
  gap: 1.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.slide__specs div { display: flex; flex-direction: column; }
.slide__specs dt {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.slide__specs dd { font-size: 0.92rem; font-weight: 500; }

.slide__ask {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.slide__ask:hover {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.slide.is-picked .slide__ask {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* the gallery holds no pieces of its own: this panel stands in until the
   first one is added in the dashboard, and for anyone without JS */
.gal.is-empty .gal__row { width: 100%; }
.gal.is-empty .gal__set { display: block; }
.gal__empty {
  width: min(600px, 100%);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: clamp(1.85rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.gal__emptytitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.gal__emptybody {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 48ch;
  text-wrap: pretty;
}
.gal__empty .btn { margin-top: 0.35rem; }

.gal__foot {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 64ch;
}
.gal__foot strong { color: var(--ink); font-weight: 600; }

/* ---------- 8. included / letters / faq / quote / footer ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.letters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.letter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.letter blockquote {
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.letter figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}
.letter figcaption strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.split--faq { grid-template-columns: 0.85fr 1.15fr; }

.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q { font-weight: 400; }
.faq__q button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.2rem 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.22s ease;
}
.faq__q button:hover { color: var(--brand-ink); }
.faq__sign {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s ease;
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q button[aria-expanded="true"] { color: var(--brand-ink); }
.faq__q button[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.faq__a > p {
  overflow: hidden;
  font-size: 0.94rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.faq__a.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 1.4rem;
}

.quote__wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.quote__contact {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.quote__contact li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.quote__contact li > span:first-child {
  font-size: var(--fs-util);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}
.quote__contact a { text-decoration: none; }
.quote__contact a:hover { color: var(--brand-ink); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.35rem, 3vw, 2.15rem);
  display: grid;
  gap: 1.1rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.field { display: grid; gap: 0.4rem; }
.field label,
.field__legend {
  font-size: 0.84rem;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink-soft);
}
.field__opt {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.8rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; }
.field select { appearance: none; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(101, 198, 122, 0.28);
}
.field.has-error input,
.field.has-error select { border-color: #B42318; }
.field__error {
  font-size: 0.82rem;
  color: #B42318;
}
.field__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.field__picks button {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.field__picks button:hover { color: var(--brand-ink); border-color: var(--brand); }
.field__picks button[aria-pressed="true"] {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.field.has-picks input { border-color: rgba(101, 198, 122, 0.55); }

.form__todo {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.form__done { display: grid; gap: 0.9rem; justify-items: start; }
.form__donetitle {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}
.form__donebody { font-size: 0.95rem; color: var(--ink-soft); max-width: 46ch; }
.form.is-sent > *:not(.form__done) { display: none; }

.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.75rem, 5vw, 4rem);
}
.foot__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
.logo--foot { margin-bottom: 0.5rem; }
.foot__brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 34ch;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.foot__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.foot__col p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: var(--brand-ink); }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 9. responsive ---------- */
@media (max-width: 1080px) {
  .letters { grid-template-columns: repeat(2, 1fr); }
  .foot__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar__toggle { display: block; }
  .topbar__actions .btn--sm { display: none; }

  .split,
  .split--faq,
  .quote__wrap { grid-template-columns: 1fr; }
}

/* below this width the gallery stops gliding and becomes a swipeable strip */
@media (max-width: 720px) {
  .gal__set { grid-template-columns: 1fr; }
  .gal__hint { display: none; }
}

@media (max-width: 640px) {
  .letters { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__facts { gap: 1rem 2rem; }
  .quote__contact li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- 9c. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* the gallery is a still grid now: nothing to glide or snap */
  html.js .gal__row { animation: none; }
}

/* ---------- 10. admin dashboard ---------- */
.admin { max-width: 1060px; padding-block: clamp(2rem, 4vw, 3rem) 4rem; }

.admin__tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.admin__who {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  background: #FFF7E6;
  border: 1px solid #EBD3A0;
  color: #57431A;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.notice code {
  background: rgba(87, 67, 26, 0.09);
  color: inherit;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}
.notice--ok {
  background: #EFF6EF;
  border-color: #BFD6C1;
  color: #2E4A32;
}

.admin__gate { max-width: 430px; }
.admin__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 0.5rem;
}
.admin__gate .lede { margin-bottom: 1.75rem; }
.admin__hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 1rem;
}

.admin__error {
  font-size: 0.86rem;
  color: #B42318;
  background: rgba(180, 35, 24, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.admin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
.admin__col { display: grid; gap: 1rem; }
.admin__formhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.admin__h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.admin__count { font-size: 0.8rem; color: var(--muted); }
.admin__link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--brand-ink);
  text-decoration: underline;
}
.admin__formfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.admin__check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.admin__check input { accent-color: var(--brand-ink); width: 1rem; height: 1rem; }

.admin__hint--tight { margin-top: -0.25rem; margin-bottom: 0.25rem; }
.admin__hint code {
  background: var(--surface-2);
  color: var(--ink-soft);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.admin__dirty {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

/* ---------- photo drop zone ---------- */
.drop {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.drop.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.drop__frame {
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.drop__photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.drop__photo img { width: 100%; height: 100%; object-fit: cover; }
.drop__title { font-size: 0.9rem; font-weight: 600; }
.drop__hint {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 0.15rem;
}
.drop__file {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.drop__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
/* the file input is driven by the buttons; .field input's width would keep it
   layout-sized and push the page sideways, so it's pinned back down here */
.drop .visually-hidden { width: 1px; height: 1px; }

.admin__list { display: grid; gap: 0.75rem; }
.admin__empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.prod {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "thumb body"
    "actions actions";
  gap: 0.7rem 0.85rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  box-shadow: var(--shadow-sm);
}
.prod__thumb {
  grid-area: thumb;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--tint, var(--surface-2));
  display: grid;
  place-items: center;
}
.prod__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod__initial {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.prod__body { grid-area: body; display: grid; gap: 0.15rem; min-width: 0; }
.prod__name {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.prod__code {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 400;
  color: var(--muted);
}
.prod__meta { font-size: 0.78rem; color: var(--muted); }
/* the action row is the same component in all three lists */
.prod .item__actions { grid-area: actions; }
.prod__toggle[aria-pressed="false"] { color: var(--brand-ink); border-color: rgba(101, 198, 122, 0.55); }
.prod.is-off { background: var(--bg); }
.prod.is-off .prod__thumb { filter: grayscale(0.6); }
.prod.is-off .prod__name { color: var(--muted); }

.admin__danger:hover { border-color: #B42318; color: #B42318; background: var(--surface); }
.admin__danger.is-armed {
  background: #B42318;
  border-color: #B42318;
  color: #fff;
}
.admin__danger.is-armed:hover { color: #fff; }

@media (max-width: 880px) {
  .admin__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .drop { grid-template-columns: 1fr; }
  .drop__frame { width: 100%; }
  .prod .item__actions .btn--sm { flex: 1 1 auto; }
}

/* ---------- 11. dashboard ---------- */
.dash { padding-block: clamp(1.5rem, 3vw, 2.5rem) 4rem; }

.dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
}
.dash__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 0.35rem;
}
.dash__sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.dash__head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.dash__tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  scrollbar-width: none;
}
.dash__tabs::-webkit-scrollbar { display: none; }
.dash__tab {
  position: relative;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dash__tab:hover { color: var(--ink); }
.dash__tab.is-current { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tab__n { font-size: 0.72rem; color: var(--muted); margin-left: 0.3rem; }
.dash__tab.is-current .tab__n { color: var(--brand-ink); }

/* stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__value {
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-top: 0.35rem;
}
.stat__note { font-size: 0.76rem; color: var(--muted); margin-top: 0.2rem; }

.dash__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.card__note { font-size: 0.74rem; color: var(--muted); }
.card__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  color: var(--brand-ink);
  text-decoration: underline;
  cursor: pointer;
}
.card__empty { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.card__foot { font-size: 0.74rem; color: var(--muted); margin-top: 0.85rem; line-height: 1.5; }

/* collection mix */
.bars { display: grid; gap: 0.7rem; }
.bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 1.6rem;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
}
.bar__label {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar__track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar__value { text-align: right; color: var(--muted); }

/* additions chart */
.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  height: 148px;
}
.col { display: grid; grid-template-rows: auto 1fr auto; gap: 0.35rem; height: 100%; text-align: center; }
.col__count { font-size: 0.66rem; color: var(--muted); min-height: 0.9rem; }
.col__track { display: flex; align-items: flex-end; height: 100%; }
.col__fill { width: 100%; background: var(--brand); opacity: 0.85; border-radius: 4px 4px 0 0; }
.col__fill.is-zero { background: var(--line-strong); opacity: 1; }
.col__label { font-size: 0.66rem; color: var(--muted); }

/* attention list */
.tasks { display: grid; }
.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.task:first-child { border-top: 0; padding-top: 0; }
.task__title { font-size: 0.88rem; font-weight: 500; }
.task__meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; line-height: 1.5; }
.task--done .task__title { color: var(--sage); }

/* latest review */
.latest__stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.9rem; }
.latest__quote { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.4rem; text-wrap: pretty; }
.latest__who { font-size: 0.78rem; color: var(--muted); margin-top: 0.55rem; }
.latest__empty { display: grid; justify-items: start; gap: 0.75rem; }

/* reviews + questions rows */
.item {
  display: grid;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.item__title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.item__stars { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.06em; font-weight: 400; }
.item__meta { font-size: 0.74rem; color: var(--muted); margin-top: 0.1rem; }
.item__quote {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.item__actions .btn--sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.item__actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.item.is-off { background: var(--bg); }
.item.is-off .item__title { color: var(--muted); }

/* the "copy the six questions in" offer */
.seed {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}
.seed__text { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }

/* reviews on the public page */
.letter__stars { color: var(--gold); letter-spacing: 0.14em; font-size: 0.92rem; }

@media (max-width: 900px) {
  .dash__cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .task { flex-direction: column; align-items: flex-start; }
  .bar { grid-template-columns: 74px minmax(0, 1fr) 1.3rem; }
  .dash__tab { padding: 0.7rem 0.65rem; }
}

/* ---------- 12. quote requests ---------- */
.req {
  display: grid;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}
.req.is-handled {
  border-left-color: var(--line-strong);
  background: var(--bg);
}
.req__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
.req__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
}
.req__badge {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.req__meta { font-size: 0.78rem; color: var(--muted); }
.req__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.45rem 0.9rem;
}
.req__facts dt {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.req__facts dd { font-size: 0.85rem; word-break: break-word; }
.req__facts a { color: var(--brand-ink); text-decoration: none; }
.req__facts a:hover { text-decoration: underline; }
.req__notes {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.req__when { font-size: 0.72rem; color: var(--muted); }
.req__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.req__actions .btn--sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }

/* the quote form's send failure */
.form__error {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #B42318;
  background: rgba(180, 35, 24, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}
.form__error:focus-visible { outline: 2px solid #B42318; outline-offset: 2px; }
