:root {
  color-scheme: dark;
  --bg: #0c0b09;
  --panel: #17130f;
  --text: #fff7e8;
  --muted: #b9ab98;
  --line: rgba(255, 247, 232, 0.16);
  --orange: #ff6a1a;
  --teal: #24a6a6;
  --yellow: #f4d35e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff9ed;
  --panel: #f4ead8;
  --text: #18120c;
  --muted: #6f6255;
  --line: rgba(24, 18, 12, 0.16);
  --shadow: 0 24px 80px rgba(60, 37, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  padding: 14px clamp(18px, 4vw, 46px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a,
.mode-toggle,
.primary-action,
.secondary-action,
.admin-row button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 9px 12px;
}

.site-nav a,
.mode-toggle,
.secondary-action,
.admin-row button {
  background: transparent;
  color: var(--text);
}

.mode-toggle {
  min-width: 72px;
}

.hero {
  align-items: end;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 70px) 76px;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 55%, transparent), transparent 68%),
    linear-gradient(0deg, var(--bg), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-content {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker p:first-child {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4.2rem, 16vw, 13rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 24px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 6rem);
  letter-spacing: 0;
  line-height: 0.92;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy {
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  max-width: 680px;
}

.scroll-cue {
  border: 1px solid rgba(255, 247, 232, 0.45);
  border-radius: 999px;
  bottom: 30px;
  font-size: 0.78rem;
  padding: 10px 16px;
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  text-transform: uppercase;
  z-index: 1;
}

.section-inner {
  margin: 0 auto;
  max-width: 1480px;
  padding: clamp(58px, 8vw, 120px) clamp(18px, 5vw, 70px);
}

.filter-band {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.filter-band .section-inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  padding-bottom: 38px;
  padding-top: 38px;
}

.muted,
.timeline-intro p,
.timeline-copy p,
.admin-hero p {
  color: var(--muted);
}

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

.category-node {
  align-items: center;
  background: color-mix(in srgb, var(--category-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--category-color) 70%, var(--line));
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
}

.category-node span {
  background: var(--category-color);
  border-radius: 99px;
  display: block;
  height: 10px;
  width: 10px;
}

.category-node[data-active="false"] {
  opacity: 0.34;
  text-decoration: line-through;
}

.timeline-layout {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(240px, 0.56fr) minmax(300px, 1.44fr);
}

.timeline-intro {
  position: sticky;
  top: 98px;
  align-self: start;
}

.timeline {
  display: grid;
  gap: clamp(26px, 5vw, 80px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  border-left: 1px solid color-mix(in srgb, var(--category-color) 70%, var(--line));
  padding-left: clamp(18px, 3vw, 42px);
  position: relative;
}

.timeline-item::before {
  background: var(--category-color);
  border: 5px solid var(--bg);
  border-radius: 999px;
  content: "";
  height: 18px;
  left: -10px;
  position: absolute;
  top: 0;
  width: 18px;
}

.timeline-item article {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(180px, 0.78fr) minmax(240px, 1fr);
}

.timeline-media {
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-media img,
.reel-frame img,
.reel-frame video,
.reel-frame iframe {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.timeline-copy {
  align-self: center;
}

.item-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.item-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 7px 10px;
}

.text-link {
  color: var(--orange);
  font-weight: 800;
}

.reels-section {
  background: var(--panel);
}

.reels-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.reel-rail {
  display: grid;
  gap: 18px;
  grid-auto-columns: minmax(250px, 32vw);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.reel-card {
  scroll-snap-align: start;
}

.reel-frame {
  aspect-ratio: 9 / 16;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reel-frame iframe {
  border: 0;
}

.reel-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.reel-caption span {
  color: var(--orange);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.about-section,
.contact-section {
  border-top: 1px solid var(--line);
}

.about-grid,
.contact-grid {
  display: grid;
  gap: clamp(24px, 5vw, 90px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
}

.about-grid p:last-child {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.28;
}

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

.contact-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--orange);
  min-height: 48px;
  padding: 13px 16px;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 70px);
}

.admin-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 110px clamp(18px, 5vw, 70px) 70px;
}

.admin-hero {
  margin-bottom: 34px;
}

.admin-hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
}

.admin-actions,
.panel-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.primary-action {
  background: var(--orange);
  color: #170d07;
  font-weight: 800;
}

.editor-panel {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.editor-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  margin: 22px 0;
}

label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

input,
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 44px;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.wide-field,
.toggle-row {
  grid-column: 1 / -1;
}

.toggle-row {
  align-items: center;
  display: flex;
}

.toggle-row input {
  min-height: auto;
  width: auto;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.admin-row span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

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

  .site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .filter-band .section-inner,
  .timeline-layout,
  .timeline-item article,
  .about-grid,
  .contact-grid,
  .editor-form {
    grid-template-columns: 1fr;
  }

  .category-console {
    justify-content: flex-start;
  }

  .timeline-intro {
    position: static;
  }

  .reels-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .reel-rail {
    grid-auto-columns: minmax(230px, 78vw);
  }
}
