:root {
  --bg: #F7F4ED;
  --ink: #17181C;
  --red: #C0272D;
  --green: #12734C;
  --muted: #8A857A;
  --rule: #DCD5C4;
  --rule-soft: #E7E0D1;
  --body-soft: #4E4B44;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px 36px;
}

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 13px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: var(--red);
  color: #FFFDF8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  white-space: nowrap;
}

.site-nav a {
  padding: 2px 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* ---------- page head ---------- */

.page-head {
  padding: 25px 0 0;
}

.kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 6px;
  background: var(--red);
  vertical-align: 2px;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.asof {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lede {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--body-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- sections ---------- */

.block {
  margin-top: 32px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
}

.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.block-head .kicker {
  margin-bottom: 3px;
}

h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.block-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.block-note {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 13px 0 3px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.stat {
  min-width: 0;
  padding: 10px 7px 9px 0;
}

.stat + .stat {
  padding-left: 11px;
  border-left: 1px solid var(--rule-soft);
}

.stat-v {
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.stat-u {
  margin-left: 2px;
  color: var(--muted);
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  font-weight: 400;
}

.stat-l {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 0;
  color: var(--red);
  font-size: 12px;
}

/* ---------- rows ---------- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  padding: 12px 0 11px;
  border-top: 1px solid var(--rule-soft);
}

.row:first-child {
  padding-top: 9px;
  border-top: 0;
}

.row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.row-id {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
}

.row-name {
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-code {
  color: var(--muted);
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.rating {
  flex: 0 0 auto;
  padding: 0 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 15px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid var(--rule);
}

.row-price {
  flex: 0 0 auto;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.unit {
  margin-left: 2px;
  color: var(--muted);
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  font-weight: 400;
}

.row-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 13px;
  margin-top: 5px;
  color: var(--body-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.kv {
  white-space: nowrap;
}

.kv b {
  color: var(--ink);
  font-weight: 600;
}

.kv .num {
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.row-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.55;
}

.row-sub span {
  min-width: 0;
}

.tag {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0 5px;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-red {
  color: var(--red);
  background: #F6E9E7;
  border-color: #DDBAB7;
}

.tag-plain {
  color: var(--ink);
  background: transparent;
}

.danger {
  color: var(--red);
}

.positive {
  color: var(--green);
}

.missing {
  color: var(--muted);
}

.num {
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ---------- links / states ---------- */

.more {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 1px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.more span {
  color: var(--red);
}

.more:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.state {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.empty {
  margin: 4px 0 0;
  padding: 15px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.empty strong {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
}

.empty p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.empty code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.footnote {
  margin: 12px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.65;
}

/* ---------- prose / about ---------- */

.prose {
  color: #33322F;
  font-size: 13px;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 9px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose code,
.fields code,
.block-note code,
.plain-list code,
.data-facts code {
  padding: 1px 4px;
  background: #EFEAE0;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

h3 {
  margin: 19px 0 5px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.fields {
  margin: 0;
}

.fields p {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--body-soft);
  font-size: 12px;
  line-height: 1.65;
}

.fields p:first-child {
  border-top: 0;
}

.fields code {
  margin-right: 2px;
}

.plain-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--body-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.plain-list li {
  margin-bottom: 3px;
}

.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  vertical-align: 1px;
}

.swatch-red {
  background: var(--red);
}

.swatch-green {
  background: var(--green);
}

.data-facts {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  color: var(--body-soft);
  font-size: 12px;
  line-height: 1.8;
}

.data-facts b {
  color: var(--ink);
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.site-foot {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.site-foot p {
  margin: 0 0 4px;
}

.site-foot .disclaimer {
  color: #5C594F;
}

.foot-asof {
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .wrap {
    padding-right: 28px;
    padding-left: 28px;
  }

  h1 {
    font-size: 26px;
  }

  .row-sub {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .row {
    padding-top: 13px;
    padding-bottom: 12px;
  }
}

@media (max-width: 359px) {
  .wrap {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .site-nav {
    gap: 9px;
    font-size: 11px;
  }

  .row-price {
    font-size: 18px;
  }

  .row-key {
    column-gap: 9px;
  }
}

@media print {
  body {
    background: #FFF;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .site-nav,
  .more {
    display: none;
  }
}
