/*
  Type: Overpass for the page, Overpass Mono only for figure numbers,
  dimension callouts and drawing labels. Self-hosted (SIL OFL, see
  /fonts/OFL.txt) so the site makes no third-party requests.
  Color: warm machine dark plus one safety orange accent.
*/
@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono"; /* deslop-ignore 34: font-face declaration; mono is used only for figure labels */
  src: url("/fonts/overpass-mono-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --bg: #161412;
  --panel: #1e1b18;
  --ink: #f1ebe3;
  --muted: #b3aaa0;
  --orange: #ff5a00;
  --rule: rgba(241, 235, 227, 0.28);
  --gap: 1rem;
}
* { box-sizing: border-box; }
html { min-height: 100%; background-color: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("/grid.svg");
  background-repeat: repeat;
  color: var(--ink);
  font-family: Overpass, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--orange); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: 0.4rem 0.6rem; z-index: 2; }

.wrap { width: min(100% - 2rem, 58rem); margin: 0 auto 2rem; }

.spec {
  font-family: "Overpass Mono", ui-monospace, monospace; /* deslop-ignore 34: mono for figure numbers and drawing labels only */
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--orange);
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 0.8rem;
  border-bottom: 2px solid var(--orange);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
nav { display: flex; gap: 0.35rem 1.1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { border-bottom: 1px solid var(--orange); }

.hero { padding: 1.5rem 0 1.25rem; }
h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0.25rem 0 0.75rem;
}
h1.page { font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.lede { margin: 0; max-width: 38rem; color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 0.95rem 1.05rem 1.05rem;
  position: relative;
  margin: 0;
}
.panel h2 { margin: 0.15rem 0 0.5rem; font-size: 1.2rem; line-height: 1.25; }
.panel > p { margin: 0; }
.panel > p + p { margin-top: 0.7rem; }

.corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--orange); }
.c-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.c-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.c-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Deal list on the home page and /deals */
.deal-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.deal-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.deal-list .cat { color: var(--muted); font-size: 0.85rem; }
.deal-list h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.deal-list h3 a { color: var(--ink); text-decoration: none; }
.deal-list h3 a:hover { color: var(--orange); }
.deal-list .sum { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.deal-list .price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.deal-list .was { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* Spec table on deal posts */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.spec-table th { width: 8.5rem; padding-right: 0.9rem; font-weight: 400; }
.spec-table td { font-variant-numeric: tabular-nums; }
.spec-table .big { font-size: 1.35rem; font-weight: 700; }
.spec-table .fine { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }

.go { font-weight: 700; }
.disclose { color: var(--muted); font-size: 0.92rem; }
.prose { max-width: 42rem; }
.prose p, .prose ul, .prose ol { color: var(--ink); }
.prose h2 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }
.prose li + li { margin-top: 0.35rem; }
.muted { color: var(--muted); }

.titleblock {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: end;
  margin-top: 1.5rem;
}
.titleblock a { color: var(--muted); text-decoration: none; }
.titleblock a:hover { color: var(--ink); }
.titleblock nav { gap: 0.35rem 1rem; }
.titleblock .mail { color: var(--orange); }

@media (max-width: 700px) {
  .wrap { width: min(100% - 1.5rem, 58rem); margin-bottom: 1.5rem; }
  header.site { padding: 0.95rem 0 0.7rem; }
  .hero { padding: 1.2rem 0 1.05rem; }
  .panels, .titleblock { grid-template-columns: 1fr; }
  .deal-list li { grid-template-columns: 1fr auto; }
  .deal-list .cat { grid-column: 1 / -1; }
  .spec-table th { width: 6.2rem; }
  nav a { padding: 0.3rem 0; }
}
