/* =====================================================================
   Experiments Quiz ("Which experiment first?"), shared styles for
   index.html, results.html and all-experiments.html. Brandi, 2026-12-01.

   COLOR: this site is a genuinely standalone file set (Hostinger test
   subdomain now, its own domain later), so no host stylesheet sits in
   front of it. Every role below is declared here, written as
   var(--qr-*, #hex) so that if these pages ever move under
   go.reneeshupe.com or WordPress, the host palette takes over and this
   file is not a third place a palette change has to be made.
   Sienna Warmth, checked against brand-standards.md 2026-12-01.

   Contrast, run as math (WCAG):
     body #5C4436 on ivory #FAF2E7 8.1 · soft #6F564A on ivory 6.1
     eyebrow sienna #B0512A on ivory 4.7 · on white 5.2
     eyebrow sienna-dark #8E3F1F on ivory-mid #F0E4D2 5.8
     button: white on #E62945 4.4, so buttons are 19px bold (large text)
     dark band: ivory #F5E9DA on brown #4E3326 9.6 · aqua #7FD9C9 6.9
     dark-band button: white on teal-ink #20685F 6.6
     inline links are Warm Brown with a Watermelon underline, because
     Watermelon Dark on ivory is 3.97 and fails as small text.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --dark:        var(--qr-brown, #4E3326);
  --dark-deep:   var(--qr-brown-deep, #3A251A);
  --aqua:        var(--qr-light-teal, #7FD9C9);
  --ember:       var(--qr-accent, #FF3D57);
  --ember-dk:    var(--qr-accent-dark, #E62945);
  --sienna:      var(--qr-sienna, #B0512A);
  --sienna-dark: var(--qr-sienna-dark, #8E3F1F);
  --teal:        var(--qr-teal, #2C8C82);
  --teal-ink:    var(--qr-teal-ink, #20685F);
  --teal-deep:   var(--qr-teal-deep, #17504A);
  --teal-tint:   var(--qr-teal-tint, #E4F1EE);
  --fog:         var(--qr-fog, #FAF2E7);
  --fog-mid:     var(--qr-fog-mid, #F0E4D2);
  --fog-tint:    var(--qr-fog-tint, #FBF6EE);
  --on-dark:     var(--qr-on-dark, #F5E9DA);
  --on-dark-soft:var(--qr-on-dark-soft, #C9B7A6);
  --text:        var(--qr-body, #5C4436);
  --text-soft:   var(--qr-body-soft, #6F564A);
  --border:      var(--qr-border, #E5D6C2);
  --white:       var(--qr-white, #ffffff);
  --shadow:      0 14px 40px rgba(58,37,26,0.12);
  --display:     var(--qr-font-display, 'Rubik', system-ui, sans-serif);
  --body:        var(--qr-font-body, 'Courier Prime', 'Courier New', monospace);
  --qr-rule:       rgba(176, 81, 42, .34);
  --qr-rule-light: rgba(240, 228, 210, .42);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--dark); font-size-adjust: var(--qr-display-adjust, .42); text-wrap: balance; }
h1 { font-size: clamp(38px, 7vw, 66px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; }
h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; }
p + p { margin-top: 1em; }
a { color: var(--dark); text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ember-dk); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
strong { color: var(--dark); }

.eyebrow {
  display: block; font-family: var(--body); font-weight: 700; font-size: 16px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sienna); margin-bottom: 14px;
}
.inner { max-width: 760px; margin: 0 auto; }
.wrap { max-width: 1100px; margin: 0 auto; }
.section { padding: 88px 20px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 10px 14px; z-index: 10; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 1.1rem 1.6rem; text-align: center;
}
.top-bar-brand { font-family: var(--body); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--fog); }
.top-bar-sep { width: 1px; height: 15px; background: rgba(255,255,255,0.22); }
.top-bar-title { font-family: var(--display); font-size: 1.15rem; color: var(--aqua); font-size-adjust: var(--qr-display-adjust, .42); }

/* ── BUTTONS ──
   19px bold white on Watermelon Dark: 4.4:1, which passes as large text. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 30px; border: 0; border-radius: 999px;
  background: var(--ember-dk); color: var(--white); font-family: var(--body);
  font-size: 19px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer; box-shadow: 0 10px 24px rgba(230,41,69,0.22);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-teal { background: var(--teal-ink); box-shadow: 0 0 0 2px var(--aqua); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost {
  background: transparent; color: var(--dark); box-shadow: inset 0 0 0 2px var(--dark);
}
.btn-ghost:hover { background: var(--dark); color: var(--white); }

/* ── THE DIVIDER (two-circle mark, from quiet-rebel-divider.css) ── */
hr {
  border: 0; background-color: transparent; width: 100%; height: 30px; margin: 3.5rem auto;
  position: relative; overflow: visible; background-repeat: no-repeat; background-position: center; background-size: 30px 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='16 25 84 70'%3E%3Cdefs%3E%3CclipPath id='q'%3E%3Ccircle cx='44' cy='53' r='28'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='44' cy='53' r='28' fill='%23B0512A'/%3E%3Ccircle cx='72' cy='67' r='28' fill='%232C8C82'/%3E%3Cg clip-path='url(%23q)'%3E%3Ccircle cx='72' cy='67' r='28' fill='%2317504A'/%3E%3C/g%3E%3C/svg%3E");
}
hr::before, hr::after { content: ""; position: absolute; top: 50%; height: 1px; width: calc(50% - 28px); }
hr::before { left: 0; background-image: linear-gradient(to right, transparent, var(--qr-rule)); }
hr::after { right: 0; background-image: linear-gradient(to left, transparent, var(--qr-rule)); }
hr.on-dark, .on-dark hr {
  --qr-rule: var(--qr-rule-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='16 25 84 70'%3E%3Cdefs%3E%3CclipPath id='q'%3E%3Ccircle cx='44' cy='53' r='28'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='44' cy='53' r='28' fill='%23F0E4D2'/%3E%3Ccircle cx='72' cy='67' r='28' fill='%237FD9C9'/%3E%3Cg clip-path='url(%23q)'%3E%3Ccircle cx='72' cy='67' r='28' fill='%232C8C82'/%3E%3C/g%3E%3C/svg%3E");
}
hr.is-small { height: 22px; background-size: 22px 22px; margin-block: 2.25rem; }
hr.is-small::before, hr.is-small::after { width: calc(50% - 21px); }
hr.is-large { height: 42px; background-size: 42px 42px; margin-block: 4.5rem; }
hr.is-large::before, hr.is-large::after { width: calc(50% - 36px); }

/* ── DARK HERO BAND (radial glow, never a flat fill) ── */
.glow-band {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(127,217,201,0.16), transparent 60%),
    radial-gradient(70% 130% at 92% 100%, rgba(176,81,42,0.38), transparent 60%),
    var(--dark);
}
.glow-band h1, .glow-band h2, .glow-band h3, .glow-band strong { color: var(--white); }
.glow-band .eyebrow { color: var(--aqua); }
.glow-band a:not(.btn) { color: var(--white); }

/* ── DEVICE NOTE ── */
.device-note {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--teal-tint); border: 2px dashed rgba(32,104,95,0.45); border-radius: 14px;
  padding: 20px 22px; font-size: 17px; color: var(--text);
}
.device-note .dn-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; color: var(--teal-ink);
}
.device-note strong { color: var(--teal-deep); }

/* ── STEP CHECKBOXES (real inputs, real labels) ── */
.steps { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.step label {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  min-height: 48px; padding: 9px 12px; border-radius: 12px; cursor: pointer;
  background: var(--fog-tint); border: 1px solid var(--border); font-size: 16px; line-height: 1.5;
  transition: background .15s, border-color .15s;
}
.step label:hover { border-color: var(--teal); }
.step input {
  appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; cursor: pointer;
  border: 2px solid var(--teal-ink); border-radius: 8px; background: var(--white);
  display: grid; place-items: center; transition: background .15s;
}
.step input::after {
  content: ""; width: 8px; height: 14px; border: solid var(--white); border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -2px); opacity: 0;
}
.step input:checked { background: var(--teal-ink); }
.step input:checked::after { opacity: 1; }
.step input:checked + span { color: var(--text-soft); }
.step label:has(input:checked) { background: var(--teal-tint); border-color: rgba(32,104,95,0.35); }

/* ── EXPERIMENT CARD ── */
.exp-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 24px; box-shadow: var(--shadow); position: relative;
}
.exp-card h2, .exp-card h3 { margin-bottom: 10px; }
.exp-desc { font-size: 17px; color: var(--text); }
.exp-label {
  display: inline-block; margin: 2px 0 14px; padding: 8px 14px; border-radius: 10px;
  background: var(--fog-mid); color: var(--text); font-size: 16px; line-height: 1.5;
}
.exp-label::before { content: "\2726"; color: var(--sienna-dark); margin-right: 8px; }

/* ── FOOTER (the standard simple footer) ── */
.site-footer {
  background: var(--dark-deep); color: rgba(250,242,231,0.86); text-align: center;
  padding: 2.75rem 1.5rem; font-family: var(--body); font-size: 15px; line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .foot-bio { max-width: 46ch; margin: 0 auto; font-size: 16px; color: var(--on-dark); }
.site-footer .foot-brand { font-family: var(--display); font-size: 1.25rem; color: var(--fog); margin-bottom: .25rem; font-size-adjust: var(--qr-display-adjust, .42); }
.site-footer .foot-legal { margin-top: 1rem; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(250,242,231,0.78); }
.site-footer .foot-links { margin-top: .5rem; display: flex; gap: .2rem 1.2rem; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--aqua); text-decoration: none; display: inline-block; padding: 12px 4px; }
.site-footer a:hover { text-decoration: underline; color: var(--aqua); }

/* ── PLACEHOLDER (copy still needed; never ships as is) ── */
.placeholder {
  border: 2px dashed var(--sienna); background: var(--fog-tint); color: var(--sienna-dark);
  border-radius: 12px; padding: 18px 20px; font-size: 16px; font-weight: 700;
}

/* ── REVEAL (switched on by JS only, never under reduced motion) ── */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .section { padding: 112px 32px; }
  .exp-card { padding: 40px 44px; }
}
@media (max-width: 600px) {
  hr { margin-block: 2.5rem; }
  .top-bar { padding: .9rem 1rem; }
  .top-bar-sep { display: none; }
  .device-note { grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; font-size: 16px; line-height: 1.6; }
  .device-note .dn-icon { width: 32px; height: 32px; }
  .device-note .dn-icon svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
