@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #dedcd7; /* newsprint grey */
  --ink: #000;
}

* { box-sizing: border-box; }

html { font-size: 22.5px; background-color: var(--paper); }
@media (max-width: 600px) {
  html { font-size: 18px; } /* keep phones readable: bigger text leaves too few characters per line */
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  line-height: 1.8;
  text-align: center;
  background-color: var(--paper);
  /* paper grain + soft vignette, all CSS, no image files */
  background-image:
    radial-gradient(ellipse at center, rgba(255,255,255,0.22) 0%, rgba(70,70,70,0.12) 100%),
    url("bg.svg"); /* seamless newsprint tile: grain, fibres, faint halftone */
  background-attachment: fixed;
  text-shadow: 0 0 0.6px rgba(0, 0, 0, 0.55); /* slight ink bleed */
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 14vw, 10rem) 5rem;
}

nav {
  margin-bottom: 4rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}
nav a {
  margin: 0 1.2rem;
  padding-bottom: 2px;
  text-decoration: none;
}
nav a:hover,
nav a[aria-current="page"] {
  border-bottom: 1px solid var(--ink);
}

a { color: var(--ink); }

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}
h2, h3 {
  margin: 3rem 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0;
  font-style: italic;
}
.date {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

/* typed divider */
hr {
  border: 0;
  height: auto;
  margin: 2.5rem 0;
}
hr::before {
  content: "- - - - - - - - - - -";
  display: block;
}

p { margin: 0 0 1.4rem; }

blockquote {
  margin: 1.8rem 0;
  padding: 0 1rem;
  font-style: italic;
}

/* poetry: keep the line breaks exactly as typed */
.poem {
  white-space: pre-line;
  margin: 0 0 2rem;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.posts li { margin: 0 0 1.6rem; }
.posts .date { display: block; margin: 0; }
.posts a { font-size: 1.15rem; }

.back { margin-top: 4rem; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: opacity 0.2s; }
  a:hover { opacity: 0.6; }
}
