/* The Small Operator - v0 stylesheet.
   System fonts only. No remote assets. No JavaScript. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --rule: #d8d4cc;
  --paper: #fbfaf8;
  --accent: #1a4f6e;
  --flag-bg: #fff4e0;
  --flag-edge: #b8730a;
  --max: 38rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.62;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- masthead ---- */

.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 1.75rem 0 1rem;
  margin-bottom: 2rem;
}

.masthead__name {
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 700;
}

.masthead__name a { color: var(--ink); text-decoration: none; }
.masthead__name a:hover { text-decoration: underline; }

.masthead__tagline {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

.nav {
  margin-top: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
}

.nav a {
  color: var(--accent);
  margin-right: 1.1rem;
  text-decoration: none;
}

.nav a:hover { text-decoration: underline; }

/* ---- type ---- */

h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.08rem; margin: 1.9rem 0 0.6rem; }

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); }

strong { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.25rem 0;
}

.dateline {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.lede { font-size: 1.1rem; }

/* ---- tables ---- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--rule);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.83rem;
  background: #fff;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

thead th {
  background: #f2efe9;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

tbody th { font-weight: 700; white-space: nowrap; }

/* ---- staging markers ---- */

.staging-flag {
  background: var(--flag-bg);
  border-left: 4px solid var(--flag-edge);
  padding: 0.8rem 1rem;
  margin: 1.4rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
}

.staging-flag__label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.73rem;
  color: var(--flag-edge);
  margin-bottom: 0.35rem;
}

/* ---- article list on home ---- */

.piece {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.piece h3 { margin-top: 0; font-size: 1.15rem; }
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { text-decoration: underline; }

.piece p { margin-bottom: 0.4rem; }

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 1.5rem 0 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.site-footer a { color: var(--accent); }
.site-footer p { margin-bottom: 0.5rem; }

/* ---- accessibility ---- */

a:focus-visible,
.skip:focus {
  outline: 3px solid var(--flag-edge);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: static;
  display: inline-block;
  margin: 0.5rem 1.25rem;
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.5rem; }
  .masthead__name { font-size: 1.3rem; }
}
