/* A sheet of paper under a bedside lamp, in a dark room: dim around the edges so it is easy on the eyes
   at night, dark ink on warm paper where she has to read. System fonts only: nothing to download. */
:root {
  --night: #161c33;
  --night-2: #222a49;
  --lamp: #ffe9ad;
  --moon: #fff4d6;
  --paper: #f9eecd;
  --ink: #1b1a2e;
  --ink-soft: #3a3850;
  --button: #1f2c6e;
  --alert: #8a1c10;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  font-size: 21px;
  line-height: 1.55;
}
main, footer { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0 1.15rem; }
a { color: inherit; text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.sheet :focus-visible { outline-color: var(--button); }

.hero {
  /* the lamp: one soft pool of light behind the sheet, fading to the night before the section ends */
  background: radial-gradient(closest-side at 50% 50%, rgba(255, 224, 150, .24), rgba(255, 224, 150, 0));
}
.hero-inner { max-width: 40rem; margin: 0 auto; padding: 2rem 1.15rem 1.5rem; }
h1 { margin: 0 0 .55rem; font-size: 2.3rem; line-height: 1.12; font-weight: 500; color: var(--lamp); letter-spacing: -.005em; }
.lede { margin: 0; font-size: 1.05em; line-height: 1.42; }

.sheet { background: var(--paper); color: var(--ink); border-radius: 3px; padding: 1.4rem 1.2rem 1.5rem; }
.sheet a { color: var(--button); }
.signup { max-width: calc(40rem - 2.3rem); margin: 0 1.15rem; }

label { display: block; font-weight: 700; margin-bottom: .3rem; }
input[type=email] {
  display: block; width: 100%; min-height: 3.5rem; padding: .55rem .8rem;
  font: inherit; font-size: 22px; color: var(--ink); background: #fffdf5;
  border: 2px solid var(--ink); border-radius: 6px;
}
input[type=email][aria-invalid=true] { border-color: var(--alert); border-width: 3px; }
button, .button {
  display: block; width: 100%; min-height: 3.9rem; margin-top: .85rem; padding: .7rem 1rem;
  font: inherit; font-size: 24px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  color: #fff; background: var(--button); border: 0; border-radius: 6px; cursor: pointer;
}
.sheet a.button { color: #fff; }
button:hover, .button:hover { background: #16205a; }
button[disabled] { opacity: .75; cursor: progress; }
.consent { margin: .85rem 0 0; font-size: 20px; line-height: 1.42; color: var(--ink); }
.status { margin: .7rem 0 0; font-size: 21px; font-weight: 700; color: var(--alert); }
.status:empty { display: none; }
.status a { font-weight: 700; }
/* Honeypot: off-screen for people, tempting for bots. Not display:none, which many bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

section { margin-top: 2.2rem; }
h2 { font-size: 1.28em; line-height: 1.2; margin: 0 0 .6rem; font-weight: 500; color: var(--lamp); }
.sheet h2 { color: var(--ink); }
ul.plain { margin: 0; padding-left: 1.2em; }
ul.plain li { margin-bottom: .45em; }
ol.steps { margin: 0; padding-left: 1.4em; }
ol.steps li { margin-bottom: .55em; }
p { margin: 0 0 .8em; }

.sample h3 { margin: 1em 0 .1em; font-size: 1em; }
.sample .night { margin: 0; color: var(--ink-soft); }
.sample .title { font-size: 1.25em; line-height: 1.2; font-weight: 700; margin: 0 0 .7rem; }
.sample blockquote { margin: 0; padding-left: .8rem; border-left: 3px solid var(--ink); }
.sample cite { display: block; font-style: normal; font-weight: 700; margin-top: .2em; }
.sample p:last-child { margin-bottom: 0; }
.sc { font-size: .88em; }
.note { color: var(--ink-soft); }

.again { display: inline-block; margin-top: .3rem; color: var(--lamp); font-weight: 700; }

footer { margin-top: 2.6rem; padding-top: 1.4rem; padding-bottom: 2.4rem; border-top: 1px solid #4a5175; }
footer p { margin-bottom: .7em; }
.crisis { font-weight: 700; }

.prose h1 { font-size: 2rem; }
.prose h2 { margin-top: 1.5em; }
.placeholder { background: #fff0a8; color: #000; padding: 0 .2em; font-weight: 700; }

@media (min-width: 44rem) {
  body { font-size: 22px; }
  .hero-inner { padding: 3.4rem 1.15rem 2rem; }
  h1 { font-size: 3.1rem; }
  .sheet { padding: 1.8rem 2rem 2rem; }
  .signup { margin: 0 auto; }
}
