/* Torchlit Review - All Who Wander */
:root {
  --ink: #0a0f11;
  --ink-2: #0f171a;
  --panel: #131f23;
  --panel-2: #182a2f;
  --line: rgba(140, 214, 220, 0.16);
  --line-strong: rgba(140, 214, 220, 0.32);
  --text: #ebe5d8;
  --muted: #a9b6b4;
  --teal: #46d9e3;
  --teal-2: #1aa7b4;
  --teal-deep: #0c4c53;
  --ember: #e2552d;
  --ember-2: #f28a5c;
  --gold: #ffd27a;
  --parch: #d9c9a3;
  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--gold);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.wrap--narrow {
  max-width: 860px;
}

/* Reading progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--ember));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 17, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  width: 38px;
  height: 38px;
  color: var(--teal);
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.logo__name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}

.logo__tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--gold);
  background: rgba(70, 217, 227, 0.08);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16.2 V48.5 L28 64.7 L0 48.5 V16.2 Z M28 64.7 V97' fill='none' stroke='%2346d9e3' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 60% at 72% 45%, rgba(26, 214, 230, 0.32), rgba(12, 76, 83, 0.25) 45%, transparent 75%),
    radial-gradient(circle at 12% 88%, rgba(226, 85, 45, 0.18), transparent 30%),
    radial-gradient(4px 4px at 8% 20%, var(--ember) 99%, transparent),
    radial-gradient(4px 4px at 9.4% 20%, var(--ember) 99%, transparent),
    radial-gradient(3px 3px at 90% 14%, var(--ember) 99%, transparent),
    radial-gradient(3px 3px at 91.2% 14%, var(--ember) 99%, transparent),
    radial-gradient(3px 3px at 52% 92%, var(--ember-2) 99%, transparent),
    radial-gradient(3px 3px at 53% 92%, var(--ember-2) 99%, transparent);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker span {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--teal);
}

.kicker span:first-child {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}

.hero__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-shadow: 0 0 40px rgba(70, 217, 227, 0.35);
}

.hero__dek {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--parch);
  margin: 0 0 22px;
  max-width: 34ch;
}

.byline {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 30px;
}

.byline strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--play {
  background: var(--teal);
  color: #04191c;
  box-shadow: 0 10px 30px -10px rgba(70, 217, 227, 0.7);
}

.btn--play:hover {
  background: var(--gold);
  color: #1d1406;
  transform: translateY(-1px);
}

.btn--play svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn--play span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
  font-size: 1.12rem;
}

.btn--play small {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.btn--small {
  min-height: 42px;
  width: 100%;
  font-size: 0.95rem;
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Fact card */
.factcard {
  background: linear-gradient(160deg, rgba(24, 42, 47, 0.92), rgba(12, 20, 23, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.factcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.factcard__icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 40px rgba(70, 217, 227, 0.35);
}

.score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  text-align: right;
}

.score__num {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--gold);
}

.score__of {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--muted);
}

.score__label {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.factcard__name {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 18px 0 12px;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.facts div {
  background: var(--ink-2);
  padding: 10px 12px;
  min-width: 0;
}

.facts dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.factcard__note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Layout: article + sidebar */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 40px;
}

.review {
  max-width: 720px;
  min-width: 0;
}

.chapter {
  margin-bottom: 44px;
}

.chapter::after {
  content: "";
  display: table;
  clear: both;
}

.chapter__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.chapter__num {
  color: var(--ember);
  font-style: italic;
  margin-right: 4px;
}

.review p {
  margin: 0 0 1.2em;
  font-size: 1.14rem;
  line-height: 1.8;
  color: #e3ddd0;
}

.review em {
  color: var(--parch);
}

.dropcap::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 5.2em;
  line-height: 0.8;
  padding: 6px 12px 0 0;
  color: var(--teal);
  text-shadow: 0 0 24px rgba(70, 217, 227, 0.45);
}

.signoff {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.4rem !important;
  color: var(--parch) !important;
}

/* Inline figures */
.inline-fig {
  margin: 8px 0 24px;
  width: 260px;
}

.inline-fig--right {
  float: right;
  margin-left: 32px;
  margin-right: -40px;
}

.inline-fig--left {
  float: left;
  margin-right: 32px;
  margin-left: -40px;
}

.inline-fig__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}

.inline-fig__btn img {
  width: 100%;
  transition: transform 0.4s ease;
}

.inline-fig__btn:hover img {
  transform: scale(1.03);
}

.inline-fig figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  border-left: 2px solid var(--ember);
  padding-left: 10px;
}

/* Pull quote */
.pullquote {
  clear: both;
  margin: 40px 0;
  padding: 30px 0 26px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.pullquote::before {
  content: "\201C";
  display: block;
  height: 2.2rem;
  font-family: var(--serif-display);
  font-size: 5.5rem;
  line-height: 0.9;
  color: var(--ember);
}

.review .pullquote p {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  color: var(--teal);
}

/* Sidebar */
.sidebar {
  position: relative;
}

.sidebar__box {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.sidebar > .sidebar__box:first-child {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar__label {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.sidebar__score {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
}

.sidebar__score span {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.sidebar__line {
  font-style: italic;
  color: var(--parch);
  margin: 10px 0 14px;
  line-height: 1.5;
}

.sidebar__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.sidebar__list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.toc li {
  padding: 4px 0;
}

.toc li::marker {
  color: var(--ember);
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal);
}

/* Generic sections */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section--gallery {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}

.section--guide {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(26, 167, 180, 0.12), transparent 70%), var(--ink);
}

.section__head {
  margin-bottom: 40px;
  max-width: 760px;
}

.section__head h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.section__lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  position: relative;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.9);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.1);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  border-color: var(--teal);
}

/* Verdict */
.verdict {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.procon,
.breakdown {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--ink-2);
}

.procon h3,
.breakdown h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 16px;
}

.procon ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.procon li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}

.procon li:last-child {
  border-bottom: 0;
}

.procon li::before {
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 20px;
  text-align: center;
}

.procon--pro {
  border-top: 3px solid var(--teal);
}

.procon--pro li::before {
  content: "+";
  background: rgba(70, 217, 227, 0.16);
  color: var(--teal);
}

.procon--con {
  border-top: 3px solid var(--ember);
}

.procon--con li::before {
  content: "\2212";
  background: rgba(226, 85, 45, 0.18);
  color: var(--ember-2);
}

.breakdown {
  border-top: 3px solid var(--gold);
}

.bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label val" "track track";
  gap: 6px 10px;
  margin-bottom: 14px;
  font-family: var(--sans);
}

.bars__label {
  grid-area: label;
  font-size: 0.95rem;
}

.bars__val {
  grid-area: val;
  color: var(--gold);
  font-weight: 600;
}

.bars__track {
  grid-area: track;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-2), var(--teal));
}

.breakdown__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--muted);
}

.breakdown__total strong {
  font-family: var(--serif-display);
  font-size: 3rem;
  letter-spacing: 0;
  color: var(--gold);
  line-height: 1;
}

/* Guide */
.tips {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: tip;
}

.tips li {
  counter-increment: tip;
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 31, 35, 0.7);
}

.tips li::before {
  content: counter(tip, upper-roman) ".";
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ember);
  margin-bottom: 6px;
}

.tips h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.tips p {
  margin: 0;
  color: #d8d2c4;
  line-height: 1.6;
}

.builds__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 20px;
}

.builds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.build {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--panel-2), var(--ink-2));
}

.build__tag {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.build h4 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--gold);
}

.build p:last-child {
  margin: 0;
  color: #d8d2c4;
  line-height: 1.6;
}

/* Accordion */
.accordion__item {
  border-bottom: 1px solid var(--line-strong);
}

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

.accordion__item h3 {
  margin: 0;
}

.accordion__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.25;
}

.accordion__btn:hover {
  color: var(--teal);
}

.accordion__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ember-2);
  transition: transform 0.25s ease;
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__btn[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0deg);
}

.accordion__panel {
  padding: 0 4px 22px;
}

.accordion__panel p {
  margin: 0;
  color: #d8d2c4;
  font-size: 1.08rem;
  max-width: 68ch;
}

/* Archive */
.section--archive {
  background: var(--ink-2);
}

.archive {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.archive__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.archive__card:hover {
  color: var(--text);
  border-color: var(--teal);
  transform: translateY(-3px);
}

.archive__issue {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.archive__card h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}

.archive__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.archive__more {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--teal);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 56px 0 32px;
  background: #070b0c;
  font-size: 0.98rem;
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer__name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}

.site-footer__head {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 8px;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  font-size: inherit;
}

.linklike:hover {
  color: var(--gold);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* Lightbox */
.lightbox,
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox__backdrop,
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 7, 0.95);
}

.lightbox__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__fig img {
  max-height: calc(100vh - 140px);
  max-width: min(92vw, 560px);
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 80px rgba(70, 217, 227, 0.2);
}

.lightbox__fig figcaption {
  margin-top: 12px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  color: var(--parch);
  max-width: 560px;
}

.lightbox__count {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.lightbox__btn,
.lightbox__close,
.modal__close {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 26, 0.9);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__btn:hover,
.lightbox__close:hover,
.modal__close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.lightbox__btn {
  top: 40%;
}

.lightbox__btn--prev {
  left: -72px;
}

.lightbox__btn--next {
  right: -72px;
}

.lightbox__close {
  top: -8px;
  right: -72px;
}

/* Modals */
.modal__box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 36px 32px 28px;
}

.modal__box:focus {
  outline: none;
}

.modal__box h2 {
  font-family: var(--serif-display);
  font-size: 2.2rem;
  margin: 0 0 4px;
  padding-right: 48px;
}

.modal__box h3 {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  margin: 20px 0 6px;
  color: var(--teal);
}

.modal__box p {
  margin: 0 0 10px;
  color: #d8d2c4;
}

.modal__meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted) !important;
}

.modal__close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
}

body.is-locked {
  overflow: hidden;
}

/* Cookie consent */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: linear-gradient(180deg, rgba(19, 31, 35, 0.98), rgba(10, 15, 17, 0.99));
  border-top: 2px solid var(--teal-2);
  box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, 0.7);
  max-height: 100vh;
  overflow-y: auto;
}

.consent::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.consent__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0 0 4px;
}

.consent__text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #d8d2c4;
  max-width: 72ch;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn--consent {
  background: var(--teal);
  color: #04191c;
}

.btn--consent:hover {
  background: var(--gold);
  color: #1d1406;
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--text {
  background: transparent;
  color: var(--parch);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-left: 12px;
  padding-right: 12px;
}

.btn--text:hover {
  color: var(--gold);
}

.consent__panel {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.consent__fields {
  flex: 1 1 520px;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 15, 17, 0.6);
}

.toggle-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.toggle-row__text label {
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
}

.toggle-row__text span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch__ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2a3a3e;
  border: 1px solid var(--line-strong);
  transition: background-color 0.2s ease;
}

.switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__ui {
  background: var(--teal-2);
}

.switch input:checked + .switch__ui::after {
  transform: translateX(20px);
}

.switch input:disabled + .switch__ui {
  opacity: 0.6;
}

.switch input:focus-visible + .switch__ui {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 260;
  transform: translate(-50%, 20px);
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--teal-2);
  font-family: var(--sans);
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 1180px) {
  .lightbox__btn--prev {
    left: 8px;
  }

  .lightbox__btn--next {
    right: 8px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }

  .lightbox__frame {
    position: static;
  }

  .lightbox__fig,
  .lightbox__count {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .review {
    margin: 0 auto;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .sidebar__box {
    margin: 0;
  }

  .sidebar > .sidebar__box:first-child {
    position: static;
  }

  .inline-fig--right {
    margin-right: 0;
  }

  .inline-fig--left {
    margin-left: 0;
  }

  .verdict {
    grid-template-columns: 1fr 1fr;
  }

  .breakdown {
    grid-column: 1 / -1;
  }

  .archive {
    grid-template-columns: 1fr 1fr;
  }

  .consent__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .consent__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0a0f11;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 8px 16px 16px;
  }

  .site-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tips,
  .builds {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .consent__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .logo__name {
    font-size: 1.3rem;
  }

  .logo__tag {
    display: none;
  }

  .nav-toggle__label {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .layout {
    padding-top: 48px;
  }

  .review p {
    font-size: 1.06rem;
    line-height: 1.75;
  }

  .inline-fig,
  .inline-fig--right,
  .inline-fig--left {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 8px auto 26px;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .verdict,
  .tips,
  .builds,
  .archive,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .factcard {
    padding: 20px 16px;
  }

  .factcard__icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .score__num {
    font-size: 3.4rem;
  }

  .facts dd {
    font-size: 0.9rem;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .consent__inner {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .consent__title {
    font-size: 1.25rem;
  }

  .consent__text p {
    font-size: 0.92rem;
  }

  .consent__actions .btn {
    flex: 1 1 140px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero__glow {
    background: radial-gradient(ellipse 80% 45% at 60% 70%, rgba(26, 214, 230, 0.28), rgba(12, 76, 83, 0.2) 50%, transparent 80%), radial-gradient(circle at 10% 95%, rgba(226, 85, 45, 0.16), transparent 35%);
  }

  .consent__panel .btn {
    width: 100%;
  }

  .modal__box {
    padding: 28px 20px 20px;
  }

  .lightbox__btn {
    top: auto;
    bottom: 16px;
  }

  .lightbox__fig img {
    max-height: calc(100vh - 190px);
  }
}

@media (max-width: 380px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@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;
  }
}
