/* The signup page's look (docs/DESIGN-e3-signup.md 3.1): the weekly letter's paper, ink and
   oxblood rule, system fonts only - nothing loads from anywhere else (CSP, design 6). */

:root {
  --paper: #fbfaf7;
  --ground: #e8e6e1;
  --ink: #2a2a24;
  --ink-strong: #14140f;
  --muted: #66625a;
  --hairline: #ddd8cd;
  --oxblood: #7a2e26;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

main.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  background: var(--paper);
  min-height: 100vh;
}

.masthead {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--oxblood);
}

.masthead .brand {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
}

.masthead .brand a {
  color: var(--ink-strong);
  text-decoration: none;
}

.masthead .tagline {
  margin: 8px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: normal;
  color: var(--ink-strong);
}

h2 {
  margin: 32px 0 16px;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oxblood);
  border-bottom: 1px solid var(--hairline);
}

h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: bold;
}

p {
  margin: 0 0 18px;
}

.subheadline {
  font-size: 18px;
  color: var(--muted);
}

.excerpt blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--oxblood);
  font-style: italic;
}

.cutoff {
  margin-top: 28px;
  font-weight: bold;
}

form.signup,
main.page form {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="email"] {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9b4a8;
  border-radius: 3px;
}

input[type="email"]:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 1px;
}

/* The consent sentence in body size and colour, above the button (3.1). */
.consent {
  font-size: 17px;
  color: var(--ink);
}

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

button {
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  background: var(--oxblood);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

button[hidden] {
  display: none;
}

.error {
  padding: 10px 12px;
  color: var(--oxblood);
  border-left: 3px solid var(--oxblood);
  background: #f4ece8;
}

.share {
  word-break: break-word;
}

/* The follow line, near the end of the page (only the colophon after it): its links in
   the text's colour, as the privacy link's, keeping the browser's underline and focus
   ring - the underline is what marks them as links (WCAG 1.4.1). */
.follow {
  margin-top: 28px;
}

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

/* The honeypot (3.2 step 4): out of sight and out of the tab order. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

article.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

article.policy .table {
  overflow-x: auto;
  margin-bottom: 18px;
}

article.policy th,
article.policy td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

article.policy code {
  font-size: 15px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 27px;
  }

  main.page {
    padding: 22px 16px 40px;
  }
}

/* Letter 1's page (item 138, main.page.letter): the letter in the email's typography - the
   masthead and its oxblood rule above, the issue line, the headline and the dek, the body's
   bold subheads, its paragraphs and hairline rules - then the disclaimer, "Research, not
   advice." and the one link, to join. The masthead is no link on this page. */
.letter .masthead .brand {
  color: var(--ink-strong);
}

.letter .issue {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.letter h1 {
  font-size: 36px;
  line-height: 1.13;
}

.letter .dek {
  margin-bottom: 34px;
  font-size: 18px;
  line-height: 1.52;
  color: var(--muted);
}

.letter h2 {
  margin: 34px 0 12px;
  padding-bottom: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-strong);
  border-bottom: 0;
}

.letter hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.letter .disclaimer {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

.letter .research {
  margin-top: 28px;
}

.letter .letter-join a {
  display: inline-block;
  padding: 12px 22px;
  color: #fff;
  background: var(--oxblood);
  border-radius: 3px;
  text-decoration: none;
}

.letter .letter-join a:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .letter h1 {
    font-size: 28px;
  }
}

/* The Voces Count's page (tracker item 183, main.page.count): the month's two charts - inline SVG,
   each bar's width an attribute, since the CSP allows no inline style - each over a plain table
   of the same figures; the method box; the home page's join form in a white card */
.count .count-headline { margin: 0 0 24px; font-size: 21px; color: var(--ink-strong); }
.count h2 { margin: 44px 0 16px; font-size: 22px; line-height: 1.25; color: var(--ink-strong); }
.count .count-chart { margin: 0 0 20px; }
.count svg.chart { display: block; max-width: 100%; height: auto; }
.count .chart-bar { fill: var(--oxblood); }
.count .chart-name, .count .chart-value { font-family: var(--serif); font-size: 14px; fill: var(--ink); }
.count .table { overflow-x: auto; }
.count table { width: 100%; border-collapse: collapse; font-size: 16px; }
.count th, .count td { padding: 7px 10px 7px 0; text-align: left; border-bottom: 1px solid var(--hairline);
                       font-weight: normal; vertical-align: top; }
.count thead th { font-size: 14px; color: var(--muted); }
.count td.figure { text-align: right; font-variant-numeric: tabular-nums; }
.count .count-method { margin-top: 44px; padding: 8px 24px 16px; background: #f3f0e8;
                       border: 1px solid var(--hairline); border-radius: 4px; font-size: 16px; }
.count .count-method h2 { margin-top: 20px; }
.count .count-method .attention { margin-top: 20px; font-style: italic; color: var(--ink-strong); }
.count .count-method .research { font-size: 15px; font-style: italic; color: var(--muted); }
.count .join { margin-top: 56px; padding: 8px 32px 32px; background: #fff; border: 1px solid #cfc9bc;
               border-radius: 4px; }
.count .join h2 { margin-top: 24px; }
.count .colophon { margin: 28px 0 0; font-size: 16px; color: var(--muted); }
.count .colophon a { color: var(--muted); }
@media (max-width: 480px) {
  .count .count-method { padding: 4px 16px 12px; }
  .count .join { padding: 4px 16px 22px; }
}

/* ---- Home page v2: the home page and the page after joining (main.page.home) ----------
   Mockup v6c's styles (approved Tue 20 Oct 2026, the grey borders included), each rule as
   the mockup wrote it, scoped to the two pages web/render.py marks "home": the privacy
   policy, the unsubscribe and come-back pages and the error page keep the rules above. No
   motion but two colour fades, none for readers who ask for reduced motion. */

/* The paper: a sheet on the desk - a hairline edge, a barely visible shadow. Its
   max-width beats main.page's 640px: main.page.home is the more specific selector. */
main.page.home { max-width: 760px; margin: 32px auto; border: 1px solid rgba(20, 20, 15, 0.08);
                 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); }
/* The hero: the headline leads, with room around it */
.home h1 { margin: 44px 0 16px; font-size: 44px; line-height: 1.1; text-wrap: balance; }
.home .subheadline { margin-bottom: 28px; font-size: 20px; }
/* Wide screens: each sentence of the subheadline stays whole, so a line breaks only between them */
@media (min-width: 641px) { .home .subheadline .sent { display: inline-block; } }
/* The top and second buttons: in-page links to the form, never a submit; plain text, no arrow */
.home .top-cta { margin: 0; }
.home .cta { display: inline-block; padding: 14px 28px; font-size: 19px; color: #fff;
             background: var(--oxblood); border-radius: 3px; text-decoration: none; }
.home .cta:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }
/* The line to letter 1's page (item 168 (a)): under the top button, or the subheadline once it is gone */
.home .letter-line { margin: 20px 0 0; }
/* Rhythm: generous space between sections */
.home section.intro { margin-top: 64px; }
.home section.voices, .home section.terms, .home .join, .home section.faq { margin-top: 72px; }
/* Section titles: a readable serif, under a short oxblood mark (a journal's section mark) */
.home section > h2 { margin: 0 0 20px; padding: 0; border: 0; font-size: 25px; line-height: 1.25;
                     letter-spacing: 0; text-transform: none; color: var(--ink-strong); }
.home section > h2::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 16px;
                             background: var(--oxblood); }
/* The terms: one shaded box, a thin grey line all round; each term a row, its name on the
   left; the box's title keeps the short oxblood mark above it */
.home section.terms { padding: 32px 32px 14px; background: #f3f0e8; border: 1px solid var(--hairline);
                      border-radius: 4px; }
.home .term { display: grid; grid-template-columns: 11rem 1fr; gap: 0 24px; padding: 16px 0;
              border-top: 1px solid var(--hairline); }
.home .term p { margin: 0; }
.home .term .label { font-weight: bold; color: var(--ink-strong); }
/* The sign-up: its own white card, a thin grey line all round - the cutoff line and the form */
.home .join { padding: 32px; background: #fff; border: 1px solid #cfc9bc; border-radius: 4px; }
.home .join .cutoff { margin: 0 0 20px; font-size: 21px; font-weight: normal; color: var(--ink-strong); }
.home .join form { margin-top: 0; }
.home .join input[type="email"] { padding: 15px 14px; }
.home .join button { padding: 15px 28px; }
.home .consent { line-height: 1.7; }
/* The FAQ: a clean list, + and - drawn by the page (no script) */
.home .faq details { border-top: 1px solid var(--hairline); }
.home .faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.home .faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
                     font-weight: bold; color: var(--ink-strong); }
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 24px;
                            font-weight: normal; color: var(--oxblood); }
.home .faq details[open] summary::after { content: "\2212"; }   /* the CSS escape for a minus sign */
.home .faq summary:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.home .faq details p { margin: 0 0 16px; }
.home .cta-again { margin: 40px 0 0; }
/* The close: quiet, set off by a hairline */
.home .follow { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hairline);
                font-size: 17px; color: var(--muted); }
.home .follow a { color: var(--muted); }
/* A computer's reading size: the text, the consent sentence, the email field and the
   buttons at 19px (the consent stays at the size of the text around it); a phone keeps 17 */
@media (min-width: 481px) {
  main.page.home { font-size: 19px; }
  .home .consent, .home input[type="email"], .home button { font-size: 19px; }
}
/* Terms rows stack below about 640 px, so the text never becomes a thin strip */
@media (max-width: 640px) {
  .home .term { display: block; }
  .home .term .label { margin-bottom: 4px; }
}
@media (max-width: 480px) {
  main.page.home { margin: 0 auto; border: 0; box-shadow: none; }
  .home h1 { margin-top: 28px; font-size: 32px; }
  .home section > h2 { font-size: 22px; }
  .home section.voices, .home section.terms, .home .join, .home section.faq { margin-top: 56px; }
  .home section.terms { padding: 24px 16px 8px; }
  .home .join { padding: 22px 16px; }
  .home .term { display: block; }
  .home .term .label { margin-bottom: 4px; }
}
/* The nameplate: a little more authority */
.home .masthead { padding: 6px 0 22px; margin-bottom: 0; }
.home .masthead .brand { font-size: 24px; }
.home .masthead .tagline { font-size: 15px; }
/* The reading measure: prose at about 70-75 characters a line; the cards and the form use the full sheet */
.home section.intro p, .home section.voices p, .home .faq details p { max-width: 35em; }
/* Buttons: a slightly darker oxblood on hover; nothing moves */
.home .cta, .home .join button { transition: background-color 120ms ease; }
.home .cta:hover, .home .join button:hover { background: #64251f; }
/* FAQ: the +/- mark softens on hover */
.home .faq summary::after { transition: color 150ms ease; }
.home .faq summary:hover::after { color: var(--ink-strong); }
@media (prefers-reduced-motion: reduce) {
  .home .cta, .home .join button, .home .faq summary::after { transition: none; }
}
/* The colophon: the small closing line, after the follow line */
.home .colophon { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.home .colophon a { color: var(--muted); }
/* The page after joining: a calm white card, a thin grey line all round, under the
   masthead's oxblood rule; its approved words unchanged */
.home section.success { margin-top: 44px; padding: 28px 32px; background: #fff; border: 1px solid #cfc9bc;
                        border-radius: 4px; }
.home section.success h1 { margin: 0 0 14px; font-size: 34px; }
@media (max-width: 480px) { .home section.success { padding: 22px 16px; } .home section.success h1 { font-size: 28px; } }
/* The Monthly section: the rhythm and measure of the others, a little closer to "Many
   market voices" above it (the terms box keeps 72) */
.home section.monthly { margin-top: 48px; }
.home section.monthly p { max-width: 35em; }
/* The consent: set off from the email field by space and a hairline; it stays with the button */
.home .consent { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); }
/* The share line: the address on its own, in a quiet inset; one click selects all of it */
.home .share .url { display: block; margin-top: 10px; padding: 10px 14px; background: #f6f3ec;
                    border: 1px solid var(--hairline); border-radius: 3px; color: var(--ink-strong);
                    overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
@media (max-width: 480px) { .home section.monthly { margin-top: 40px; } }
/* The Copy link button (shown by the page's own script where copying is allowed): a quiet
   second button, white with a thin oxblood edge */
.home section.success button.copy { margin: 12px 0 0; padding: 10px 22px; font-size: 17px; color: var(--oxblood);
                                    background: #fff; border: 1px solid var(--oxblood); border-radius: 3px; cursor: pointer; }
.home section.success button.copy:hover { background: #f6f3ec; }
.home section.success button.copy:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }
