:root {
  color-scheme: light;
  --ink: #1d2522;
  --muted: #5f6964;
  --paper: #f5f1e8;
  --panel: #fffdf8;
  --line: #d9d1c2;
  --green: #173e35;
  --green-soft: #dfe9e4;
  --gold: #aa7c36;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  padding: 20px 0;
  color: white;
  background: var(--green);
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-label {
  font-family: Arial, sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}

.intro { padding: 64px 0 36px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 .8rem/1.2 Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: .98;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font: 1.08rem/1.65 Arial, sans-serif;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0 64px;
}

.option {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(35, 45, 40, .06);
}

.option.recommended { border-top: 5px solid var(--green); }
.option.deprecated { border-top: 5px solid #8b4a3d; }

.badge {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font: 700 .68rem/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.deprecated .badge { color: #71362d; background: #f1dfdb; }

.option h2 {
  margin: 22px 0 8px;
  font-size: 1.8rem;
  font-weight: 400;
}

.summary {
  margin: 0 0 18px;
  color: var(--muted);
  font: .98rem/1.55 Arial, sans-serif;
}

.option ul {
  margin: 0 0 24px;
  padding-left: 20px;
  font: .92rem/1.55 Arial, sans-serif;
}

.option li + li { margin-top: 7px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--green);
  text-decoration: none;
  font: 700 .8rem/1 Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.button.primary { color: white; background: var(--green); }
.button:hover, .button:focus-visible { outline: 3px solid #d3b57b; outline-offset: 2px; }

.note {
  margin: 0 0 64px;
  padding: 24px;
  border-left: 5px solid var(--gold);
  background: #eee6d6;
  font: .95rem/1.6 Arial, sans-serif;
}

.viewer-page {
  min-height: 100vh;
  background: #dfe1de;
}

.viewer-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  color: white;
  background: var(--green);
  font-family: Arial, sans-serif;
}

.viewer-header h1 { font-size: 1.2rem; line-height: 1.2; }
.viewer-header a { text-underline-offset: 4px; }

.pdf-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.pdf-controls button,
.pdf-controls a {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.55);
  color: white;
  background: transparent;
  cursor: pointer;
  font: 700 .72rem/1 Arial, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.pdf-controls button:hover,
.pdf-controls button:focus-visible,
.pdf-controls a:hover,
.pdf-controls a:focus-visible {
  color: var(--green);
  background: white;
  outline: 3px solid #d3b57b;
  outline-offset: 2px;
}

#page-status { min-width: 90px; text-align: center; font-size: .84rem; }

.pdf-stage {
  display: grid;
  min-height: calc(100vh - 68px);
  place-items: start center;
  overflow: auto;
  padding: 28px;
  background: #c9cdca;
}

#pdf-canvas {
  display: block;
  max-width: none;
  background: white;
  box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.pdf-error {
  max-width: 620px;
  padding: 24px;
  color: #5c2b22;
  background: #f4ded8;
  font: 1rem/1.5 Arial, sans-serif;
}

@media (max-width: 760px) {
  .options { grid-template-columns: 1fr; }
  .masthead .shell, .viewer-header { align-items: flex-start; flex-direction: column; }
  .pdf-controls { justify-content: flex-start; }
  .pdf-stage { min-height: calc(100vh - 126px); padding: 12px; }
}
