/* The Tech Guys — shared styles */
:root {
  --ink: #15192b;
  --ink-2: #3b4152;
  --muted: #5b6172;
  --paper: #eceee8;
  --paper-2: #e2e5dd;
  --slip: #ffffff;
  --hivis: #ffd23f;
  --hivis-ink: #15192b;
  --red: #d33a3a;
  --green: #137a52;
  --line: #c9cdc2;
  --radius: 6px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--slip); padding: 8px 12px; z-index: 10; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em; text-decoration: none;
  font-variation-settings: "wdth" 115;
}
.logo span { color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--radius); border: 2px solid var(--ink);
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--hivis); color: var(--hivis-ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--slip); transform: none; }
.btn.small { padding: 9px 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }

/* Type */
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 850; font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; font-variation-settings: "wdth" 108; }
h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 18px; }

/* Receipt */
.receipt {
  background: var(--slip); color: var(--ink);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  padding: 26px 24px 30px; border-radius: 2px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(21, 25, 43, .45);
  position: relative;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 50% 100% / 16px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 50% 100% / 16px 100% repeat-x;
}
.receipt h4 { margin: 0 0 2px; font: 600 14px/1.3 var(--mono); }
.receipt .meta { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.receipt .row { display: flex; align-items: baseline; gap: 8px; }
.receipt .row .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt .row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.receipt .row .v { white-space: nowrap; text-align: right; }
.receipt .was { position: relative; color: var(--muted); }
.receipt .was::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--red);
  transform-origin: left; transform: scaleX(var(--strike, 1));
}
.receipt .now { color: var(--green); font-weight: 600; margin-left: 6px; }
.receipt .note { color: var(--muted); font-size: 12px; padding-left: 12px; }
.receipt hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }
.receipt .total { font-weight: 600; font-size: 15px; }
.receipt .stamp {
  display: inline-block; margin-top: 16px; padding: 6px 10px; border: 2px solid var(--green); color: var(--green);
  font-weight: 600; font-size: 13px; border-radius: 3px; transform: rotate(-3deg);
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--slip); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
th { font-weight: 650; font-size: 13px; color: var(--muted); background: #f7f8f5; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* Footer */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { margin-left: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
