/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --paper:      #EDEEE7;
  --grid-line:  rgba(20, 30, 40, 0.05);
  --ink:        #1B222C;
  --ink-soft:   #4B5768;
  --red:        #B23A2E;
  --blue:       #2C5B73;
  --rule:       rgba(27, 36, 48, 0.18);

  --font-mono:  'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-hand:  'Caveat', cursive;

  --measure: 680px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 2.1rem,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   Hero — the redlined case file
--------------------------------------------------------- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.hero {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.75rem;
}

.case-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.75rem;
}

h1.redline {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.25;
}

h1.redline .struck {
  display: block;
  position: relative;
  width: fit-content;
  color: var(--ink-soft);
  opacity: 0.55;
}

h1.redline .struck::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  height: 2px;
  width: 0;
  background: var(--red);
  animation: strike 0.7s ease-out 0.35s forwards;
}

@keyframes strike {
  to { width: 100%; }
}

h1.redline .correction {
  display: block;
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--red);
  font-size: 1.5em;
  line-height: 1.15;
  margin-top: 0.3rem;
  transform: rotate(-1.3deg);
  transform-origin: left top;
}

.tagline {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 1.5rem 0 2rem;
}

.cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.7rem 1.2rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cta:hover {
  background: var(--blue);
  color: var(--paper);
}

/* ---------------------------------------------------------
   Body content
--------------------------------------------------------- */
.content h2 {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  padding-left: 1.5rem;
  margin: 3rem 0 1rem;
}

.content h2::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0.28em;
  font-size: 0.65rem;
  color: var(--red);
}

.content p { margin: 0 0 1.1rem; }

.content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.3rem;
}

.content li { margin-bottom: 0.6rem; }

.content strong { color: var(--ink); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  max-width: var(--measure);
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.stamp {
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 0.3rem 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  opacity: 0.75;
}

/* ---------------------------------------------------------
   Accessibility & motion
--------------------------------------------------------- */
a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  h1.redline .struck::after {
    animation: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  main { padding-top: 3rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
