/* neilspruce.com About page mock-up.
   Document Mode from the Better Angles Editorial Style Guide v2.0: paper panels on a sage canvas, Special Elite for the
   page title only, IBM Plex Mono for everything else, rule-based callouts, no orange.
   Layout: header picture, then a narrow left column (portrait, signup, links) beside a wide text column, then the
   contact form. Fonts are self-hosted from fonts/, so the page makes no request to Google. */

@font-face { font-family: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/special-elite-latin.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); }

:root {
  --paper: #FAF7F0;
  --sage: #E2ECCF;
  --sage-deep: #cfdcb3;
  --ink: #202020;
  --ink-soft: #555555;
  --rule: #d8d8d8;
  --error: #8f2d1a;
  --orange: #d15c30;      /* Better Angles orange: the signup box's dashed border and the guide cover */
  --font-display: 'Special Elite', 'Courier New', monospace;
  --font-body: 'IBM Plex Mono', 'Courier Prime', 'Courier New', monospace;
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  background: var(--sage); color: var(--ink);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header and footer: the same paper strips as the rest of the site */
.top, footer {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 0 24px; background: var(--paper);
}
.wordmark { font-weight: 600; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.top nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a:focus-visible, .top nav a[aria-current] { border-bottom-color: var(--ink); }
footer { flex-direction: column; justify-content: center; gap: 6px; padding: 14px 24px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.credit { margin: 0; font-size: 12px; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

main { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 20px 64px; }

/* ---- Header picture and title ---- */
/* The header is a roll of film: ink-black strip, sprocket holes cut through to the sage, five 3:2 frames, small edge numbers.
   On a narrow screen the roll keeps a readable size and scrolls sideways inside .film (page never scrolls sideways). */
.film { margin: 0 0 28px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #8a9a5b transparent; }
.film:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.reel {
  --holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Crect x='3' y='1' width='13' height='8' rx='2' fill='%23E2ECCF'/%3E%3C/svg%3E");
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px;
  min-width: 800px; margin: 0; padding: 30px 14px 34px; list-style: none;
  background: var(--ink); box-shadow: var(--shadow);
}
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--holes) repeat-x 0 0 / 20px 10px; }
.reel::before { top: 10px; }
.reel::after { bottom: 10px; }
.reel li { position: relative; scroll-snap-align: start; }
.reel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1px; }
.reel .no { position: absolute; left: 2px; top: 100%; margin-top: 3px; font-size: 9px; line-height: 1; letter-spacing: 0.08em; color: #c9772a; }
.reel .no::after { content: " \25B8"; }
.titleblock { margin: 0 0 30px; }
.titleblock h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1.2; margin: 0 0 10px; }
.titleblock .intro { margin: 0; max-width: 52ch; color: var(--ink-soft); font-style: italic; }

/* ---- Two columns ---- */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 22px; }
.side-sticky { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 20px; }
.main { display: flex; flex-direction: column; gap: 28px; }

.card { background: var(--paper); box-shadow: var(--shadow); }

.portrait { margin: 0; padding: 12px 12px 14px; }
.portrait img { width: 100%; }
.portrait figcaption { margin: 10px 4px 0; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }

.elsewhere { padding: 22px 22px 18px; }
.elsewhere h2, .join h2 { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.elsewhere ul { margin: 0; padding: 0; list-style: none; }
.elsewhere li { border-top: 1px solid var(--rule); }
.elsewhere a { display: block; padding: 9px 0; text-decoration: none; font-size: 14px; }
.elsewhere a:hover, .elsewhere a:focus-visible { text-decoration: underline; }

/* ---- The text ---- */
.prose { padding: 44px 48px 48px; }
.prose p { max-width: 66ch; margin: 0 0 16px; }
.prose h2 { font-size: 1.2rem; line-height: 1.4; font-weight: 600; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: 60ch; margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 32px 0; padding: 26px 30px; background: var(--sage); }
.prose blockquote p { margin: 0; max-width: 26ch; font-weight: 600; font-size: 1.1rem; line-height: 1.5; }
.prose blockquote.testimonial p { max-width: 50ch; font-weight: 400; font-style: italic; font-size: 1rem; line-height: 1.6; }
.prose blockquote cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.prose .signoff { margin-top: 26px; font-weight: 600; }
.callout { margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.callout .label { margin: 0 0 10px; font-size: 11.2px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

/* ---- Forms: the signup box (side) and the contact form ---- */
.join, .contact { padding: 26px 24px 24px; }
/* The signup box is the page's one ask: a bold dashed border in Better Angles orange, with the free guide's cover beside the offer */
.join { padding: 20px 20px 18px; border: 3px dashed var(--orange); }
.join .offer { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.join .guide-cover { flex: none; width: 96px; height: auto; transform: rotate(-3deg); box-shadow: 2px 3px 8px rgba(0,0,0,0.25); }
.join .offer h2 { margin: 0 0 6px; color: var(--orange); }
.join .offer-line { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; }
.join .sub { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.field input, .field textarea, .signup input[type="text"], .signup input[type="email"] {
  display: block; width: 100%; padding: 0 14px; background: #fff; border: 1px solid var(--rule); border-radius: 0;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.field input, .signup input[type="text"], .signup input[type="email"] { height: 46px; margin: 0 0 10px; }
.field textarea { min-height: 150px; padding: 12px 14px; resize: vertical; margin: 0 0 10px; line-height: 1.5; }
.field label { display: block; margin: 0 0 5px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.field input:focus-visible, .field textarea:focus-visible, .signup input:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn {
  display: block; width: 100%; height: 48px; padding: 0 24px; background: var(--ink); color: var(--paper); border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
}
.btn:hover:not(:disabled) { background: var(--ink-soft); }
.btn:disabled { cursor: default; opacity: 0.7; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 8px 0 0; font-size: 13.5px; color: var(--error); }
.small-print { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); }
.done { outline: none; }
.done-title { margin: 0 0 6px; font-weight: 600; font-size: 1.1rem; }
.done p { margin: 0 0 8px; }

.contact h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; }
.contact .sub { margin: 0 0 20px; max-width: 54ch; color: var(--ink-soft); }
.contact form { max-width: 560px; }


/* ---- Tablet and phone: portrait first, then the text, then the signup, the contact form and the links ---- */
@media (max-width: 860px) {
  .about-grid { display: flex; flex-direction: column; gap: 22px; }
  .side, .side-sticky, .main { display: contents; }
  .portrait { order: 1; max-width: 340px; }
  .prose { order: 2; }
  .join { order: 3; }
  .contact { order: 4; }
  .elsewhere { order: 5; }
  .prose { padding: 30px 24px 34px; }
}
@media (max-width: 560px) {
  main { padding-top: 20px; }
  .titleblock h1 { font-size: 2rem; }
  .top { padding: 8px 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .top nav { font-size: 13px; gap: 2px 14px; }
}
