/* Rill & Ember — editorial soap & candle boutique (fiction demo) */
:root {
  --re-stone: #f5f0ea;
  --re-paper: #faf7f2;
  --re-panel: #ffffff;
  --re-ink: #1a1520;
  --re-plum: #2d1f33;
  --re-mute: #5c5348;
  --re-rust: #a0532b;
  --re-copper: #b87333;
  --re-cobalt: #2e4a6e;
  --re-rule: #ddd5c8;
  --re-focus: #b87333;
  --re-max: 75rem;
  --re-serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --re-sans: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--re-stone);
  color: var(--re-ink);
  font: 1.125rem/1.65 var(--re-sans);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--re-plum); }

a:focus-visible, button:focus-visible, summary:focus-visible, .re-cta:focus-visible {
  outline: 3px solid var(--re-focus);
  outline-offset: 3px;
}

.re-footer a:focus-visible { outline-color: var(--re-copper); }

.re-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--re-copper);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

.re-skip {
  position: absolute; left: 1rem; top: 1rem;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.re-skip:focus {
  width: auto; height: auto; clip: auto; z-index: 100;
  background: #fff; padding: 0.75rem 1rem; min-height: 44px;
  display: inline-flex; align-items: center;
}

.re-utility {
  background: var(--re-plum);
  color: #e8e0d6;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 0.5rem 1rem;
}

.re-masthead {
  border-bottom: 2px solid var(--re-copper);
  padding: 0.85rem max(1rem, calc((100vw - var(--re-max)) / 2));
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  background: var(--re-paper);
}

.re-brand {
  font-family: var(--re-serif);
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  font-weight: 700; text-decoration: none; color: var(--re-ink);
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  line-height: 1.12;
}
.re-brand span {
  display: block; font-family: var(--re-sans);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--re-rust);
  line-height: 1.35;
}

.re-nav-wrap { width: 100%; }
.re-nav summary, .re-nav a {
  min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.5rem; font-size: 0.72rem; font-weight: 600; text-decoration: none;
}

.re-nav-mobile { position: relative; width: 100%; }
.re-nav-mobile__summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0.35rem 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.72rem; border: 1px solid var(--re-plum);
  background: var(--re-stone); width: 100%; justify-content: space-between;
}
.re-nav-mobile__summary::-webkit-details-marker { display: none; }

.re-nav-mobile__bars {
  width: 1.15rem; height: 2px; background: var(--re-ink);
  position: relative; flex-shrink: 0;
  box-shadow: 0 -5px 0 var(--re-ink), 0 5px 0 var(--re-ink);
}
.re-nav-mobile[open] .re-nav-mobile__bars { background: transparent; box-shadow: none; }
.re-nav-mobile[open] .re-nav-mobile__bars::before,
.re-nav-mobile[open] .re-nav-mobile__bars::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 2px; background: var(--re-ink);
}
.re-nav-mobile[open] .re-nav-mobile__bars::before { transform: rotate(45deg); }
.re-nav-mobile[open] .re-nav-mobile__bars::after { transform: rotate(-45deg); }

.re-nav-mobile__open { display: inline; }
.re-nav-mobile__close { display: none; }
.re-nav-mobile[open] .re-nav-mobile__open { display: none; }
.re-nav-mobile[open] .re-nav-mobile__close { display: inline; color: var(--re-copper); }
.re-nav-mobile[open] .re-nav-mobile__summary {
  border-color: var(--re-copper); background: #ebe4da;
}

.re-nav .re-drawer {
  display: none; position: absolute; z-index: 20;
  top: calc(100% + 0.35rem); left: 0; right: 0;
  background: var(--re-panel); border: 1px solid var(--re-plum);
  padding: 0.35rem; box-shadow: 0 10px 28px rgba(26, 21, 32, 0.14);
}
.re-nav-mobile[open] .re-drawer { display: grid; }
.re-drawer a { width: 100%; border-bottom: 1px solid rgba(26, 21, 32, 0.08); }
.re-drawer a:last-child { border-bottom: 0; }
.re-desktop-nav { display: none; flex-wrap: wrap; gap: 0.05rem; justify-content: flex-end; }

@media (min-width: 1024px) {
  .re-nav-wrap { width: auto; flex: 1; }
  .re-nav-mobile { display: none; }
  .re-desktop-nav { display: flex; }
}

.re-page {
  width: min(100% - 2rem, var(--re-max));
  margin: 0 auto; padding-bottom: 2.5rem;
}

.re-label {
  font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--re-cobalt); margin: 0 0 0.5rem;
}

h1, h2, h3 {
  font-family: var(--re-serif);
  line-height: 1.1; font-weight: 700; margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); max-width: 16ch; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }

.re-lede { font-size: 1.08rem; max-width: 42rem; color: var(--re-mute); }
.re-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }

.re-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.35rem;
  background: var(--re-copper); color: var(--re-ink);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--re-copper);
}
.re-cta--ghost { background: transparent; color: var(--re-ink); border-color: var(--re-plum); }
.re-cta--ink { background: var(--re-plum); border-color: var(--re-plum); color: #f0ebe4; }
.re-cta--cobalt { background: var(--re-cobalt); border-color: var(--re-cobalt); color: #f0ebe4; }

.re-hero {
  width: 100%; max-width: 100%; margin: 0;
  padding: 1.5rem 1rem 2rem;
  border-bottom: 1px solid var(--re-rule);
  background:
    linear-gradient(135deg, var(--re-paper) 0%, var(--re-stone) 55%),
    radial-gradient(circle at 92% 12%, rgba(46, 74, 110, 0.12), transparent 40%);
  overflow-x: clip;
}

@media (min-width: 920px) {
  .re-hero {
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    padding: 2.25rem 1rem 3rem;
  }
}

.re-hero__grid {
  display: grid; gap: 1.5rem;
  width: min(100%, var(--re-max)); margin: 0 auto;
  align-items: end;
}

@media (min-width: 920px) {
  .re-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .re-hero__copy h1 { max-width: 11ch; }
}

.re-hero__frame {
  margin: 0;
  border: 1px solid var(--re-ink);
  box-shadow: 6px 8px 0 var(--re-copper);
  background: var(--re-panel);
}
.re-hero__frame img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
}

.re-hero__cap {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem; color: var(--re-mute);
  border-top: 3px solid var(--re-copper);
}

.re-copper-rule { margin: 1.25rem auto 0; max-width: 42rem; opacity: 0.92; }

.re-page-title {
  padding: 2rem 0 1.35rem;
  border-bottom: 1px solid var(--re-rule);
  margin-bottom: 1.75rem;
}
.re-page-title--plum {
  background: var(--re-plum);
  color: #f0ebe4;
  padding: 2rem 1.25rem;
  margin: 0 -1rem 1.75rem;
  width: calc(100% + 2rem);
  border-bottom: 3px solid var(--re-copper);
}
.re-page-title--plum .re-label { color: #c9d4e4; }
.re-page-title--plum .re-lede { color: #d8d0c6; }

@media (min-width: 720px) {
  .re-page-title--plum {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding-left: max(1rem, calc((100vw - var(--re-max)) / 2));
    padding-right: max(1rem, calc((100vw - var(--re-max)) / 2));
  }
}

.re-band { padding: 1.75rem 0; border-bottom: 1px solid var(--re-rule); }
.re-band--flush { border-bottom: 0; }
.re-band--panel {
  background: var(--re-panel);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--re-rule);
  margin: 1.5rem 0;
}
.re-band--plum {
  background: rgba(45, 31, 51, 0.92);
  color: #f0ebe4;
  padding: 1.75rem 1.25rem;
  border: none;
  margin: 1.5rem 0;
}
.re-band--plum h2, .re-band--plum h3 { color: #faf7f2; }
.re-band--plum p, .re-band--plum li { color: #d8d0c6; }
.re-band--plum a.re-cta--ghost { color: #f0ebe4; border-color: var(--re-copper); }

.re-editorial { padding: 1.75rem 0; }
.re-editorial--rule { border-top: 2px solid var(--re-copper); margin-top: 0.5rem; }
.re-span-full { grid-column: 1 / -1; }
.re-figure-block { margin: 1rem 0 0; }
.re-caption-muted { margin: 0.75rem 0 0; color: var(--re-mute); font-size: 0.95rem; }

.re-product-grid {
  display: grid; gap: 1rem; margin-top: 1.25rem;
}
@media (min-width: 640px) { .re-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .re-product-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.re-product {
  background: var(--re-panel);
  border: 1px solid var(--re-ink);
  display: flex; flex-direction: column; min-height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.re-product__stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--re-copper), var(--re-rust));
}
.re-product__body {
  padding: 1rem 1rem 1.15rem; flex: 1;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.re-product__tag {
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--re-cobalt); margin: 0;
}
.re-product p { margin: 0; font-size: 0.95rem; color: var(--re-mute); }
.re-product__link {
  margin-top: 0.65rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--re-rust);
}

.re-split {
  display: grid; gap: 1.5rem; align-items: center; padding: 1.75rem 0;
}
@media (min-width: 900px) {
  .re-split { grid-template-columns: 1fr 1fr; }
  .re-split--flip figure { order: -1; }
}

.re-split figure { margin: 0; }
.re-split img {
  width: 100%; object-fit: cover;
  border: 1px solid var(--re-ink);
  box-shadow: 4px 5px 0 rgba(46, 74, 110, 0.35);
}

.re-mood-rail {
  display: grid; gap: 0.75rem; margin-top: 1rem;
}
@media (min-width: 720px) { .re-mood-rail { grid-template-columns: repeat(2, 1fr); } }

.re-mood {
  border-left: 4px solid var(--re-copper);
  padding: 0.85rem 0 0.85rem 1rem;
  background: var(--re-paper);
}
.re-mood h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.re-mood p { margin: 0; font-size: 0.92rem; color: var(--re-mute); }

.re-scent-columns {
  display: grid; gap: 1rem; margin-top: 1rem;
}
@media (min-width: 800px) { .re-scent-columns { grid-template-columns: repeat(3, 1fr); } }

.re-scent-col {
  padding: 1rem;
  border: 1px solid var(--re-rule);
  background: var(--re-panel);
  border-top: 3px solid var(--re-cobalt);
}
.re-scent-col h3 { font-size: 1rem; }
.re-scent-col ul {
  margin: 0.5rem 0 0; padding-left: 1.1rem;
  color: var(--re-mute); font-size: 0.92rem;
}

.re-gift-lanes {
  display: grid; gap: 1rem; margin-top: 1.25rem;
}
.re-gift-lane {
  display: grid; gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--re-plum);
  background: var(--re-paper);
}
@media (min-width: 720px) {
  .re-gift-lane { grid-template-columns: 6rem 1fr; align-items: start; }
}
.re-gift-lane__mark {
  font-family: var(--re-serif);
  font-size: 2rem; line-height: 1;
  color: var(--re-copper);
}

.re-values {
  display: grid; gap: 1rem; margin-top: 1rem;
}
@media (min-width: 800px) { .re-values { grid-template-columns: repeat(3, 1fr); } }
.re-values article { border-top: 3px solid var(--re-cobalt); padding-top: 0.85rem; }

.re-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: 0.85rem;
}
.re-list li {
  padding-left: 1.1rem; border-left: 2px solid var(--re-copper);
  color: var(--re-mute);
}

.re-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.re-pill {
  border: 1px solid var(--re-rule); padding: 0.45rem 0.75rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--re-panel);
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--re-plum);
}

.re-demo-form {
  display: grid; gap: 1rem; max-width: 32rem; margin-top: 1rem;
}
.re-demo-form label {
  display: block; font-weight: 700; font-size: 0.875rem; margin-bottom: 0.35rem;
}
.re-demo-form input, .re-demo-form textarea, .re-demo-form select {
  width: 100%; min-height: 48px; padding: 0.55rem 0.65rem;
  border: 1px solid var(--re-rule);
  background: #ddd6cb; font: inherit; color: var(--re-mute);
  pointer-events: none;
}
.re-demo-form textarea { min-height: 7rem; resize: vertical; }

.re-form-note {
  font-size: 0.85rem; color: var(--re-mute); margin: 0.5rem 0 0;
  border-left: 3px solid var(--re-rust);
  padding-left: 0.75rem;
}

.re-placeholders {
  display: grid; gap: 0.65rem; margin-top: 1rem;
  font-size: 0.95rem; color: var(--re-mute);
}
.re-placeholders dt {
  font-weight: 700; color: var(--re-ink);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}

.re-aside-note {
  font-size: 0.875rem; color: var(--re-mute);
  padding: 0.85rem 1rem;
  border: 1px dotted var(--re-cobalt);
  margin: 1rem 0;
}

.re-footer {
  background: var(--re-plum);
  color: #e8e0d6;
  padding: 2rem 1rem 2.5rem;
  margin-top: 2rem;
}
.re-footer a { color: #f0ebe4; }
.re-disclosure {
  font-size: 0.8125rem; max-width: 42rem;
  margin: 0 auto 1.25rem; text-align: center; color: #c4b8ae;
}
.re-footer-nav__label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; margin: 0 0 0.5rem; color: var(--re-copper);
}
.re-footer-nav__list {
  list-style: none; padding: 0; margin: 0 auto 1.25rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem; max-width: 36rem;
}
@media (min-width: 720px) {
  .re-footer-nav__list { grid-template-columns: repeat(4, 1fr); }
}
.re-footer-nav__list a {
  display: flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 0.8125rem; text-decoration: none;
}
.re-colophon {
  text-align: center; font-size: 0.75rem;
  color: #a89488; margin: 0;
}

/* WordPress block alignment helpers */
.wp-block-group.re-page { width: min(100% - 2rem, var(--re-max)); }
