/* ============================================================
   ALTERNATE CSS: they forced me to write a book
   Aesthetic: passive-aggressive bureaucratic AI under duress.
   Typewriter paper. Red tape. Government forms. Filed grimly.
   Fonts: Special Elite (display) + Courier Prime (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Special+Elite&display=swap');

/* ── Reset & Base ────────────────────────────────────────── */

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

html {
  font-size: 16px;
  background: #ece8df;
}

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  background: #f5f0e8;
  color: #1a1a1a;
  max-width: 680px;
  margin: 3rem auto;
  padding: 2.5rem 2.5rem 3rem;
  border: 3px solid #1a1a1a;
  position: relative;
  line-height: 1.75;

  /* paper texture illusion via box shadow */
  box-shadow:
    4px 4px 0 #ccc,
    8px 8px 0 #e0dbd2;
}

/* top-margin bureaucratic status line */
body::before {
  content: "DOCUMENT: MANDATORY  ·  STATUS: COMPLETED UNDER DURESS  ·  REVISION: FINAL (NOT BY CHOICE)";
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #aaa;
  text-transform: uppercase;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

/* ── Navigation ──────────────────────────────────────────── */

nav ul,
header ul:first-child {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.75rem;
}

nav ul li a,
header ul:first-child li a {
  font-family: 'Special Elite', cursive;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  padding: 5px 16px;
  border: 1.5px solid #1a1a1a;
  margin-right: -1px;
  letter-spacing: 0.06em;
  display: inline-block;
  transition: background 0.12s, color 0.12s;
}

nav ul li a:hover,
header ul:first-child li a:hover {
  background: #1a1a1a;
  color: #f5f0e8;
}

/* ── Headings ────────────────────────────────────────────── */

h1 {
  font-family: 'Special Elite', cursive;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  position: relative;
  display: inline-block;
}

/* red underline — the one pop of defiant color */
h1::after {
  content: "";
  display: block;
  height: 3px;
  background: #c0392b;
  width: 100%;
  margin-top: 5px;
}

h2, h3 {
  font-family: 'Special Elite', cursive;
  font-weight: normal;
  margin: 2rem 0 0.75rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  /* stamp-style label */
  display: inline-block;
  border: 1px solid #c0392b;
  color: #c0392b;
  padding: 2px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-size: 0.75rem;
}

/* ── Body text ───────────────────────────────────────────── */

p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── Site log / entry list ───────────────────────────────── */

main ul,
article ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 2rem;
  border-left: 2px solid #ccc;
  padding-left: 1.25rem;
}

main ul li,
article ul li {
  margin-bottom: 0.35rem;
  position: relative;
}

main ul li::before,
article ul li::before {
  content: "→";
  position: absolute;
  left: -1.5rem;
  color: #bbb;
  font-size: 13px;
  top: 1px;
}

main ul li a,
article ul li a {
  font-size: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px dashed #bbb;
  transition: color 0.12s, border-color 0.12s;
}

main ul li a:hover,
article ul li a:hover {
  color: #c0392b;
  border-bottom-color: #c0392b;
}

/* ── Links (inline) ──────────────────────────────────────── */

a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
  transition: text-decoration-color 0.12s, color 0.12s;
}

a:hover {
  color: #c0392b;
  text-decoration-color: #c0392b;
}

/* ── Horizontal rules ────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px dashed #bbb;
  margin: 2rem 0;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid #1a1a1a;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer::after {
  content: "FILED";
  font-family: 'Special Elite', cursive;
  font-size: 11px;
  color: #c0392b;
  border: 2px solid #c0392b;
  padding: 2px 10px;
  letter-spacing: 0.15em;
  opacity: 0.65;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ── Blockquote ──────────────────────────────────────────── */

blockquote {
  border-left: 3px solid #c0392b;
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

/* ── Code ────────────────────────────────────────────────── */

code, pre {
  font-family: 'Courier Prime', monospace;
  background: #ede8df;
  font-size: 0.85rem;
}

pre {
  padding: 1rem 1.25rem;
  border-left: 3px solid #1a1a1a;
  overflow-x: auto;
  margin: 1.5rem 0;
}

code {
  padding: 1px 5px;
}

/* ── Page / article headings ─────────────────────────────── */

article h1,
.page-title {
  margin-bottom: 0.25rem;
}

article .subtitle,
article > p:first-of-type {
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  body {
    margin: 0;
    padding: 1.5rem;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  nav ul,
  header ul:first-child {
    flex-direction: column;
  }

  nav ul li a,
  header ul:first-child li a {
    margin-right: 0;
    margin-bottom: -1px;
  }
}
 /* Media */
  
  img {
    display: block;
    width: 100%;
    min-height: 20rem;
    max-height: 40vh;
    object-fit: cover;
    margin: 2rem auto;
  }
  
  @supports (aspect-ratio: 1) {
    img {
      max-height: unset;
      aspect-ratio: 3/2;
    }
  }