/* Squawk: the public site. One page family, one paper, one stamp. */
:root {
  --ink: #1a1c21;
  --muted: #5c6270;
  --blue: #1f3a93;
  --blue-deep: #172c72;
  --rule: #e3e5ea;
  --paper: #f5eec4;
  --paper-rule: #cdbf8e;
  --paper-deep: #e9df9f;
  --stamp: #b3261e;
  --page: #ffffff;
  --measure: 68rem;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); background: var(--page); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: 1.55rem; margin-top: 0; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; max-width: 40rem; }
code, pre, kbd { font-family: var(--mono); font-size: 0.93em; }
pre { margin: 0; padding: 1rem 1.2rem; background: var(--ink); color: #f4f5f7; border-radius: 6px; overflow-x: auto; line-height: 1.6; }
pre code { color: inherit; }
button, .button { font: 600 1rem/1 var(--sans); padding: 0.8rem 1.15rem; background: var(--blue); color: #fff; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { background: var(--blue-deep); color: #fff; }
button.quiet { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
input[type=text], input[type=email], textarea, select { width: 100%; padding: 0.6rem 0.7rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9bdc7; border-radius: 6px; }
textarea { min-height: 6rem; resize: vertical; }
label { display: block; font-weight: 600; margin: 1.1rem 0 0.3rem; }
label small { font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* Top bar */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0 1rem; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.brand { font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand small { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-left: 0.6rem; }
.top nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a[aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.top nav a:hover { color: var(--blue); }

/* Sections */
section { padding: 3rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.hero .lede { font-size: 1.15rem; }
.counts { margin-top: 1.4rem; color: var(--muted); }
.counts strong { color: var(--ink); font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.three h3 { margin-top: 0; }
.three p { margin-bottom: 0.5rem; }
.grid-sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 12rem; }
.row button { flex: 0 0 auto; }
.note { font-size: 0.95rem; color: var(--muted); }
.error { color: var(--stamp); }
.success { color: var(--blue); }

/* The squawk sheet */
.sheet { position: relative; background: var(--paper); color: var(--ink); padding: 1.2rem 1.35rem 1rem; border-radius: 4px; box-shadow: 0 1px 0 var(--paper-deep) inset, 0 0 0 1px var(--paper-rule); }
.sheet-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; border-bottom: 2px solid var(--blue); padding-bottom: 0.5rem; margin-bottom: 0.4rem; padding-right: 6.5rem; }
.sheet-title { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.sheet-id { font-family: var(--mono); font-size: 0.85rem; color: var(--blue); }
.sheet-month { color: var(--muted); font-size: 0.9rem; margin-left: auto; }
.sheet dl { margin: 0; }
.sheet dl > div { padding: 0.55rem 0 0.5rem; border-bottom: 1px solid var(--paper-rule); }
.sheet dl > div:last-child { border-bottom: 0; }
.sheet dt { font-size: 0.78rem; color: var(--blue); margin-bottom: 0.15rem; }
.sheet dd { margin: 0; font-family: var(--mono); font-size: 0.92rem; line-height: 1.55; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 2px solid var(--blue); font-size: 0.85rem; color: var(--muted); }
.sheet-foot .cat { color: var(--ink); font-weight: 600; }
.sheet-foot .seeded { color: var(--blue); }
.sheet-foot a { margin-left: auto; }
.stamp { position: absolute; top: 0.9rem; right: 1rem; transform: rotate(-8deg); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); border: 2px solid var(--stamp); border-radius: 3px; padding: 0.15rem 0.45rem; opacity: 0.85; }
.stamp.minor, .stamp.major { color: var(--ink); border-color: var(--ink); }
.sheet.compact dl > div.extra { display: none; }
.sheet.compact dd { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sheet.static { max-width: 44rem; }

/* Chart: one series, one hue, thin bars, direct labels */
.chart { display: grid; grid-template-columns: 16rem 1fr 3rem; gap: 0.35rem 0.8rem; align-items: center; max-width: 44rem; margin: 1rem 0 0.5rem; }
.chart .lbl { font-size: 0.92rem; text-align: right; color: var(--ink); }
.chart .bar { height: 10px; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; }
.chart .val { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart .track { background: var(--rule); border-radius: 4px; height: 10px; }

/* Bulletin */
.issue { max-width: 44rem; }
.issue h1 { font-size: 1.8rem; }
.issue h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.issues { padding-left: 1.2rem; }

footer.site { padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer.site p { max-width: 52rem; }
.foot-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.sheet.compact .sheet-head { padding-right: 5.5rem; }

@media (max-width: 860px) {
  .hero, .three, .grid-sheets { grid-template-columns: 1fr; }
  .chart { grid-template-columns: 9rem 1fr 2.5rem; }
  section { padding: 2.2rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
