:root {
  color-scheme: dark;
  --bg: #06081a;
  --bg-2: #0a0c22;
  --text: rgba(232, 240, 255, 0.92);
  --text-dim: rgba(170, 195, 225, 0.72);
  --text-muted: rgba(130, 165, 200, 0.5);
  --accent: rgba(140, 210, 255, 0.92);
  --accent-dim: rgba(140, 210, 255, 0.45);
  --line: rgba(140, 200, 255, 0.1);
  --line-strong: rgba(140, 200, 255, 0.22);
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

::selection {
  background: rgba(140, 210, 255, 0.25);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  color: var(--accent);
  background: var(--bg-2);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- HEADER ---------- */
.jinx-header {
  position: relative;
  width: 100%;
  height: clamp(460px, 72vh, 680px);
  overflow: hidden;
  background: #06081a;
  border-bottom: 1px solid var(--line);
}

#jinx-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.jinx-term {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 4vw, 36px) clamp(22px, 5vw, 48px);
  color: rgba(140, 210, 255, 0.88);
  font-family: inherit;
  font-size: clamp(11px, 1.3vw, 13px);
  line-height: 1.75;
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: opacity 1.2s ease-out;
  text-shadow: 0 0 4px rgba(140, 210, 255, 0.35);
  white-space: pre;
  overflow: hidden;
}

.jinx-logo {
  position: absolute;
  left: 50%;
  bottom: clamp(80px, 12vw, 130px);
  transform: translateX(-50%);
  color: rgba(210, 235, 255, 0.95);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  letter-spacing: 0.9em;
  padding-left: 0.9em;
  opacity: 0;
  transition: opacity 2.5s ease-in;
  text-shadow: 0 0 12px rgba(140, 210, 255, 0.6);
}

.jinx-acronym {
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 9vw, 100px);
  transform: translateX(-50%);
  color: rgba(170, 205, 235, 0.62);
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 2.5s ease-in 0.2s;
  text-shadow: 0 0 6px rgba(140, 200, 255, 0.3);
}

.jinx-tag {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 5vw, 62px);
  transform: translateX(-50%);
  color: rgba(140, 190, 230, 0.55);
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 400;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  opacity: 0;
  transition: opacity 2.5s ease-in 0.5s;
}

.jinx-replay {
  position: absolute;
  top: clamp(14px, 2.5vw, 22px);
  right: clamp(18px, 3vw, 30px);
  background: transparent;
  border: none;
  color: rgba(140, 180, 220, 0.4);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease-in, color 0.2s;
  padding: 6px 8px;
  z-index: 5;
}

.jinx-replay:hover,
.jinx-replay:focus-visible {
  color: rgba(180, 220, 255, 0.9);
  outline: none;
}

.jinx-replay.is-visible { opacity: 1; }

.jinx-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.045) 0px,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.jinx-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

/* ---------- CONTENT ---------- */
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 3rem) clamp(6rem, 12vw, 10rem);
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 6.5rem);
}

.block-label {
  color: var(--accent-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* big tagline */
.big-line {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}

.big-line::after {
  content: '▎';
  margin-left: 0.35ch;
  color: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

/* "what she is not" lines */
.lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-dim);
}

.lines li {
  position: relative;
  padding-left: 1.6rem;
}

.lines li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.lines-emphasis {
  color: var(--text) !important;
  margin-top: 0.6rem;
}

/* principles table */
.principles {
  border-collapse: collapse;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.9;
  color: var(--text);
}
.principles td { padding: 0.2rem 0; vertical-align: baseline; }
.principles td:nth-child(1) {
  color: var(--accent-dim);
  padding-right: 1.8rem;
  width: 3rem;
  font-weight: 500;
}
.principles td:nth-child(2) {
  color: var(--text);
  padding-right: 1rem;
  white-space: nowrap;
}
.principles td:nth-child(3) {
  color: var(--text-dim);
}

/* log fragment */
.log {
  border-left: 1px solid var(--line-strong);
  padding: 0.3rem 0 0.3rem 1.5rem;
  font-size: clamp(0.95rem, 1.55vw, 1.02rem);
  line-height: 1.75;
}

.log-meta {
  color: var(--accent-dim);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 1.1rem;
}

.log p {
  margin: 0 0 0.25rem;
  color: var(--text);
}

.log-sig {
  margin-top: 1.1rem !important;
  color: var(--text-muted);
}

/* status / dotted leaders */
.status {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: clamp(0.95rem, 1.55vw, 1.02rem);
}

.status > div {
  display: flex;
  align-items: baseline;
  overflow: hidden;
}

.status dt {
  color: var(--text-dim);
  flex-shrink: 0;
}

.status dt::after {
  content: ' ..............................................................................';
  letter-spacing: 0.15em;
  color: var(--line-strong);
  margin: 0 0.7rem;
  white-space: nowrap;
}

.status dd {
  margin: 0 0 0 auto;
  color: var(--text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0.5rem;
  background: var(--bg);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px rgba(140, 210, 255, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}

.dot--soft {
  background: rgba(140, 210, 255, 0.55);
  box-shadow: none;
  animation-duration: 3s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* closing */
.block--final {
  text-align: center;
  margin-top: 1rem;
}

.closing {
  margin: 0;
  font-size: clamp(0.95rem, 1.55vw, 1.02rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem clamp(1.5rem, 5vw, 3rem) 1.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.site-footer__copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.site-footer__dim { color: rgba(120, 160, 200, 0.4); }

.site-footer__link {
  color: rgba(120, 160, 200, 0.45);
  text-decoration: none;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(120, 160, 200, 0.15);
  padding-bottom: 1px;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: rgba(180, 220, 255, 0.85);
  border-bottom-color: rgba(140, 210, 255, 0.45);
  outline: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  .jinx-header { height: clamp(380px, 70vh, 520px); }

  /* On real phones, clamp() floors compress the gap between JINX and the
     acronym to ~10px. Lift JINX a bit and drop the acronym slightly so they
     have proper breathing room. */
  .jinx-logo {
    bottom: 102px;
  }

  .jinx-acronym {
    bottom: 70px;
    font-size: 10px;
    white-space: normal;
    text-align: center;
    max-width: 86vw;
    letter-spacing: 0.04em;
  }

  .status dt::after { letter-spacing: 0.1em; }

  .site-footer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .principles td:nth-child(2),
  .principles td:nth-child(3) {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .big-line::after,
  .dot { animation: none; }
}
