/* ── FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --green:      #b8ff57;
  --cyan:       #45ead2;
  --cyan-tint:  #d4f7f2;
  --pink:       #ff57c8;
  --green-text: #6aa800;
  --green-text-aa: #487800;
  --cyan-text:  #008a76;
  --pink-text:  #c4007a;
  --bg:         #f2f2f2;
  --border:     #d4d4d0;
  --text:       #111111;
  --charcoal:   #2a2a2a;
  --muted:      #555552;
  --dim:        #999994;
  --display:    'VT323', monospace;
  --mono:       'JetBrains Mono', monospace;
  --bw:         1.5px;
  --bw-thin:    1px;
  --dur-fast:   100ms;
  --dur-normal: 180ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; background: var(--bg); }

body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
}

#bg-hex { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── POSTER ─────────────────────────────────────── */
.poster {
  position: relative;
  width: min(700px, 100%);
  border: var(--bw) solid var(--pink);
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg);
}

.tick { position: absolute; width: 10px; height: 10px; border-color: var(--charcoal); border-style: solid; }
.tick--tl { top: -4px;    left: -4px;    border-width: 1.5px 0 0 1.5px; }
.tick--tr { top: -4px;    right: -4px;   border-width: 1.5px 1.5px 0 0; }
.tick--bl { bottom: -4px; left: -4px;    border-width: 0 0 1.5px 1.5px; }
.tick--br { bottom: -4px; right: -4px;   border-width: 0 1.5px 1.5px 0; }

/* ── SITE NAV ───────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  width: 100%;
  border-top: var(--bw-thin) solid var(--border);
  border-bottom: var(--bw-thin) solid var(--border);
  padding: 0.45rem 0;
}
.site-nav__link {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.site-nav__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--green-text);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.site-nav__link--active { color: var(--text); }
.site-nav__sep { color: var(--border); font-size: 0.5rem; user-select: none; }

/* ── SUBPAGE HEADER ─────────────────────────────── */
.subpage-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.back-link {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color var(--dur-fast);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.back-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--green-text);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 10cqw, 4.5rem);
  line-height: 0.9;
  color: var(--text);
}

/* ── PAGE TAGLINE ───────────────────────────────── */
.page-tagline {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-text);
  line-height: 1.65;
  margin-top: 0.35rem;
}
.page-tagline::before {
  content: "→ ";
  color: var(--green-text);
  font-size: 0.82rem;
  vertical-align: middle;
  line-height: 1;
}
.page-tagline a {
  color: var(--cyan-text);
  text-underline-offset: 3px;
}

/* ── HEADER CTAS ────────────────────────────────── */
.header-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.cta-btn {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: var(--bw-thin) solid var(--border);
  padding: 0.4rem 0.75rem;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.cta-btn:hover {
  color: var(--cyan-text);
  border-color: var(--cyan-text);
  background: var(--cyan-tint);
}

/* ── CASE META ───────────────────────────────────── */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  border-top: var(--bw-thin) solid var(--border);
  border-bottom: var(--bw-thin) solid var(--border);
  margin-top: -0.25rem;
}

.case-meta__item {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.5rem 0.6rem 0;
}
.case-meta__item + .case-meta__item {
  padding-left: 0.75rem;
  border-left: var(--bw-thin) solid var(--border);
}

.case-meta__label {
  font-family: var(--mono);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.case-meta__value {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--charcoal);
}
.case-meta__value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.case-meta__value a:hover { color: var(--cyan-text); text-decoration-color: var(--green-text); }

/* ── IMG CAPTION ─────────────────────────────────── */
.img-caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* ── CASE SECTIONS ───────────────────────────────── */
.case-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}
.case-section > * { margin-top: 0 !important; }

.case-section__title {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1;
}

.case-section__body {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.case-section__body + .case-section__body { margin-top: 0.65rem; }

.case-section__body a {
  color: var(--cyan-text);
  text-underline-offset: 3px;
}
.case-section__body a:hover { color: var(--green-text); }

/* ── BUILT LIST ──────────────────────────────────── */
.built-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.built-list__item {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  padding-left: 1rem;
  position: relative;
}
.built-list__item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--cyan-text);
}

/* ── CASE CTA ─────────────────────────────────────── */
.case-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: var(--bw-thin) solid var(--border);
  padding-top: 0.75rem;
}

.cta-link {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur-fast);
}
.cta-link:hover {
  color: var(--cyan-text);
  text-decoration: underline;
  text-decoration-color: var(--green-text);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

/* ── VANESSA BAR ────────────────────────────────── */
.vanessa-bar {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #999994;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem 0.4rem;
  margin-top: 0.25rem;
}

/* ── MOBILE — shared base ───────────────────────── */
@media (max-width: 600px) {
  html { font-size: 18px; }
  body { padding: 0.5rem 1.5rem; }
  .poster { padding: 1rem 1.25rem; }
  .vanessa-bar { font-size: 0.48rem; letter-spacing: 0.05em; }
  .case-meta { flex-wrap: wrap; }
  .case-meta__item { min-width: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
