/* johannafarrimond.com — shared stylesheet.
   Values taken from the approved design comp (Second Opinion Page v6, frames 1a/1b/2a/2b).
   Two type scales only: desktop, and phone at 640px. There is no tablet step in the comp. */

:root {
  --ink:   #1A1A1A;
  --muted: #575757;
  --rule:  #D6D6D6;
  --field: #B5B5B5;
  --link:  #14538C;
  --paper: #FFFFFF;

  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 29px;
  -webkit-text-size-adjust: 100%;
}

.page    { padding: 96px 24px; }
.column  { max-width: 620px; margin: 0 auto; }

/* ── Masthead and footer ─────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow a { color: var(--muted); text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.site-footer {
  margin: 8px 0 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.rule-top { border-top: 1px solid var(--rule); margin: 48px 0 0; }

/* ── Type ────────────────────────────────────────────────────────────────── */

h1 { font-size: 30px; line-height: 38px; font-weight: 700; margin: 24px 0 0; }
h2 { font-size: 23px; line-height: 30px; font-weight: 700; margin: 48px 0 0; }
h3 { font-size: 19px; line-height: 29px; font-weight: 700; margin: 32px 0 0; }

p  { margin: 16px 0 0; }
p:first-child { margin-top: 0; }
.lede { margin: 24px 0 0; }

ol, ul { margin: 16px 0 0; padding: 0 0 0 28px; }
ol > li, ul > li { margin: 16px 0 0; }
ol > li:first-child, ul > li:first-child { margin-top: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

/* One visible focus treatment everywhere. The comp notated this rather than
   implementing it; :focus-visible keeps it off mouse clicks. */
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ── Call to action ──────────────────────────────────────────────────────── */

.cta { margin: 32px 0 0; }
.cta a { display: inline-block; padding: 8px 0; }
.cta p { margin: 0; }

/* ── The gate table ──────────────────────────────────────────────────────── */

.gate-table {
  border-collapse: collapse;
  width: 100%;
  margin: 32px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 24px;
}
.gate-table th {
  text-align: right;
  font-weight: 700;
  padding: 6px 0 6px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: bottom;
}
.gate-table th:first-child { text-align: left; padding-left: 0; }
.gate-table td { text-align: right; padding: 6px 0 6px 16px; }
.gate-table td:first-child { text-align: left; padding-left: 0; font-weight: 700; }
.gate-table td:last-child { font-weight: 700; }

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

/* ── Verbatim samples: the brief and the decline note ────────────────────── */

.sample {
  max-width: 520px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 25px;
  margin: 24px 0 0;
  border-left: 2px solid var(--rule);
  padding-left: 16px;
}
.sample .label { font-weight: 700; margin: 24px 0 0; color: var(--muted); }
.sample .label + p { margin: 8px 0 0; }
.sample .meta { margin: 0; color: var(--muted); }

.forecast {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 24px;
  margin: 16px 0 0;
}
.forecast div { margin: 16px 0 0; }
.forecast div:first-child { margin: 0; }

.sample-cap { margin: 24px 0 0; }
.sample-cap-tight { margin: 8px 0 0; }
.rule-tight { border-top: 1px solid var(--rule); margin: 8px 0 0; }

/* ── The intake banner ───────────────────────────────────────────────────── */

/* Body size, not fine print. It carries a legal requirement, but its job is to
   be read before anyone starts typing, and a compliance notice in small grey
   type achieves the opposite of what it exists for. */
.banner {
  border-left: 2px solid var(--ink);
  padding: 0 0 0 20px;
  margin: 40px 0 0;
}
.banner p { margin: 12px 0 0; }
.banner p:first-child { margin: 0; }

/* ── Form ────────────────────────────────────────────────────────────────── */

.q { margin: 40px 0 0; }
.q-stem { font-weight: 700; }
.q-help {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 0 0;
}
.q-help p { margin: 10px 0 0; }
.q-help p:first-child { margin: 0; }

.field-label {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 0;
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}
textarea { resize: vertical; }

.w-short { max-width: 320px; }

/* Box size is an instruction, and it is obeyed more reliably than the label
   above it. Q2 must stay visibly the largest field on the form: it asks for
   three incidents with dates and dialogue, and a standard-height box returns a
   one-line answer, which is a decline. Do not equalise these heights. */
.f-xl { height: 360px; }   /* Q2 only */
.f-md { height: 150px; }   /* Q1b, Q5 */
.f-lg { height: 190px; }   /* Q3, two branches */
.f-sm { height: 110px; }   /* Q4, a list */

.note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Q6: two yes/no controls, no free text. */
.choices { display: flex; gap: 28px; margin: 14px 0 0; }
.choice {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.choice input { margin: 0; width: 18px; height: 18px; accent-color: var(--ink); }

/* Outlined, not filled. Taken from the comp. A filled black button reads as a
   conversion control on a page whose whole register is the absence of one. */
button[type="submit"] {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 24px;
  cursor: pointer;
  margin: 32px 0 0;
}
button[type="submit"]:hover { background: var(--ink); color: var(--paper); }

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.errors {
  border-left: 2px solid var(--ink);
  padding: 0 0 0 20px;
  margin: 32px 0 0;
}
.errors ul { margin: 8px 0 0; }
.errors li { margin: 4px 0 0; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 23px;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--rule);
}
.legal th { font-weight: 700; }
.legal .address { margin: 16px 0 0; }

.pending {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
}

/* ── Phone ───────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 17px; line-height: 27px; }

  .page { padding: 48px 20px 96px; }

  h1 { font-size: 26px; line-height: 33px; }
  h2 { font-size: 21px; line-height: 27px; }
  h3 { font-size: 17px; line-height: 27px; }

  /* Q2 stays proportionally dominant. */
  .f-xl { height: 300px; }
  .f-lg { height: 170px; }
  .f-md { height: 130px; }
  .f-sm { height: 100px; }

  .w-short { max-width: 100%; }

  .site-footer { gap: 12px; flex-direction: column; }
}
