/* RoomZen Room Recipe
   Scoped to .rz so it cannot fight the host theme. No web fonts: the site is
   behind Cloudflare and a blocking font request is the slowest thing on the
   page. System serif reads as considered and costs nothing. */

.rz {
  --ink: #23211d;
  --ink-soft: #5f5a51;
  --line: #ddd7cc;
  --paper: #faf8f4;
  --card: #ffffff;
  --accent: #4c5148;
  --radius: 14px;

  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.rz *, .rz *::before, .rz *::after { box-sizing: border-box; }

.rz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.rz-eyebrow {
  margin: 0 0 .35rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rz-h { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; font-weight: 600; }
.rz-note { color: var(--ink-soft); font-size: .9375rem; margin-top: 1rem; }

/* Choices ---------------------------------------------------------- */

.rz-choices { display: grid; gap: .625rem; }

.rz-choice {
  width: 100%;
  text-align: left;
  padding: .875rem 1.125rem;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rz-choice:hover { border-color: var(--accent); }
.rz-choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rz-choice.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Buttons ---------------------------------------------------------- */

.rz-btn {
  font: inherit;
  padding: .8125rem 1.375rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.rz-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rz-btn-primary { background: var(--accent); color: #fff; }
.rz-btn-quiet { border-color: transparent; color: var(--ink-soft); text-decoration: underline; }

/* Result ----------------------------------------------------------- */

.rz-result-head { margin-bottom: 1.5rem; }
.rz-title { margin-bottom: .5rem; }
.rz-promise { margin: 0; font-size: 1.1875rem; color: var(--ink-soft); }

.rz-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.rz-swatch {
  background: var(--c);
  aspect-ratio: 1 / 1.35;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .5rem .4rem;
  /* Swatch names must stay legible on both a #F4F2ED and a #232320 chip.
     A translucent plate is the only thing that works for every hex without
     computing contrast per swatch. */
}
.rz-swatch-name, .rz-swatch-hex {
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: rgba(255,255,255,.86);
  color: #23211d;
  border-radius: 4px;
  padding: 1px 4px;
  display: block;
}
.rz-swatch-name { font-size: .6875rem; font-weight: 600; }
.rz-swatch-hex { font-size: .625rem; margin-top: 2px; opacity: .75; }

.rz-block { margin-bottom: 1.5rem; }
.rz-lbl {
  margin: 0 0 .5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.rz-anchor { margin: 0; font-size: 1.1875rem; }

.rz-rules { margin: 0; padding-left: 1.25rem; }
.rz-rules li { margin-bottom: .5rem; }

.rz-cols { display: grid; gap: 1.5rem; }
@media (min-width: 34rem) { .rz-cols { grid-template-columns: 1fr 1fr; } }

.rz-avoid {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .875rem 1.125rem;
}
.rz-avoid p { margin: 0; }

.rz-constraint-note {
  background: #f3f1e9;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9375rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Shop ------------------------------------------------------------- */

.rz-affiliate-disclosure {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: 0 0 .875rem;
}
.rz-shop { list-style: none; margin: 0; padding: 0; }
.rz-shop-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.rz-shop-item:last-child { border-bottom: 0; }
.rz-shop-item a { color: var(--accent); font-weight: 600; }
.rz-shop-why { display: block; font-size: .9375rem; color: var(--ink-soft); }
.rz-shop-item.is-adapted a::after {
  content: " (adapted)";
  font-weight: 400;
  font-size: .8125rem;
  color: var(--ink-soft);
}

/* Actions ---------------------------------------------------------- */

.rz-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.rz-remaining { font-size: .875rem; color: var(--ink-soft); margin-top: .75rem; }

/* Email ------------------------------------------------------------ */

.rz-email {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.rz-email input[type="email"] {
  width: 100%;
  font: inherit;
  padding: .8125rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: .875rem;
}
.rz-consent {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  font-size: .9375rem;
  margin-bottom: .625rem;
  cursor: pointer;
}
.rz-consent input { margin-top: .3rem; flex: none; }
.rz-form-msg { font-size: .9375rem; color: var(--ink-soft); min-height: 1.4em; margin: .75rem 0 0; }

.rz-disclosure {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.rz-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rz * { transition: none !important; animation: none !important; }
}
