/* ReadySetSay printable handouts (handouts/*.html).
   Self-contained for the strict CSP: no inline styles, no web fonts, nothing from another host.
   Print: black on white, one page on US Letter AND A4. @page sets no size, so the printer's own paper is used;
   the content is sized to fit the smaller of the two (A4 width, Letter height). Every size inside .sheet is in em,
   so the print font-size on .sheet scales the whole page.
   Fonts: installed, non-variable faces first (Avenir Next, Helvetica Neue, Segoe UI, Arial). Variable system fonts
   (SF Pro via system-ui) end up as large Type 3 fonts in Chrome's PDFs, so they are only the last fallback. */

:root {
  --ink: #000;
  --ink-soft: #222;
  --rule: #000;
  --rule-soft: #9a9a9a;
  --paper: #fff;
  --cream: #FFF9F0;
  --font: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, system-ui, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.4;
}

a { color: inherit; text-underline-offset: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Screen-only bar above the sheet ---------- */

.toolbar {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.toolbar p { margin: 0; }
.toolbar .pdfs { font-weight: 700; }

/* ---------- The sheet ---------- */

.sheet {
  display: block;
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 40px 44px;
  background: var(--paper);
  font-size: 17px;
  line-height: 1.38;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sheet:focus { outline: none; }

.sheet h1,
.sheet h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}

.sheet p,
.sheet ul,
.sheet ol,
.sheet dl,
.sheet dd { margin: 0; }

.sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1em;
  align-items: start;
  padding-bottom: 0.5em;
  border-bottom: 3px solid var(--rule);
}

.sheet h1 { font-size: 2.05em; letter-spacing: -0.01em; }

.subtitle {
  margin-top: 0.1em;
  font-size: 1.08em;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  font-size: 0.95em;
  white-space: nowrap;
}

.brand img { width: 1.9em; height: 1.9em; }

.intro {
  grid-column: 1 / -1;
  margin-top: 0.45em;
  font-size: 1.04em;
}

.sheet section { margin-top: 0.65em; }

.sheet h2 {
  font-size: 1.24em;
  margin-bottom: 0.25em;
}

.kicker { font-weight: 500; font-size: 0.8em; margin-left: 0.3em; }

/* Starters table */

.starters table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.08em;
  border-top: 2px solid var(--rule);
}

.starters th,
.starters td {
  padding: 0.12em 0.5em;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.starters th {
  width: 7.4em;
  padding-left: 0;
  white-space: nowrap;
  font-weight: 700;
}

/* Everyday routines */

.moments dl { border-top: 2px solid var(--rule); }

.moments dl > div {
  display: grid;
  grid-template-columns: 10.6em 1fr;
  gap: 0 0.6em;
  padding: 0.12em 0;
  border-bottom: 1px solid var(--rule-soft);
}

.moments dt { font-weight: 700; }
.moments dd { font-size: 1.04em; }

.hard-note { margin-top: 0.35em; }

/* How to say them / What to skip */

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0 1.5em;
}

.how ol,
.skip ul { padding-left: 1.15em; }

.how li + li,
.skip li + li { margin-top: 0.2em; }

.uses { margin-top: 0.35em; }

.sheet .honest {
  padding: 0.45em 0.7em 0.5em;
  border: 2px solid var(--rule);
}

.honest h2 { font-size: 1.04em; margin-bottom: 0.15em; }
.honest p { font-size: 0.95em; }

.sheet-foot {
  margin-top: 0.6em;
  padding-top: 0.35em;
  border-top: 1px solid var(--rule);
  font-size: 0.84em;
  color: var(--ink-soft);
}

.sheet-foot p + p { margin-top: 0.1em; }
.sheet-foot strong { color: var(--ink); }

/* ---------- Narrow screens (screen only: a printed page is narrower than 720px too) ---------- */

@media screen and (max-width: 720px) {
  .sheet { padding: 24px 16px; font-size: 16px; margin-bottom: 16px; }
  .sheet-head { grid-template-columns: 1fr; }
  .brand { grid-row: 1; margin-bottom: 0.5em; }
  .moments dl > div { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .starters th { width: auto; }
  .kicker { display: block; margin: 0.2em 0 0; }
}

/* ---------- Print ---------- */

@page { margin: 11mm 12mm; }

@media print {
  body { background: var(--paper); }
  .screen-only { display: none !important; }
  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    font-size: 10.2pt;
    line-height: 1.3;
  }
  .sheet a { text-decoration: none; }
  .sheet section,
  .sheet-foot { break-inside: avoid; }
}
