:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #aebdd0;
  --panel: #0d2038;
  --line: #284762;
  --orange: #ff8738;
  --blue: #79b4ff;
  --page: #061525;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 92% 0%, #173e69 0, var(--page) 38rem), var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 96px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.eyebrow { color: var(--orange); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 10px 0 0; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 0.92; letter-spacing: -0.06em; }
.intro { max-width: 430px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.weeks { display: grid; gap: 28px; }
.week-row { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgb(11 29 49 / 0.84); box-shadow: 0 28px 80px rgb(0 0 0 / 0.23); backdrop-filter: blur(10px); }
.week-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; background: rgb(255 255 255 / 0.025); cursor: pointer; list-style: none; transition: background 160ms ease; }
.week-heading::-webkit-details-marker { display: none; }
.week-heading:hover { background: rgb(255 255 255 / 0.055); }
.week-row[open] > .week-heading { border-bottom: 1px solid var(--line); }
.week-title { font-size: 0.8rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.week-date { display: flex; align-items: center; gap: 14px; }
.week-heading time { color: var(--muted); font-size: 0.85rem; }
.week-chevron { width: 10px; height: 10px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform 160ms ease; }
.week-row[open] .week-chevron { transform: rotate(225deg); }
.week-posts { display: grid; gap: 1px; }

.review-card { display: grid; grid-template-columns: minmax(330px, 0.86fr) minmax(340px, 1.14fr); gap: 46px; padding: 32px; }
.review-card + .review-card { border-top: 1px solid var(--line); }
.carousel-panel { min-width: 0; }
.carousel-frame { position: relative; width: min(100%, 430px); margin: 0 auto; overflow: hidden; border-radius: 18px; background: #071625; box-shadow: 0 20px 52px rgb(0 0 0 / 0.34); outline: none; touch-action: pan-y; }
.carousel-frame:focus-visible { box-shadow: 0 0 0 3px var(--blue), 0 20px 52px rgb(0 0 0 / 0.34); }
.slides { position: relative; aspect-ratio: 4 / 5; }
.carousel-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(4%); transition: opacity 180ms ease, transform 220ms ease; }
.carousel-slide.is-active { opacity: 1; transform: translateX(0); }
.nav-button { position: absolute; top: 50%; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 50%; background: rgb(5 18 32 / 0.78); color: white; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(8px); transition: background 150ms ease, transform 150ms ease; }
.nav-button:hover { background: var(--orange); color: #101a25; transform: translateY(-50%) scale(1.04); }
.nav-button svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.nav-button.previous { left: 14px; }
.nav-button.next { right: 14px; }
.slide-count { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px; background: rgb(5 18 32 / 0.76); font-size: 0.74rem; font-weight: 800; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #45627f; cursor: pointer; transition: width 160ms ease, background 160ms ease; }
.dot.is-active { width: 25px; background: var(--orange); }

.review-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 0; }
.meta { margin-bottom: 10px; color: var(--blue); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 0.98; letter-spacing: -0.045em; }
.caption-panel { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / 0.025); }
.caption-panel summary { padding: 16px 18px; color: var(--ink); font-size: 0.84rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.caption-panel[open] summary { border-bottom: 1px solid var(--line); }
.caption-text { max-height: 260px; margin: 0; padding: 18px; overflow: auto; color: var(--muted); font-family: inherit; font-size: 0.96rem; line-height: 1.65; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--orange); color: #0b1725; font-size: 0.86rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.text-link { padding: 10px 4px; color: var(--muted); font-size: 0.84rem; font-weight: 750; text-underline-offset: 4px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; padding: 13px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: #0b1725; font-size: 0.86rem; font-weight: 850; box-shadow: 0 16px 50px rgb(0 0 0 / 0.35); }
footer { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }

@media (max-width: 820px) {
  main { width: min(100% - 24px, 620px); padding-top: 34px; }
  .page-header { display: block; margin-bottom: 34px; }
  .intro { margin-top: 20px; }
  .review-card { grid-template-columns: 1fr; gap: 30px; padding: 18px; }
  .review-copy { padding: 0 4px 8px; }
  h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .week-heading { padding: 15px 17px; }
  .carousel-frame { border-radius: 13px; }
  .nav-button { width: 40px; height: 40px; }
  .actions { align-items: stretch; flex-direction: column; width: 100%; }
  .button, .text-link { width: 100%; text-align: center; }
}

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