/* Pagecut — brand-compliant essay surface — v1 */

/* ──────────────────────────────────────────────────────────
   Palette (PAG-3 §6.1)
   80 % Pagecut Black / 15 % Paper White / 5 % Code Green
   Pill Red unused on this surface.
────────────────────────────────────────────────────────── */
:root {
  --black:  #0A0A0A;
  --white:  #F5F2EA;
  --green:  #00FF41;
  --red:    #D7263D;   /* reserved, not used on this surface */
  --gray:   #2A2A2A;   /* subtle structural gray, within the black band */
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ──────────────────────────────────────────────────────────
   Layout
────────────────────────────────────────────────────────── */
.site-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ──────────────────────────────────────────────────────────
   Masthead  —  PAGE|CUT
   Wordmark in display serif; pipe in monospace (PAG-3 §6.3)
────────────────────────────────────────────────────────── */
.masthead {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 3rem;
}

.masthead a {
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.wordmark {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.wordmark .pipe {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
  color: var(--green);
  font-weight: 400;
  display: inline-block;
  animation: blink 1.1s step-end infinite;
  margin: 0 0.1em;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ──────────────────────────────────────────────────────────
   Article header
────────────────────────────────────────────────────────── */
.article-header {
  margin-bottom: 2.5rem;
}

.article-date {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

h1 {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ──────────────────────────────────────────────────────────
   Essay body
────────────────────────────────────────────────────────── */
.essay-body {
  font-size: 1rem;
  line-height: 1.78;
}

.essay-body p {
  margin-bottom: 1.5rem;
  color: var(--white);
  max-width: 65ch;
}

.essay-body hr {
  border: none;
  border-top: 1px solid var(--gray);
  margin: 2.8rem 0;
  width: 3rem;
}

/* ──────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--gray);
}

.footer-wordmark {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.45;
}

.footer-wordmark .pipe {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  color: var(--green);
  opacity: 0.6;
  margin: 0 0.1em;
}

.footer-line {
  margin-top: 0.6rem;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--white);
  opacity: 0.22;
}

/* ──────────────────────────────────────────────────────────
   Responsive
────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .masthead { padding: 2rem 0 2rem; margin-bottom: 2rem; }
  h1 { font-size: 1.75rem; }
  .essay-body hr { margin: 2rem 0; }
}
