:root {
  --bg-canvas: #0d2a33;
  --bg-surface: #173e47;
  --bg-surface-hover: #1f4f5a;
  --bg-band-alt: #13343d;
  --text-primary: #e0f2f1;
  --text-muted: #9bb7bd;
  --accent-primary: #ff6f59;
  --accent-secondary: #4db6ac;
  --border-subtle: #24525d;
  --shadow-solid: 4px 4px 0 #07191f;
  --max-w: 1100px;
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: #ffa394;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #07191f;
  padding: 0.5rem 1rem;
  font-weight: bold;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Floating, rounded-end non-sticky header */
.site-header {
  max-width: var(--max-w);
  width: calc(100% - 2rem);
  margin: 1.25rem auto;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  background: var(--accent-primary);
  color: #07191f;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.1rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant: all-small-caps;
  font-weight: 600;
  padding: 0.25rem 0.2rem;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

/* Alternating Full-Width Bands */
.band {
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
}

.band-canvas {
  background-color: var(--bg-canvas);
}

.band-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.band-alt {
  background-color: var(--bg-band-alt);
}

.col-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: normal;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.section-label {
  display: block;
  font-variant: all-small-caps;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

/* Hero Section */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-overlapping-art {
  position: relative;
  width: 100%;
  height: 380px;
}

.hero-art-img {
  position: absolute;
  width: 210px;
  height: 210px;
  object-fit: cover;
  border: 3px solid var(--bg-surface);
  box-shadow: var(--shadow-solid);
}

.art-pos-1 {
  top: 10px;
  left: 20px;
  z-index: 1;
}

.art-pos-2 {
  top: 70px;
  right: 25px;
  z-index: 2;
  border-color: var(--accent-primary);
}

.art-pos-3 {
  bottom: 10px;
  left: 110px;
  z-index: 3;
}

/* Buttons with hard 4px 4px 0 coral shadows */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #07191f;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  box-shadow: var(--shadow-solid);
  border: 1px solid #07191f;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 transparent;
  color: #07191f;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-solid);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-secondary:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 transparent;
  background: var(--bg-surface);
}

/* Icon-Led Thinly Divided Editorial Rows */
.editorial-row-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.editorial-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 1.25rem;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}

.editorial-row:hover {
  background-color: rgba(23, 62, 71, 0.4);
}

.row-icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--accent-primary);
}

.row-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  max-width: 68ch;
}

.row-action-link {
  font-variant: all-small-caps;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Paired Film / TV Comparisons */
.paired-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.paired-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
}

.paired-meta {
  font-size: 0.85rem;
  font-variant: all-small-caps;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.paired-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Craft Annotation Strip */
.craft-strip {
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.craft-strip h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.craft-strip p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Image Strips (Flat, square) */
.craft-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.craft-image-frame {
  display: flex;
  flex-direction: column;
}

.craft-image-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.craft-image-frame figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Spoiler-Labelled Disclosures */
.disclosure-box {
  background: var(--bg-band-alt);
  border: 1px solid var(--border-subtle);
  margin: 1.2rem 0;
}

.disclosure-summary {
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  user-select: none;
}

.spoiler-pill {
  background: #391e1d;
  color: #ff8b77;
  font-size: 0.75rem;
  font-variant: all-small-caps;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  border: 1px solid #ff6f59;
}

.disclosure-body {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Table styling for reading plans */
.table-scroll-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
}

.viewing-plan-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 600px;
}

.viewing-plan-table th, .viewing-plan-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.viewing-plan-table th {
  background: var(--bg-surface);
  font-variant: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.viewing-plan-table tr:nth-child(even) {
  background-color: rgba(23, 62, 71, 0.25);
}

/* Forms & Interactive Drafting Tool */
.draft-tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-variant: all-small-caps;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  font-weight: bold;
}

.form-input, .form-textarea, .form-select {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  width: 100%;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.output-preview-box {
  background: var(--bg-canvas);
  border: 1px dashed var(--border-subtle);
  padding: 1rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  min-height: 80px;
  color: var(--accent-secondary);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tool-status {
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Footer (Slim, static) */
.site-footer {
  background: #07191f;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1rem 2rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-variant: all-small-caps;
  letter-spacing: 0.08em;
}

.footer-col p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--accent-primary);
}

.footer-bottom-bar {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Scroll reveal trigger */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-overlapping-art {
    height: 280px;
    max-width: 380px;
    margin: 0 auto;
  }
  .art-pos-1 { width: 160px; height: 160px; }
  .art-pos-2 { width: 160px; height: 160px; right: 10px; }
  .art-pos-3 { width: 160px; height: 160px; left: 80px; }
  .paired-grid {
    grid-template-columns: 1fr;
  }
  .craft-images-grid {
    grid-template-columns: 1fr;
  }
  .craft-image-frame img {
    height: 240px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }
  .nav-toggle-btn {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-solid);
    z-index: 100;
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .editorial-row {
    grid-template-columns: 44px 1fr;
  }
  .row-action-link {
    grid-column: 2 / 3;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
