:root {
  --ink: #03142F;
  --ink-2: #10264A;
  --gold: #D6AA54;
  --gold-light: #F4D895;
  --gold-text: #8A5A14;
  --tint: #EEF2F7;
  --line: #D5DAE2;
  --muted: #5B6475;
  --paper: #FAFAF8;
  --hairline: #E6E6E1;
  --stage: #F1F1EE;
  --font: "Anek Latin", system-ui, sans-serif;
  --wrap: 72rem;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { font-stretch: 75%; font-weight: 700; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.05rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.45rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.btn {
  display: inline-block;
  padding: 0.7em 1.2em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }

/* The letterhead's diagonal gold band. */
.stripe {
  height: 14px;
  background: linear-gradient(115deg, var(--ink) 0 36%, var(--gold) 36% 39%, var(--ink) 39% 41%, var(--gold) 41%, var(--gold-light) 72%, var(--gold));
}

/* Drawing-sheet title block: 1px gaps on an ink background draw the cell rules. */
.title-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.title-block > div { background: var(--paper); padding: 0.6rem 0.9rem; }
.title-block span { display: block; font-size: 0.8rem; color: var(--muted); }
/* Padding with an equal negative margin gives a 44px tap target and leaves the cell height alone. */
.title-block a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; font-weight: 600; }
.title-block--dark { background: var(--gold); border-color: var(--gold); }
.title-block--dark > div { background: var(--ink); color: #fff; }
.title-block--dark span { color: var(--gold-light); }

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