@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto+Mono:wght@500&display=swap");

:root {
  --bg: #061b2d;
  --bg-2: #0a2236;
  --bg-3: #102d42;
  --panel: rgba(8, 32, 51, 0.92);
  --panel-soft: rgba(12, 43, 64, 0.78);
  --border: rgba(146, 177, 205, 0.28);
  --border-strong: rgba(214, 175, 55, 0.72);
  --text: #f5f5f5;
  --muted: #bdc9d3;
  --subtle: #7f95a8;
  --accent: #d6af37;
  --accent-2: #f3c553;
  --shadow: rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1292px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 0%, rgba(22, 54, 80, 0.96), transparent 37rem),
    linear-gradient(180deg, #061523 0%, var(--bg) 42%, #071928 100%);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  min-height: 66px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 28px);
  background: rgba(5, 19, 31, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 1rem;
}

.brand img {
  width: 34px;
  height: 34px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 6vw, 72px);
  font-weight: 600;
  color: #f4f7f8;
}

.top-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.share-link {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-weight: 600;
}

main {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.hero-shell {
  padding: 34px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lede {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 12px;
}

.summary-panel,
.filter-bar,
.notes-panel,
.carousel-panel,
.gallery-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(7, 28, 45, 0.84));
}

.summary-panel {
  min-height: 92px;
  padding: 18px 22px 16px 30px;
  position: relative;
}

.panel-rule {
  position: absolute;
  left: 14px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: var(--accent);
}

.summary-panel h2,
.notes-panel h2,
.gallery-section h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.summary-panel p {
  margin-bottom: 5px;
  color: #f2f5f7;
}

.summary-panel ul,
.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-panel li {
  position: relative;
  padding-left: 16px;
  color: #f2f5f7;
  line-height: 1.65;
}

.summary-panel li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 17px 18px;
}

.filter-bar h2 {
  margin: 0;
  font-size: 1.08rem;
}

.filter-bar .eyebrow {
  margin-bottom: 3px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(4, 24, 40, 0.84);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(214, 175, 55, 0.12);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 12px;
  align-items: stretch;
  padding-top: 12px;
}

.carousel-panel {
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 330px;
  height: clamp(420px, 46vw, 530px);
  background: #06131e;
  overflow: hidden;
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-button,
.rail-button {
  border: 1px solid rgba(146, 177, 205, 0.34);
  border-radius: var(--radius);
  background: rgba(4, 24, 40, 0.88);
  color: var(--accent-2);
  cursor: pointer;
}

.nav-button {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 64px;
  transform: translateY(-50%);
}

.nav-button.previous {
  left: 12px;
}

.nav-button.next {
  right: 12px;
}

.nav-button span,
.rail-button span {
  display: block;
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  margin: auto;
}

.previous span,
.rail-prev span {
  transform: rotate(225deg);
}

.next span,
.rail-next span {
  transform: rotate(45deg);
}

.slide-count {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 7px;
  background: rgba(4, 20, 34, 0.94);
  border: 1px solid rgba(146, 177, 205, 0.26);
  font-size: 1.22rem;
  font-weight: 600;
}

.slide-count strong {
  color: var(--accent-2);
}

.thumb-strip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 9px;
  align-items: center;
  padding: 12px 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(6, 26, 43, 0.96);
}

.rail-button {
  width: 38px;
  height: 74px;
}

.rail-button span {
  width: 12px;
  height: 12px;
  border-width: 2px;
}

.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: 0 0 120px;
  height: 84px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #082033;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-active {
  border-color: var(--accent);
}

.thumb.is-active::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.thumb[data-status="failure"]::before,
.gallery-card[data-status="failure"]::before {
  content: "No green markup";
  position: absolute;
  z-index: 2;
  left: 7px;
  top: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(6, 19, 30, 0.88);
  color: #f0b7a6;
  font-size: 0.68rem;
  font-weight: 700;
}

.notes-panel {
  padding: 24px 24px 22px;
}

.notes-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--accent);
}

.notes-heading span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  position: relative;
}

.notes-heading span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 5px 0 rgba(214, 175, 55, 0.8);
}

.note-list {
  padding-top: 18px;
}

.note-list li {
  margin: 0;
  padding: 18px 0 18px 14px;
  border-left: 2px solid var(--accent);
  color: #eef4f8;
  line-height: 1.45;
}

.note-list li + li {
  margin-top: 10px;
}

.gallery-section {
  margin: 46px 0 34px;
  padding: 28px 24px 30px;
}

.gallery-section > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.gallery-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-soft);
  overflow: hidden;
  min-height: 116px;
}

.gallery-card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.gallery-card span {
  display: block;
  padding: 8px 9px 10px;
  color: var(--muted);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

.gallery-card[data-status="failure"],
.thumb[data-status="failure"] {
  border-color: rgba(240, 183, 166, 0.62);
}

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--subtle);
  font-size: 0.88rem;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(214, 175, 55, 0.6);
  outline-offset: 3px;
}

button:hover,
.share-link:hover {
  background: rgba(214, 175, 55, 0.13);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .summary-grid,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    align-items: flex-start;
  }

  .notes-panel {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .note-list {
    padding-top: 0;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    gap: 9px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .share-link {
    padding: 0 13px;
    font-size: 0.88rem;
  }

  main,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero-shell {
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .summary-panel {
    padding: 16px 16px 15px 26px;
  }

  .stage {
    height: 430px;
  }

  .stage img {
    object-fit: contain;
    background: #06131e;
  }

  .nav-button {
    width: 44px;
    height: 54px;
  }

  .thumb-strip {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }

  .rail-button {
    width: 32px;
    height: 66px;
  }

  .thumb {
    flex-basis: 96px;
    height: 72px;
  }

  .notes-panel {
    display: block;
    padding: 20px;
  }

  .note-list {
    padding-top: 18px;
  }

  .gallery-section {
    margin-top: 30px;
    padding: 22px 16px 22px;
  }

  .gallery-section > div:first-child {
    display: block;
  }

  .filter-bar {
    display: block;
  }

  .filter-buttons {
    justify-content: flex-start;
    margin-top: 12px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
