/* Paper field bulletin. System fonts only. No external assets. */

:root {
  --desk: #cfc6b8;
  --paper: #f3eee4;
  --ink: #1c1612;
  --muted: #4a433c;
  --soft: #ddd4c6;
  --spine: #7c1e16;
  --breaking-bg: #f8e4dc;
  --manual-bg: #f6e7d4;
  --migration-bg: #f3e6c4;
  --deprecation-bg: #e7e4dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "DejaVu Serif", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Liberation Sans", "DejaVu Sans", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", "Segoe UI Mono", "Liberation Mono", "DejaVu Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #f3d2cc;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--spine); }

a:focus-visible {
  outline: 2px solid var(--spine);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 0.6rem;
  top: 0.6rem;
  z-index: 2;
  background: var(--paper);
  padding: 0.3rem 0.5rem;
}

.sheet {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.15rem 1.05rem 2.6rem 1.55rem;
  background: var(--paper);
  overflow-wrap: break-word;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.7rem;
  background: repeating-linear-gradient(
    -45deg,
    var(--spine) 0 6px,
    var(--paper) 6px 9px,
    var(--ink) 9px 10px,
    var(--paper) 10px 14px
  );
}

h1, h2, h3 { text-wrap: balance; }

.mast h1 {
  margin: 0.35rem 0 0.35rem;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.7rem, 8vw, 4.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.mast h1 span {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 0.34em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mast-row,
.dateline,
.eyebrow,
.issue-id,
.kicker,
.meta,
.stats,
nav,
footer,
.stamp,
.applist,
table,
.subscribe,
.banner,
.subline {
  font-family: var(--sans);
}

.mast-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow, .issue-id { margin: 0; }

.dek {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-style: italic;
}

.dateline {
  margin: 0.7rem 0 0;
  padding-top: 0.45rem;
  border-top: 3px double var(--ink);
  font-size: 0.98rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  padding: 0.15rem 0;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--spine);
  text-decoration-thickness: 2px;
}

.brand {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand a { text-decoration: none; }

main h1 {
  margin: 0.4rem 0 0.3rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.kicker {
  margin: 1.45rem 0 0.15rem;
  color: var(--spine);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.12rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 0.9rem 0 0.4rem;
  padding: 0.55rem 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
}

.stats strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.meta, .subline {
  color: var(--muted);
  font-size: 0.92rem;
}

.stamp {
  display: inline-block;
  margin: 0.1rem 0.15rem 0.1rem 0;
  padding: 0.08rem 0.38rem 0.05rem;
  border: 1.5px solid currentColor;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.stamp.breaking { color: var(--spine); background: var(--breaking-bg); }
.stamp.manual { color: #7a3e12; background: var(--manual-bg); }
.stamp.migration { color: #6d4e12; background: var(--migration-bg); }
.stamp.deprecation { color: #3e4654; background: var(--deprecation-bg); }
.stamp.kev { color: #fff; background: var(--spine); border-color: var(--spine); }
.stamp.listed { color: var(--spine); background: transparent; }
.stamp.pre { color: var(--muted); background: transparent; border-style: dashed; }

.flag, .kev {
  margin: 0.9rem 0 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--soft);
}

blockquote {
  margin: 0.45rem 0 0.6rem;
  padding: 0.1rem 0 0.1rem 0.85rem;
  border-left: 3px solid var(--spine);
}

blockquote p { margin: 0.3rem 0; }

.source { margin: 0.2rem 0 0; font-family: var(--sans); font-size: 0.92rem; }

.ver { font-family: var(--mono); font-size: 0.92rem; }

table.log {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

table.log caption {
  caption-side: bottom;
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

table.log th {
  padding: 0.3rem 0.4rem 0.3rem 0;
  border-bottom: 2px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

table.log td {
  padding: 0.5rem 0.45rem 0.5rem 0;
  border-bottom: 1px solid var(--soft);
  vertical-align: baseline;
}

details summary {
  cursor: pointer;
  font-size: 0.88rem;
}

.quiet, .oldkev, .cves, .issues, .applist {
  padding: 0;
  list-style: none;
}

.quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}

.cves li, .oldkev li, .issues li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--soft);
}

.issues { margin: 0.4rem 0 1rem; }

.issues li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  align-items: baseline;
}

.applist li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--soft);
}

.blurb { color: var(--muted); font-size: 0.92rem; }

.callout, .banner {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.banner {
  background: var(--breaking-bg);
  border-color: var(--spine);
}

.banner ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.subscribe {
  margin: 1.4rem 0 0.4rem;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px dashed var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

.subscribe h2 { margin-top: 0.1rem; }

.subscribe iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--ink);
  background: #fff;
}

.colophon {
  margin-top: 2rem;
  padding-top: 0.8rem;
  border-top: 3px double var(--ink);
  color: var(--muted);
  font-size: 0.88rem;
}

.colophon p { margin: 0.3rem 0; }

.links { font-family: var(--sans); }

@media (max-width: 700px) {
  table.log thead { display: none; }

  table.log tr {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ink);
  }

  table.log td {
    display: block;
    padding: 0.12rem 0;
    border: 0;
  }

  table.log td:first-child { font-weight: 700; }
}

@media (min-width: 760px) {
  body {
    padding: 1.5rem 1rem 3rem;
    background:
      radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.35), transparent 46%),
      var(--desk);
  }

  .sheet {
    border: 1px solid var(--ink);
    box-shadow: 12px 12px 0 var(--ink);
  }
}

@media print {
  body { background: #fff; padding: 0; }
  .sheet { border: 0; box-shadow: none; max-width: none; }
  .sheet::before { display: none; }
  nav, .subscribe, .skip, .subline { display: none; }
  a { text-decoration: underline; }
}
