:root {
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --ink: #1a1612;
  --muted: #4a433b;
  --line: #d7cfc3;
  --accent: #8a3b12;
  --link: #153f66;
  --link-visited: #5a2a6e;
  --focus: #0b4f8a;
  --warn-bg: #f3e6d4;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  position: relative;
}

/* Logo tile sits above the cream fill, behind the article text. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/logo-tile.svg");
  background-repeat: repeat;
  background-position: top center;
  background-size: 240px auto;
  opacity: 0.32;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
  background: transparent;
}

@media (min-width: 40rem) {
  .page {
    padding: 2.25rem 1.5rem 4rem;
  }
}

.masthead {
  border-top: 6px solid var(--accent);
  background: transparent;
  padding: 1.25rem 1.25rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .masthead {
    padding: 1.5rem 1.6rem 1.25rem;
  }
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2rem;
  }
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  background: transparent;
  padding: 1.4rem 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 40rem) {
  main {
    padding: 1.75rem 1.6rem 2.4rem;
  }
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li {
  margin: 0 0 0.7rem;
}

li:last-child {
  margin-bottom: 0;
}

.note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--warn-bg);
  border-left: 4px solid var(--accent);
}

.note p {
  margin: 0;
}

footer {
  padding: 1.25rem 1.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  background: transparent;
}

@media (min-width: 40rem) {
  footer {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

footer p {
  margin: 0 0 0.7rem;
}

footer p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 253, 248, 0.86);
}

table.facts th,
table.facts td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  vertical-align: top;
  text-align: left;
}

.cell {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  text-align: left;
}

.cell .icon {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.18em;
}

.cell-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.icon-present {
  color: var(--link);
}

.icon-gap {
  color: var(--accent);
}

table.facts th {
  background: var(--warn-bg);
  font-weight: 700;
}

table.facts tbody tr:nth-child(even) td {
  background: #fbf7f0;
}

@media (max-width: 39.99rem) {
  table.facts thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  table.facts,
  table.facts tbody,
  table.facts tr,
  table.facts td {
    display: block;
    width: 100%;
  }

  table.facts tr {
    border: 1px solid var(--line);
    margin-bottom: 0.85rem;
    background: var(--paper);
  }

  table.facts td {
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent !important;
  }

  table.facts td:last-child {
    border-bottom: none;
  }

  table.facts td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}
