/* The Sentinel Thread — shared stylesheet
   Extracted from the approved 2026-07-23 single-page design and extended for a
   multi-page pre-launch site. The palette, column width, mark treatment and
   type scale are UNCHANGED — Spiro approved that look; this only adds what the
   new pages need (nav, essay body, quote cards, press tables).
   American English throughout, per the project's build gate. */

:root {
  --paper: #FAF7F0;
  --ink: #1F1C18;
  --ink-soft: rgba(31, 28, 24, 0.68);
  --ink-softer: rgba(31, 28, 24, 0.42);
  --ink-faint: rgba(31, 28, 24, 0.12);
  --accent: #9B5E4A;
  --column: 620px;
  --narrow: 480px;
  --wide: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

main {
  max-width: var(--column);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

main.main--wide {
  max-width: var(--wide);
}

/* ---------------------------------------------------------------- marks */

.mark {
  display: block;
  margin: 0 auto;
  color: var(--ink);
}

.mark--hallmark {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

.mark--small {
  width: 52px;
  height: auto;
  opacity: 0.85;
}

.mark--divider {
  width: 36px;
  height: auto;
  margin: 4rem auto;
  opacity: 0.65;
}

/* ------------------------------------------------------------ site nav */

/* Eight links do not fit one 620px line, so the nav wraps by design. The row
   gap is deliberately much tighter than the column gap — two loosely-spaced
   rows read as two navigations. */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--ink);
  border-bottom-color: var(--accent);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink-faint);
}

/* ------------------------------------------------------------- titling */

.title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 2.75rem;
  line-height: 1.15;
}

.title--page {
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  margin-top: 3rem;
}

.subtitle {
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.subtitle--page {
  font-size: 1.0625rem;
  max-width: var(--narrow);
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------- prose block */

.opening {
  margin-top: 5rem;
}

.opening p {
  margin-bottom: 1.4em;
}

.opening p:first-child {
  font-size: 1.2rem;
  line-height: 1.55;
}

.opening p:last-child {
  margin-bottom: 0;
}

.prose {
  margin-top: 3.5rem;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 3rem 0 1.4rem;
  color: var(--ink-soft);
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.prose a:hover,
.prose a:focus {
  color: var(--accent);
  outline: none;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
}

.byline {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 3.5rem;
  font-size: 1rem;
}

.byline--essay {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
}

.dedication {
  max-width: var(--narrow);
  margin: 0 auto;
  font-style: italic;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.dedication p {
  margin-bottom: 1.2em;
}

.dedication p:last-child {
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------- pull quotes */

.pull {
  max-width: var(--narrow);
  margin: 3.5rem auto;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}

.pull cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-softer);
}

/* A quote card is a pull quote made screenshot-shaped, so a reader can share it
   without any image asset existing. Deliberately square-ish and self-contained. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.card {
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  background: transparent;
}

.card blockquote {
  font-size: 1.1875rem;
  line-height: 1.45;
  font-style: italic;
}

.card .card__source {
  margin-top: 1.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-softer);
}

/* ---------------------------------------------------------- diagrams */

/* The calendar diagrams are drawn at 1200px wide with 15px labels. Squeezing
   that onto a phone would make the type unreadable, so the figure scrolls
   inside itself instead and the page body never scrolls sideways. */
.figure {
  margin: 3rem 0 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.figure img {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
}

.figure figcaption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-softer);
  text-align: center;
  min-width: 660px;
}

/* ------------------------------------------------ construction diagram */

/* One, seven, nineteen. The three svgs share a stroke width in their own
   coordinate space, so they read as the same line weight at different sizes. */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0 1rem;
  color: var(--ink-soft);
}

.steps svg {
  width: 100%;
  max-width: 150px;
  height: auto;
}

.steps__caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-softer);
  margin-bottom: 2.5rem !important;
}

/* The hallmark is a link on pages that are not the mark's own page. Keep it
   looking like a drawing, not like a button. */
a.mark-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 0;
}

a.mark-link:hover .mark,
a.mark-link:focus-visible .mark {
  color: var(--accent);
}

/* --------------------------------------------------------- author photo */

.portrait {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 3.5rem auto 0;
  border-radius: 2px;
  filter: grayscale(100%) contrast(1.02);
}

/* The Lines page groups by source, so each grid needs a quiet header rather
   than a heading that competes with the sentences underneath it. */
.lines__group {
  margin: 3.5rem 0 -0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-softer);
  text-align: center;
}

.lines__group em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------- essay listing */

.entries {
  margin-top: 3.5rem;
  list-style: none;
}

.entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--ink-faint);
}

.entry:first-child {
  border-top: 1px solid var(--ink-faint);
}

.entry__date {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-softer);
}

.entry__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.entry__title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.entry__title a:hover,
.entry__title a:focus {
  border-bottom-color: var(--accent);
  outline: none;
}

.entry__standfirst {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.entry--planned .entry__title {
  color: var(--ink-softer);
  font-weight: 400;
}

/* ------------------------------------------------------------ press kit */

.facts {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--ink-faint);
}

.facts th {
  font-weight: 500;
  color: var(--ink-softer);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.table-scroll {
  overflow-x: auto;
}

.copyblock {
  border-left: 1px solid var(--ink-faint);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.copyblock p {
  margin-bottom: 1em;
}

.copyblock p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- form */

.cta {
  text-align: center;
  margin: 0 auto;
  max-width: var(--narrow);
}

.cta p {
  margin-bottom: 1.2em;
}

.cta p:last-child {
  margin-bottom: 0;
}

.cta__note {
  font-size: 0.8125rem;
  color: var(--ink-softer);
  margin-top: 1.5rem;
}

.form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-softer);
  border-radius: 2px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form input[type="email"]::placeholder {
  color: var(--ink-softer);
}

.form button {
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.form button:hover,
.form button:focus {
  background: var(--accent);
  color: var(--paper);
  outline: none;
}

/* Honeypot — never shown to a human, never focusable. Bots fill it; we discard those. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  text-align: center;
  margin-top: 6rem;
  /* Side padding matches main's. The footer sits outside main, so without it
     the link row ran edge-to-edge on a narrow window. */
  padding: 2rem 1.5rem 0;
  color: var(--ink-softer);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* Keeps a two-word label and its trailing dot on one line, so the footer row
   can only break between links. */
footer .fl {
  white-space: nowrap;
}

footer a {
  color: var(--ink-softer);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer a:hover,
footer a:focus {
  color: var(--ink-soft);
  border-bottom-color: var(--accent);
  outline: none;
}

@media (max-width: 600px) {
  main {
    padding: 4rem 1.25rem 3rem;
  }
  .title {
    font-size: 2rem;
    letter-spacing: 0.14em;
  }
  .title--page {
    font-size: 1.25rem;
  }
  .subtitle {
    font-size: 1.15rem;
  }
  body {
    font-size: 17px;
  }
  .opening p:first-child,
  .lede {
    font-size: 1.1rem;
  }
  .mark--divider {
    margin: 3rem auto;
  }
  .nav {
    gap: 0.7rem 1.1rem;
    font-size: 0.75rem;
  }
  footer {
    padding: 2rem 1.25rem 0;
  }
  .pull {
    font-size: 1.1875rem;
  }
}

/* Print. The press page IS the one-sheet — an editor hits Cmd-P and gets a clean
   PDF, so there is no separate asset to keep in sync with the site. */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .nav,
  .cta,
  .form,
  .mark--divider,
  footer {
    display: none !important;
  }
  .prose a,
  .facts a {
    color: #000;
    border-bottom: none;
  }
  .prose h2 {
    page-break-after: avoid;
    margin-top: 1.6rem;
  }
  .copyblock,
  .card,
  .entry {
    page-break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
