:root {
  color-scheme: light;
  --ink: #24231e;
  --paper: #fffaf0;
  --sand: #f3e8d1;
  --line: #dacfba;
  --accent: #244c38;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .19em; }
a:focus-visible { outline: 3px solid #a04424; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 67rem); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .7rem; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 145px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
main { padding-block: clamp(1.6rem, 5vw, 4rem); }
.hero { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: center; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 16ch; margin: 0 0 .8rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .65rem; }
h3 { margin: 0 0 .5rem; }
p { max-width: 65ch; margin: .45rem 0 .9rem; }
.lead { font-size: 1.15rem; }
figure { margin: 0; }
.hero img { display: block; width: 100%; height: auto; border-radius: 1.1rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; padding: .6rem 1rem; background: var(--accent); color: white; text-decoration: none; border-radius: .6rem; font-weight: 650; }
section { margin-top: 2.3rem; }
.entries { display: grid; gap: 1rem; }
.card, .dialogue, .caller { border: 1px solid var(--line); border-radius: .85rem; background: var(--sand); padding: 1rem; }
.dialogue dt { font-weight: 650; }
.dialogue dd { margin: 0 0 1rem; }
.dialogue dd:last-child { margin-bottom: 0; }
footer { padding-block: 1rem; border-top: 1px solid var(--line); }
.skip { position: absolute; top: -100px; left: 1rem; padding: .5rem; background: white; }
.skip:focus { top: .5rem; }
@media (min-width: 50rem) { .hero { grid-template-columns: 1fr 1fr; gap: 3rem; } .entries { grid-template-columns: repeat(3, 1fr); } }
@media print {
  body { background: white; color: black; }
  header, footer, .skip, .button, .hero figure, .print-note { display: none; }
  main { padding: 0; } .wrap { width: 100%; }
  .hero, .entries { display: block; } h1 { font-size: 24pt; }
  .caller-pages { break-before: page; }
  .caller { break-inside: avoid; background: white; }
}
/* Segment page 3.1 (phone-english-for-work): five lines, two four-column tables that fit 320px, a closing button. */
.lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; max-width: 40rem; }
.lines li { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: .6rem; background: var(--sand); padding: .7rem .9rem; font-size: 1.08rem; font-weight: 600; }
.pairs { width: 100%; max-width: 40rem; border-collapse: collapse; margin-top: .4rem; }
.pairs caption { text-align: left; font-weight: 650; padding-bottom: .45rem; }
.pairs th, .pairs td { padding: .5rem .45rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: normal; hyphens: manual; }
.pairs thead th { font-size: .82rem; font-weight: 650; line-height: 1.25; border-bottom: 2px solid var(--ink); }
.pairs tbody th { font-weight: 650; }
.pairs tbody tr:nth-child(odd) { background: var(--sand); }
.pairs td:nth-child(3) { border-left: 1px solid var(--line); }
section > .button { margin-top: .6rem; }
@media (max-width: 26rem) { .pairs { font-size: .94rem; } .pairs th, .pairs td { padding: .45rem .3rem; } }
.pairs tbody th, .pairs td { white-space: nowrap; }
.letters td:nth-child(2) { border-left: 1px solid var(--line); }
@media (max-width: 26.25rem) { .pairs { font-size: .875rem; } .pairs th, .pairs td { padding: .45rem .2rem .45rem 0; } .pairs th:first-child { padding-left: .25rem; } .pairs td:nth-child(3), .letters td:nth-child(2) { padding-left: .25rem; } .pairs tbody th { font-weight: 600; } }
/* Number table on narrow phones: each pair becomes a 2x2 block (teen row over ty row), so no cell is squeezed whatever the system font. */
@media (max-width: 26.25rem) {
  .pairs:not(.letters), .pairs:not(.letters) thead, .pairs:not(.letters) tbody { display: block; }
  .pairs:not(.letters) caption { display: block; }
  .pairs:not(.letters) tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .pairs:not(.letters) th, .pairs:not(.letters) td { border-bottom: 0; padding: .3rem .25rem; }
  .pairs:not(.letters) td:nth-child(3) { border-left: 0; }
  .pairs:not(.letters) thead tr { border-bottom: 2px solid var(--ink); }
}
