/* Hallmark · macrostructure: Split Studio · theme: Club After Hours (custom)
 * genre: atmospheric · nav: N1 floating bar · footer: Ft3 multi-column
 * tokens: cool slate paper / deep ink navy / vermilion accent
 * fonts: Outfit (display) + Noto Sans SC (body) + JetBrains Mono (labels)
 * pre-emit critique: P4 H4 E4 S4 R4 V4
 */
:root {
  --bg: #e8eaed;
  --bg-elevated: #f4f5f7;
  --bg-panel: #1a2332;
  --bg-card: #ffffff;
  --text: #2c3440;
  --text-strong: #0f1623;
  --muted: #5c6573;
  --accent: #c73e2e;
  --accent-soft: rgba(199, 62, 46, 0.12);
  --ink: #0d1b2a;
  --slate: #8891a0;
  --border: rgba(13, 27, 42, 0.12);
  --shadow: 0 16px 48px rgba(13, 27, 42, 0.12);
  --nav-h: 64px;
  --font: "Noto Sans SC", system-ui, sans-serif;
  --display: "Outfit", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--text-strong);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(244, 245, 247, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-strong);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 49;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-strong);
  padding: 0.5rem 0;
  text-decoration: none;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }
}

.page-offset {
  padding-top: var(--nav-h);
}

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.split-hero {
  display: grid;
  min-height: min(92vh, 820px);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .split-hero {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--nav-h));
  }
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
}

.split-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 960px) {
  .split-hero__copy {
    padding: 3rem 2.5rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.split-hero__visual {
  position: relative;
  min-height: 280px;
  background: var(--ink);
}

.split-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

@media (min-width: 960px) {
  .split-hero__visual img {
    min-height: 100%;
  }
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.metric {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--text-strong);
}

.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(199, 62, 46, 0.4);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(199, 62, 46, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 3.5rem 0;
}

.section--dark {
  background: var(--bg-panel);
  color: #d8dde4;
}

.section--dark h2,
.section--dark h3 {
  color: #f4f5f7;
}

.section--dark a {
  color: #f0b4ad;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 640px;
}

.section-head p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.section--dark .section-head p {
  color: #9aa3b0;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.info-card dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.info-card dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card h3 {
  margin-top: 0;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .gallery-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-preview img,
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
}

.download-band {
  background: linear-gradient(135deg, var(--ink) 0%, #243044 100%);
  color: #e8eaed;
  padding: 3rem 0;
  text-align: center;
}

.download-band h2 {
  color: #fff;
}

.download-band p {
  color: #b8c0cc;
  max-width: 520px;
  margin: 0.75rem auto 1.5rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  text-align: left;
}

.accordion-panel {
  display: none;
  padding: 0 1.15rem 1rem;
  color: var(--muted);
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.fit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-card);
}

.fit-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.site-footer {
  background: var(--ink);
  color: #9aa3b0;
  padding: 3rem 0 1.5rem;
}

.site-footer h3 {
  color: #f4f5f7;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: #c8ced8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f0b4ad;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0.35rem 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
}

.tab-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .platform-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
}

.platform-card--muted {
  opacity: 0.92;
  border-style: dashed;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-elevated);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.steps li {
  counter-increment: step;
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 0.65rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}

.guide-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-card {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.guide-card:hover {
  border-color: var(--accent);
}

.guide-card h3 {
  margin-top: 0;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.chapter-nav a {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.875rem;
  background: var(--bg-card);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.article-body p.lead {
  font-size: 1.05rem;
  color: var(--text-strong);
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 85vh;
  max-width: min(960px, 100%);
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(13, 27, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.modal__close {
  float: right;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

.page-hero {
  padding: 2.5rem 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
