/* Red Stet — landing site shared styles.
   Refined editorial aesthetic. Cream paper, ink, red pencil.
   Used by welcome.html, writers.html, schools.html. */

:root {
  --paper:    #fcf9f1;
  --paper-2:  #f6f0e3;
  --paper-3:  #efe8d7;
  --ink:      #2a2622;
  --ink-2:    #6a635a;
  --ink-3:    #9a9088;
  --red:      #b83829;
  --red-soft: rgba(184, 56, 41, 0.10);
  --rule:     rgba(42, 38, 34, 0.10);
  --rule-2:   rgba(42, 38, 34, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  background-image:
    radial-gradient(at 18% 12%, rgba(120, 95, 60, 0.04), transparent 50%),
    radial-gradient(at 78% 88%, rgba(180, 120, 80, 0.05), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0, transparent 27px, rgba(120, 80, 50, 0.012) 28px, transparent 29px);
  color: var(--ink);
  font-family: 'Charter', 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--red); color: var(--paper); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
.link-quiet { text-decoration: none; }

p { margin: 0 0 16px; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.mono {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Layout container ──────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 720px;
}

/* ── Top navigation ────────────────────────────────────────────── */

.top {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
  background: rgba(252, 249, 241, 0.92);
  backdrop-filter: blur(8px);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
/* Brand mark — a stylized stet glyph. The lowercase italic serif s
   reads as the editorial proofreader's mark. Red box anchors the
   "Red" half of the wordmark. The dot row beneath is a subtle nod
   to the dotted-underline that traditional stet marks use to mean
   "ignore the marked-out edit; let it stand." */
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--red);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Iowan Old Style', 'Charter', 'Palatino', 'Georgia', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: 2px;
  position: relative;
}
.brand-mark::after {
  /* Three dots under the s — the stet underline */
  content: '···';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 6px;
  font-style: normal;
  letter-spacing: 1px;
  color: var(--paper);
  opacity: 0.7;
  line-height: 1;
}
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.top-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.top-nav a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 120ms ease;
}
.top-nav a:hover { color: var(--red); }
.top-nav .cta {
  background: var(--ink);
  color: var(--paper);
  padding: 7px 16px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  transition: background 120ms ease;
}
.top-nav .cta:hover { background: var(--red); }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  padding: 100px 0 70px;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  margin-bottom: 22px;
}
.hero-h1 {
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 12ch;
}
.hero-h1 .accent { color: var(--red); }
.hero-sub {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  font-weight: 500;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--red); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow::after { content: '→'; font-family: serif; }

/* ── Three-door selector ───────────────────────────────────────── */

.doors {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.doors-h {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.doors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 24px 24px;
  background: rgba(243, 237, 224, 0.45);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  min-height: 220px;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.door:hover {
  background: rgba(243, 237, 224, 0.85);
  border-color: var(--rule-2);
  transform: translateY(-1px);
}
.door-h {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.door-p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 8px 0 0;
}
.door-cta {
  font-size: 12.5px;
  color: var(--red);
  font-family: 'SF Mono', 'Menlo', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Long-form content ────────────────────────────────────────── */

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--rule);
}
.section-tight { padding: 56px 0; }

.section-h {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.section-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 0 28px;
}
.section-body p {
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 44ch;
}

/* Two-column split for content + visual */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-side h3 {
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.split-side p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.visual-stub {
  aspect-ratio: 5 / 4;
  background: var(--paper-2);
  border: 1px dashed var(--rule-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(42, 38, 34, 0.03) 13px, transparent 14px);
}

/* Quote pull */
.pull {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 24px;
  font-size: 22px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  max-width: 36ch;
  margin: 28px 0;
}
.pull-attrib {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-style: normal;
  color: var(--ink-3);
  font-family: 'SF Mono', 'Menlo', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Feature grid (3-up) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature h4 {
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* Bullet list */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullets li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.55;
}
.bullets li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.compare th, .compare td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: 'SF Mono', 'Menlo', monospace;
  font-weight: 500;
}
.compare td:first-child {
  color: var(--ink-2);
}
.compare td .x { color: var(--ink-3); }
.compare td .check { color: rgba(50, 110, 70, 0.85); }

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

.foot {
  padding: 64px 0 48px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 30ch;
}
.foot-col h5 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-weight: 500;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-col a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-2);
}
.foot-col a:hover { color: var(--red); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Final CTA block ───────────────────────────────────────────── */

.final-cta {
  padding: 96px 0;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.final-cta h2 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta p {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(252, 249, 241, 0.78);
  margin: 0 auto 36px;
  max-width: 44ch;
}
.final-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.final-cta .btn-primary:hover { background: var(--red); color: var(--paper); }
.final-cta .btn-ghost {
  border-color: rgba(252, 249, 241, 0.32);
  color: var(--paper);
}
.final-cta .btn-ghost:hover { border-color: var(--paper); }

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

@media (max-width: 880px) {
  .hero-h1 { font-size: 56px; }
  .hero-sub { font-size: 18px; }
  .section-h { font-size: 30px; }
  .doors-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .final-cta h2 { font-size: 38px; }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .hero-h1 { font-size: 44px; }
  .foot-grid { grid-template-columns: 1fr; }
}
