:root {
  --ink: #080808;
  --paper: #f7f7f2;
  --muted: #6d6d68;
  --line: #d6d6ce;
  --panel: #ffffff;
  --reverse: #f4f4ee;
  --accent: #b7ff48;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid rgba(244, 244, 238, 0.16);
  color: var(--reverse);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity 180ms ease;
}

.brand {
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-hidden .site-header .brand {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
}

.brand-visible .site-header {
  background: rgba(247, 247, 242, 0.92);
  border-bottom-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand-visible .site-header::before {
  opacity: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a,
.nav-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

nav a:hover,
.nav-button:hover {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, 100vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #050505;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: grayscale(1) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32) 48%, rgba(0, 0, 0, 0.06));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 64px clamp(18px, 5vw, 56px) 96px;
  color: var(--reverse);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(68px, 13vw, 172px);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: lowercase;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1;
}

.tagline {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid currentColor;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--reverse);
  color: var(--ink);
}

.button.secondary {
  background: transparent;
  color: inherit;
}

.button.compact {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 14px;
}

.intro,
.section-grid,
.links-band,
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px clamp(18px, 5vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.intro > p {
  margin: 0;
  color: #242421;
  font-size: 22px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  align-self: start;
  position: sticky;
  top: 92px;
}

.featured-panel {
  background: var(--ink);
  color: var(--reverse);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--ink);
}

.featured-panel .eyebrow {
  color: var(--accent);
}

.release-list,
.post-list,
.video-carousel-shell,
.tiktok-panel {
  grid-column: 2;
}

.release-list,
.post-list {
  display: grid;
  gap: 12px;
}

.release-item,
.post-item {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.release-meta,
.post-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.release-item h3,
.post-item h3 {
  margin: 0;
}

.post-item p {
  max-width: 680px;
  margin: 0;
  color: #32322f;
}

.video-carousel-shell {
  min-width: 0;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.video-carousel {
  display: grid;
  grid-auto-columns: minmax(260px, 48%);
  grid-auto-flow: column;
  gap: 14px;
  min-height: 320px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.video-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  scroll-snap-align: start;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
}

.video-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.03);
}

.video-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.video-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #32322f;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.video-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-empty {
  padding: 22px 0;
  color: var(--muted);
  font-weight: 800;
}

.tiktok-panel {
  display: grid;
  gap: 22px;
}

.tiktok-copy {
  display: grid;
  gap: 12px;
  max-width: 680px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.tiktok-copy h3,
.tiktok-copy p {
  margin: 0;
}

.tiktok-copy h3 {
  font-size: 28px;
}

.tiktok-copy .text-link {
  justify-self: start;
}

.tiktok-embed {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.links-band {
  display: grid;
  gap: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--panel);
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-page {
  background: #efefe8;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 44px) 80px;
}

.admin-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.admin-heading h1 {
  color: var(--ink);
  font-size: clamp(44px, 8vw, 92px);
}

.admin-heading p:last-child {
  color: #343431;
  font-size: 18px;
}

.save-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.save-status[data-type="pending"] {
  color: #665400;
}

.save-status[data-type="saved"] {
  color: #245d22;
}

.save-status[data-type="error"] {
  color: #8f1717;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.editor-form,
.json-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

fieldset {
  margin: 0;
  padding: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  padding: 0;
  font-size: 18px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #3b3b37;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8b8b0;
  background: #fbfbf7;
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.stack-editor {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.edit-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: #f8f8f2;
}

.edit-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.remove-button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.json-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 118px);
  overflow: hidden;
}

.json-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.json-panel h2 {
  font-size: 22px;
}

pre {
  min-height: 520px;
  max-height: calc(100vh - 190px);
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: #1e1e1b;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 780px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  nav {
    justify-content: flex-end;
  }

  .hero {
    min-height: 680px;
  }

  .hero img {
    object-position: 72% center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.82));
  }

  .hero-copy {
    align-self: end;
    padding-bottom: 56px;
  }

  .intro,
  .section-grid,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .section-title,
  .json-panel {
    position: static;
  }

  .release-list,
  .post-list,
  .video-carousel-shell,
  .tiktok-panel {
    grid-column: 1;
  }

  .video-carousel {
    grid-auto-columns: minmax(240px, 82%);
  }

  footer {
    flex-direction: column;
  }
}
