:root {
  color-scheme: light;
  --bg: #f4f3ec;
  --ink: #202c26;
  --muted: #48574c;
  --line: #647064;
  --paper: #fffef8;
  --wash: #e2e7d9;
  --lime: #e1f59a;
  --red: #762f29;
  --font: Candara, "Trebuchet MS", "Segoe UI", Optima, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--font); }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
main:focus { outline: none; }
main { min-width: 0; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 76px; line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: 32px; line-height: 1.16; letter-spacing: -.025em; }
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; }
p + p { margin-top: 16px; }
ul { padding-left: 24px; }
li + li { margin-top: 12px; }
figure { min-width: 0; }
img { display: block; max-width: 100%; }
.w { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.c { min-width: 0; max-width: 68ch; }
.c > p { max-width: 68ch; }
.a { min-height: 48px; min-width: 44px; display: inline-flex; align-items: center; padding: 10px 12px; font-size: 18px; line-height: 1.4; }
.hd { display: flex; justify-content: space-between; align-items: center; min-height: 112px; gap: 32px; border-bottom: 2px solid var(--ink); }
.id { padding-left: 0; text-decoration: none; gap: 14px; font-size: 24px; font-weight: 700; line-height: 1.18; }
.subid { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; letter-spacing: .01em; }
.mark { display: block; position: relative; width: 28px; height: 42px; flex: 0 0 28px; border-left: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }
.mark::before { content: ""; position: absolute; width: 12px; height: 12px; background: var(--lime); border: 2px solid var(--ink); left: 7px; top: 0; }
.mark::after { content: ""; position: absolute; left: 7px; top: 23px; width: 12px; height: 4px; background: var(--ink); }
.tag { margin: 0; color: var(--muted); font-size: 16px; }
.nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.ng { padding: 14px 20px 12px; min-width: 0; }
.ng:first-child { padding-left: 0; }
.ng + .ng { border-left: 1px solid var(--line); }
.nh { padding: 8px 0; font-size: 20px; font-weight: 700; text-decoration: none; gap: 12px; }
.nh::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--ink); flex: 0 0 10px; }
.nh[aria-current="page"]::before { background: var(--ink); box-shadow: 0 0 0 5px var(--lime); }
.subnav { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.ns { font-size: 16px; padding: 8px 0; color: var(--muted); }
.skip { position: absolute; top: 12px; left: 16px; background: var(--ink); color: var(--paper); padding: 12px 20px; z-index: 10; transform: translateY(-180%); }
.skip:focus { transform: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr); align-items: center; gap: 88px; padding-block: 64px 72px; }
.hero .k { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { font-size: 26px; line-height: 1.38; margin-bottom: 24px; }
.k { font-size: 16px; font-weight: 700; letter-spacing: .035em; }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.go { padding: 14px 20px; background: var(--ink); color: var(--paper); text-decoration: none; border: 2px solid var(--ink); font-weight: 700; }
.go::after { content: "↗"; font-weight: 400; margin-left: 18px; }
.go:hover { background: var(--lime); color: var(--ink); }
.more { padding-left: 0; font-weight: 700; }
.pic { background: var(--wash); position: relative; overflow: hidden; aspect-ratio: 8 / 5; border-top: 12px solid var(--ink); }
.pic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 32%, rgba(32, 44, 38, .08) 32%, rgba(32, 44, 38, .08) 47%, transparent 47%); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 16px; color: var(--ink); }
.ph.tall .pic { aspect-ratio: 4 / 5; }
.ph figcaption { font-size: 16px; line-height: 1.5; color: var(--muted); padding: 12px 0 0; }
.ph .pic::after { content: ""; position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); background: var(--lime); pointer-events: none; }
.br { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; background: var(--lime); border-top: 2px solid var(--ink); padding: 26px 28px; }
.bl { font-size: 24px; font-weight: 700; line-height: 1.38; letter-spacing: -.012em; margin: 0; max-width: 52ch; }
.br p { margin: 0; }
.ch, .alarm { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding: 52px 28px 60px; border-top: 2px solid var(--ink); }
.ch > div:first-child h2 { max-width: 12ch; }
.ch .date { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
.defs { margin: 28px 0 24px; border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
dt { font-weight: 700; }
dd { margin: 0; }
.it { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.it h3 { margin-bottom: 14px; }
.it:first-of-type { margin-top: 0; }
.en { margin-top: 32px; padding-top: 22px; border-top: 1px dashed var(--line); }
.en h3 { font-size: 18px; letter-spacing: 0; margin-bottom: 10px; }
.n { list-style: none; padding: 0; }
.n li + li { margin: 2px 0 0; }
.nt { padding: 8px 0; font-size: 16px; color: var(--muted); max-width: 100%; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-top: 2px solid var(--ink); padding: 36px 28px; background: var(--wash); }
.sub { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 72px; }
.sub h1 { font-size: 60px; max-width: 14ch; }
.sub .lead { font-size: 22px; margin-bottom: 0; max-width: 48ch; }
.cmp { margin-top: 28px; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl button { min-width: 44px; min-height: 48px; padding: 10px 16px; color: var(--ink); border: 2px solid var(--ink); background: var(--bg); border-radius: 0; font-size: 18px; line-height: 1.35; }
.ctl button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ctl button:disabled { cursor: default; opacity: 1; }
.ctl button:not(:disabled):hover { box-shadow: inset 0 -4px var(--lime); }
.stat { font-size: 16px; color: var(--muted); margin: 14px 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pair[data-one] { grid-template-columns: minmax(0, 1fr); max-width: 52ch; }
.opt { background: var(--paper); padding: 24px; border: 1px solid var(--ink); }
.opt h3 { margin-bottom: 18px; }
.opt li { font-size: 18px; line-height: 1.5; }
.checks { margin: 24px 0; }
.checks > div { border-top: 1px solid var(--line); padding: 20px 0; }
.checks dt { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.checks .a { margin-top: 8px; }
.alarm { background: var(--paper); border-top: 5px solid var(--red); }
.alarm h2 { color: var(--red); }
.urgent { color: var(--red); font-weight: 700; font-size: 24px; line-height: 1.45; }
.ft { margin-top: 56px; padding: 32px 0 48px; border-top: 2px solid var(--ink); }
.ft p { max-width: 70ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 16px; }
.ft .a { padding-left: 0; font-size: 16px; }
.lost { padding: 72px 0 88px; max-width: 65ch; }
.lost .k { margin-bottom: 24px; }
.lost h1 { font-size: 64px; margin-bottom: 24px; }
.lost .lead { font-size: 22px; line-height: 1.5; margin-bottom: 28px; }

@media (max-width: 1100px) {
  .w { width: calc(100% - 64px); }
  .hero, .sub { gap: 48px; }
  h1 { font-size: 64px; }
  .sub h1 { font-size: 52px; }
  .ch, .alarm, .br { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; padding-inline: 20px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .subnav { gap: 2px 12px; }
}

@media (max-width: 760px) {
  .w { width: calc(100% - 40px); }
  .hd { min-height: 90px; gap: 16px; }
  .id { font-size: 22px; }
  .tag { max-width: 18ch; text-align: right; line-height: 1.35; }
  .ng { padding: 12px 10px; }
  .ng:first-child { padding-left: 0; }
  .ng:last-child { padding-right: 0; }
  .nh { font-size: 18px; gap: 8px; }
  .subnav { flex-direction: column; gap: 0; }
  .ns { line-height: 1.3; }
  .hero, .sub { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 44px; }
  h1, .sub h1 { font-size: 52px; max-width: 18ch; }
  .hero .k { margin-bottom: 20px; }
  .hero .lead, .sub .lead { font-size: 22px; }
  .ph.tall .pic { aspect-ratio: 8 / 5; }
  .pic { border-top-width: 8px; }
  .br, .ch, .alarm { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 20px; }
  .ch > div:first-child h2 { max-width: 22ch; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
  .bl { font-size: 22px; }
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .next { flex-direction: column; align-items: flex-start; padding: 28px 20px; gap: 20px; }
  .ft { margin-top: 36px; padding-bottom: 36px; }
  .ft nav { gap: 0 24px; }
  .lost { padding-block: 48px; }
  .lost h1 { font-size: 52px; }
}

@media (max-width: 420px) {
  .hd { flex-wrap: wrap; align-content: center; gap: 0; padding-block: 14px; }
  .id { width: 100%; }
  .tag { max-width: none; text-align: left; margin: 8px 0 0; }
  .nh { font-size: 16px; }
  .nh::before { display: none; }
  .nh[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .ns { font-size: 16px; }
  .ng { padding-inline: 8px; }
  h1, .sub h1 { font-size: 46px; }
  .hero .lead, .sub .lead { font-size: 21px; }
  .br, .ch, .alarm, .next { padding-inline: 16px; }
  .opt { padding: 20px; }
  .ctl { gap: 6px; }
  .ctl button { padding-inline: 12px; font-size: 16px; }
  .urgent { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .w { width: 100%; }
  .hd, .nav, .ft, .acts, .next, .ctl, .stat, .skip, .ph { display: none; }
  .hero, .sub { display: block; padding: 0 0 24px; }
  .hero h1, .sub h1 { font-size: 36px; }
  .ch, .alarm, .br { display: block; padding: 20px 0; background: #fff; }
  .ch h2, .alarm h2 { margin-bottom: 16px; max-width: none; }
  .br .k { margin-bottom: 8px; }
  .pair, .pair[data-one] { display: block; max-width: none; }
  .opt, .opt[hidden] { display: block !important; background: #fff; margin-bottom: 16px; break-inside: avoid; }
  .opt h3 { margin-bottom: 12px; }
  .en { break-inside: avoid; }
  a { text-decoration: underline; }
  .a { min-height: 0; padding-block: 4px; }
}
