/* Both concepts share the same dimensions so a door stays in place when switching. */
:root {
  --ink: #1a3046;
  --paper: #f5f2e9;
  --wine: #715623;
  --line: #a58b55;
  --subtle: #3e5467;
  --chrome: #f9f7ef;
  --soft: #eee3c7;
}
:root[data-concept="b"] {
  color-scheme: dark;
  --ink: #fbefce;
  --paper: #191a19;
  --wine: #f4ce7a;
  --line: #a58745;
  --subtle: #e0d9c3;
  --chrome: #191e1c;
  --soft: #5c2026;
}
body { color: var(--ink); background: var(--paper); }
.review-header {
  position: sticky; top: 0; z-index: 4;
  background: var(--chrome); border-bottom: 1px solid var(--line);
}
.masthead { min-height: 60px; }
.switcher { display: flex; gap: .18rem; border: 1px solid var(--line); padding: 2px; border-radius: 2rem; }
.switcher a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 36px;
  padding: .35rem .85rem; border-radius: inherit; text-decoration: none;
  font-size: .78rem; font-weight: 600; color: var(--ink);
}
.switcher a[aria-current] { background: var(--ink); color: var(--chrome); }
.switcher i { width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid #a39470; }
[data-choice="a"] i { background: linear-gradient(135deg,#ece1c4,#9ab7cf 70%); }
[data-choice="b"] i { background: linear-gradient(135deg,#932e38 50%,#253029 51%); }
.wordmark { letter-spacing: -.045em; }
.hero, .doors, .reading { scroll-margin-top: 66px; }
.hero {
  background:
    radial-gradient(ellipse at 83% 21%,#f9f0d5 0 5%, transparent 26%),
    radial-gradient(ellipse at 55% 10%,#b8ccdf 0 9%,transparent 45%),
    radial-gradient(ellipse at 84% 88%,#849db7,transparent 40%),
    linear-gradient(120deg,#f8f3e4 5%,#e0e9ef 52%,#c9d7e1 75%,#f3e9d4);
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; padding-block: clamp(2.25rem,3.7vw,3.6rem); pointer-events: none; }
.hero h1 { font-weight: 400; }
.hero h1 em { color: var(--ink); }
.dateline, .timer-heading { color: var(--wine); }
.digits strong { color: var(--ink); }
.digits span, .zone { color: var(--subtle); }
.countdown { border-color: var(--line); }
.artwork {
  position: absolute; right: max(2%,calc((100vw - 1260px)/2)); top: 0; bottom: 0;
  width: min(51%,680px); isolation: isolate; pointer-events: none;
}
.orbit {
  position: absolute; width: 82%; aspect-ratio: 1; max-width: 480px;
  right: 3%; bottom: -16%; border-radius: 50%; border: 1px solid #c3a569;
  background: radial-gradient(circle at 58% 35%,#fff8e6,#f7e9ce80 52%,#b5c6d5 84%);
  box-shadow: 0 0 0 8px #fff7df55, 0 0 0 9px #bba271a8, inset 8px 2px 30px #fff9e9;
}
.portrait {
  position: absolute; right: 0; bottom: 0; height: 87%; aspect-ratio: 710 / 515;
  background: url("watercolor.jpg") 100% 53.6% / 225.35% auto no-repeat;
  mask-image: radial-gradient(ellipse 23% 38% at 77% 33%,black 71%,transparent 99%),
    radial-gradient(ellipse 24% 32% at 46% 53%,black 67%,transparent 99%),
    radial-gradient(ellipse 71% 57% at 68% 95%,black 68%,transparent 100%);
}
.star { position: absolute; line-height: 1; color: var(--wine); text-shadow: 0 0 8px var(--soft); }
.s-one { right: 3%; top: 8%; font-size: 2rem; }
.s-two { left: 15%; top: 28%; font-size: 1.7rem; }
.s-three { left: 4%; bottom: 19%; font-size: 1rem; }
.doors { position: relative; }
.flourish { color: var(--wine); }
.flourish::before { background: var(--line); }
.grid { gap: clamp(.6rem,1.15vw,1.1rem); }
.door {
  padding: 5px; border: 1px solid var(--line);
  border-radius: 6rem 6rem 3px 3px;
  color: var(--ink);
  background: linear-gradient(145deg,#fbf7e9 20%,#e7edf1 65%,#ccd9e4);
}
.door:nth-child(3n+1) { background: linear-gradient(150deg,#f7f1df,#edf1f2 58%,#bfcedd); }
.door:nth-child(3n+2) { background: linear-gradient(150deg,#fdf8ee,#ece6d8 58%,#d2deea); }
.door-inner {
  border-color: color-mix(in srgb,var(--line) 65%,transparent);
  border-radius: inherit; text-align: center; align-items: center;
  min-height: 12.5rem; padding: 1.1rem .5rem .8rem;
}
.door-top { justify-content: center; gap: .45rem; font-size: .6rem; color: var(--subtle); }
.door-star { position: static; font-size: .85rem; color: var(--wine); }
.number { margin: .15rem 0 0; }
.door h3 { max-width: 16ch; margin: auto 0 .35rem; }
.door-status { color: var(--subtle); }
footer { border-color: var(--line); }
[data-concept="b"] body {
  --weave: transparent 0 23px,#77283060 23px 31px,transparent 31px 35px,#b4743942 35px 36px,transparent 36px 74px,#a5353c55 74px 77px,transparent 77px 82px;
  background: repeating-linear-gradient(90deg,var(--weave)),repeating-linear-gradient(0deg,var(--weave)),#141a18;
}
[data-concept="b"] .hero {
  background: linear-gradient(90deg,#171b19 0%,#171b19ed 30%,transparent 66%),
    repeating-linear-gradient(90deg,var(--weave)),repeating-linear-gradient(0deg,var(--weave)),#22191a;
}
[data-concept="b"] .hero h1 em { color: #f4d58f; }
[data-concept="b"] .orbit {
  width: 66%; right: 7%; height: 109%; bottom: -14%; border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 56% 27%,#713339,#402327 48%,#202824);
  box-shadow: 0 0 0 6px #1c2320,0 0 0 7px #a88b50,inset 0 0 0 5px #593c32;
}
[data-concept="b"] .portrait {
  right: 8%; height: 95%; aspect-ratio: 436/576;
  background: url("tartan.jpg") 100% 18.4% / 366.97% auto no-repeat;
  mask-image: none; border-radius: 48% 48% 0 0;
  border: 1px solid var(--line); box-shadow: 0 0 0 4px #252821;
}
[data-concept="b"] .door {
  background: linear-gradient(145deg,#17231f,#222c26 68%,#27312a);
  box-shadow: inset 0 0 0 2px #151715;
}
[data-concept="b"] .number { color: #f4d48a; text-shadow: 2px 2px #832c32; }
[data-concept="b"] .door-star { color: #d9ac62; }
[data-concept="b"] .section-heading h2, [data-concept="b"] footer span { background: #191d1a; }
[data-concept="b"] .skip { color: #19201d; }
[data-concept="b"] .reading {
  background: var(--chrome);
  border-inline: 1px solid var(--line);
  padding-inline: clamp(1rem, 4vw, 3rem);
}
[data-concept="a"] .door { border-radius: 3px; }
[data-concept="a"] .door-inner { border-radius: 6rem 6rem 3rem 3rem; }
@media (max-width: 800px) {
  .hero h1 { font-size: clamp(2.7rem,6.5vw,4rem); }
  .hero .intro { max-width: 45%; }
  .artwork { right: 0; width: 48%; }
  .portrait { height: auto; width: 104%; }
  [data-concept="b"] .portrait { width: 77%; height: auto; }
}
@media (max-width: 610px) {
  .masthead { min-height: 54px; }
  .switcher a { min-height: 36px; padding-inline: .58rem; font-size: .71rem; }
  .hero-inner { padding-block: 1.45rem 1.1rem; }
  .hero h1 { max-width: 63%; font-size: clamp(2.1rem,6.9vw,2.8rem); }
  .hero .intro { max-width: 55%; font-size: .83rem; }
  .countdown { width: fit-content; max-width: 100%; }
  .artwork { width: 43%; top: 20%; bottom: auto; height: 49%; }
  .orbit { width: 90%; right: 3%; bottom: 1%; }
  .portrait { width: 106%; bottom: 0; }
  [data-concept="b"] .orbit { bottom: 0; height: 100%; width: 83%; }
  [data-concept="b"] .portrait { width: auto; height: 100%; max-width: 93%; right: 3%; }
  .s-one { right: 5%; top: -13%; font-size: 1.3rem; }
  .s-two { left: 3%; top: 5%; font-size: 1rem; }
  .s-three { display: none; }
  .door-inner { min-height: 10.7rem; padding-top: .9rem; }
}
@media (max-width: 350px) {
  .switcher i { display: none; }
  .wordmark { font-size: 1.4rem; }
}
