/* madeinusa.charlessieg.com: tokens, base type, and page chrome. System fonts throughout; light and dark follow the device. */
/* Stars and stripes, quietly: pale blue-white paper and deep navy ink by day, near-black navy and light blue at night; red marks the foreign. */
:root {
  color-scheme: light dark;
  --paper: #F7F8FB;
  --sheet: #E9EDF5;
  --ink: #131B2E;
  --ink-soft: #444E66;
  --rule: #C9D0E0;
  --accent: #1D3A7A;
  --focus: #0B57D0;
  --status-us: #1D3A7A;
  --status-mixed: #8A5200;
  --status-none: #566073;
  --status-abroad: #A3262A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1424;
    --sheet: #172036;
    --ink: #E8ECF6;
    --ink-soft: #AAB4CC;
    --rule: #2A3654;
    --accent: #8DB1FF;
    --focus: #8AB4FF;
    --status-us: #8DB1FF;
    --status-mixed: #E3A340;
    --status-none: #A5AFC4;
    --status-abroad: #FF9A9A;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; }
li { margin: 0; }
img, svg { max-width: 100%; }

a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: 0; z-index: 10;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  font: 600 0.9rem var(--sans); transform: translateY(-120%);
}
.skip:focus { transform: translateY(0); }

.print-only { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Masthead: the mark, the name, and the nav, over one hairline. */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__name { font: 600 1.5rem/1 var(--serif); letter-spacing: 0.01em; }
.brand__mark { fill: var(--accent); flex: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; }
.nav a { font: 500 1rem/1.4 var(--sans); letter-spacing: 0.02em; text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Colophon (page footer) */
.colophon { margin-top: 5rem; border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.colophon__grid { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
.colophon__name { font: 600 1.5rem/1.1 var(--serif); color: var(--ink); margin-bottom: 0.4rem; }
.colophon__dek { margin: 0; max-width: 22rem; }
.colophon h2 { font: 600 1rem/1.3 var(--serif); letter-spacing: 0.02em; color: var(--ink); margin-bottom: 0.6rem; }
.colophon ul { list-style: none; display: grid; gap: 0.1rem; }
.colophon a { display: inline-block; padding-block: 0.2rem; color: var(--ink-soft); }
.colophon a:hover { color: var(--ink); }
.footer-current { display: inline-block; padding-block: 0.2rem; color: var(--ink); font-weight: 600; }
.colophon__fine { margin-top: 2.5rem; }
.colophon__fine::before { content: ""; display: block; border-top: 1px solid var(--rule); margin-bottom: 1.25rem; }
.colophon__fine p { margin: 0 0 0.35rem; max-width: 40rem; }

@media (min-width: 48rem) {
  .colophon__grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .colophon__grid nav:last-child ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}
