/* Chakra Petch (OFL) for the wordmark, headings, and Amazon buttons.
   Body copy stays a serif so long reads stay comfortable.
   Hero photo slot: set --hero-image on .hero to a licensed Shutterstock
   file, for example url("/images/hero.jpg"). The gradient stays in front
   so the heading keeps its contrast. */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/chakra-petch-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/chakra-petch-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3efe4;
  --ink: #1c1b16;
  --panel: #fffdf8;
  --line: #d4cdbd;
  --green: #0e5c45;
  --signal: #d6ef6a;
  --rust: #9a3412;
  --header: #1a1f16;
  --muted: #3f3c34;
  --cream: #f3efe4;
  --display: "Chakra Petch", "Avenir Next", "Segoe UI", sans-serif;
  --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --hero-image: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

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

::selection {
  background: var(--signal);
  color: var(--header);
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: #fff;
  color: #000;
  padding: 0.45rem 0.7rem;
  z-index: 40;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  color: var(--cream);
  border-bottom: 3px solid var(--signal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--signal);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 0 16px rgba(214, 239, 106, 0.45);
}

.wordmark .mark { flex: none; filter: drop-shadow(0 0 6px rgba(214, 239, 106, 0.65)); }

.nav-toggle,
.nav-toggle-label { display: none; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.site-header nav a {
  color: var(--signal);
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--signal);
}

main.wrap {
  padding-top: 0;
  padding-bottom: 3.75rem;
}

.page,
.article { padding-top: 2.5rem; }

h1, h2, h3, .hub-title, .guide-title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  margin: 0.35rem 0 0.9rem;
}

h2 {
  font-size: 1.65rem;
  margin: 2.4rem 0 0.8rem;
}

h3 { font-size: 1.28rem; margin: 1.35rem 0 0.45rem; }

.kicker,
.guide-kicker,
.product-kicker,
.hub-index {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
}

.standfirst {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.5;
  margin-top: 0;
}

.byline,
.dates,
.disclosure,
.prices-checked,
.chart-caption,
.chart-label,
.chart-value,
.form,
.hub-copy,
.empty,
.cross,
.footer-meta,
.product-market,
.guide-stand {
  font-family: var(--ui);
}

.byline { margin-bottom: 0.25rem; }

.dates,
.prices-checked,
.empty,
.cross,
.footer-meta,
.guide-stand {
  color: var(--muted);
  font-size: 0.95rem;
}

.disclosure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  padding: 0.75rem 0.9rem;
  font-size: 0.98rem;
}

.page a,
.article a,
.home p a,
.home li a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.page a:hover,
.article a:hover,
.home p a:hover,
.home li a:hover { color: var(--rust); }

.hero {
  --hero-image: none;
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 0 -50vw 2.25rem;
  padding: 2.7rem 0 3.5rem;
  color: var(--cream);
  background-color: var(--header);
  background-image:
    linear-gradient(105deg, rgba(26, 31, 22, 0.96) 0%, rgba(26, 31, 22, 0.84) 46%, rgba(26, 31, 22, 0.62) 100%),
    url("/images/hero-hud.svg"),
    var(--hero-image);
  background-size: cover, cover, cover;
  background-position: center, right center, center;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.7rem), 0 100%);
}

.hero > * {
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
}

.hero .kicker {
  color: var(--signal);
  text-shadow: 0 0 12px rgba(214, 239, 106, 0.45);
}

.hero .kicker::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  border: 2px solid var(--signal);
  border-right: 0;
  border-bottom: 0;
  vertical-align: -0.05em;
  box-shadow: 0 0 10px rgba(214, 239, 106, 0.55);
}

.hero h1 {
  max-width: 16ch;
  color: #f7f4ec;
  font-size: clamp(2.35rem, 6.2vw, 4.2rem);
  text-wrap: balance;
}

.hero .standfirst {
  max-width: 38rem;
  color: #e7e2d4;
  font-size: 1.2rem;
}

.hubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0 0 0.5rem;
}

a.hub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 12rem;
  padding: 1.2rem 1.2rem 1.35rem;
  border: 1px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 14px, var(--panel) 14px);
  color: inherit;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(26, 31, 22, 0.08);
}

a.hub::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(225deg, var(--signal) 50%, transparent 50%);
  box-shadow: 0 0 12px rgba(214, 239, 106, 0.75);
}

a.hub:hover,
a.hub:focus-visible {
  background:
    linear-gradient(135deg, transparent 14px, var(--header) 14px);
  color: var(--cream);
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), 0 0 24px rgba(214, 239, 106, 0.28);
}

a.hub:hover .hub-index,
a.hub:focus-visible .hub-index,
a.hub:hover .hub-copy,
a.hub:focus-visible .hub-copy { color: var(--signal); }

.hub-title { font-size: 1.7rem; }

.hub-copy { font-size: 0.98rem; line-height: 1.45; }

.home h2::before,
.page h2::before,
.article h2::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 92, 69, 0.15);
  vertical-align: 0.12em;
}

.guide-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0.6rem 0 0;
}

.guide-list a {
  position: relative;
  display: block;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

.guide-list a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 12px solid var(--signal);
  border-left: 12px solid transparent;
}

.guide-list a:hover,
.guide-list a:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 10px 24px rgba(26, 31, 22, 0.08);
}

.guide-title {
  display: block;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-top: 0.2rem;
}

.guide-stand { display: block; margin-top: 0.35rem; }

.empty {
  margin-top: 0.4rem;
  padding: 1.15rem 1rem;
  border: 1px dashed var(--green);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box;
  color: var(--ink);
}

.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}

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

.prose th {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  background: var(--header);
  color: var(--signal);
}

.prose th,
.prose td {
  padding: 0.65rem 0.75rem;
  vertical-align: top;
}

.prose td { border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }

.chart {
  margin: 1.4rem 0 1.7rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.chart figcaption {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.chart-caption { margin: 0 0 0.7rem; }

.chart-row {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0;
}

.chart-track {
  display: block;
  background: #e4dece;
  height: 0.8rem;
}

.chart-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--signal));
  box-shadow: 0 0 10px rgba(214, 239, 106, 0.55);
}

.chart-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  min-width: 3.5rem;
  text-align: right;
}

.product-box {
  position: relative;
  margin: 1.6rem 0;
  padding: 1.35rem 1.2rem 1.3rem;
  border: 1px solid var(--signal);
  background: var(--header);
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(214, 239, 106, 0.28), 0 16px 36px rgba(26, 31, 22, 0.22);
}

.product-box::before,
.product-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--signal);
  pointer-events: none;
}

.product-box::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.product-box::after { right: 7px; bottom: 7px; border-left: 0; border-top: 0; }

.product-kicker { color: var(--signal); }

.product-box h3 {
  margin: 0.15rem 0 0.55rem;
  color: #fff;
  font-size: 1.55rem;
}

.product-specs,
.product-linux,
.product-box .product-market {
  color: #e7e2d4;
}

.product-specs { margin: 0.25rem 0; }
.product-linux { margin: 0.7rem 0; }
.product-linux span { font-family: var(--display); font-weight: 700; color: var(--signal); }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

a.button,
button.button {
  display: inline-block;
  background: var(--signal);
  color: var(--header);
  text-decoration: none;
  padding: 0.85rem 1.05rem;
  border: 2px solid var(--signal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(214, 239, 106, 0.35);
}

a.button:hover,
button.button:hover {
  background: #fff;
  border-color: #fff;
  color: var(--header);
}

.faq-item {
  margin: 0.2rem 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.form label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

.form input,
.form textarea {
  display: block;
  width: min(100%, 32rem);
  margin-top: 0.35rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #b7af9e;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-family: var(--ui);
}

.form textarea { min-height: 9rem; resize: vertical; }
.form button { margin-top: 1.1rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--header);
  color: var(--cream);
  border-top: 3px solid var(--signal);
  padding: 1.9rem 0 2.3rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer a { color: var(--signal); }

.site-footer a:hover,
.site-footer a[aria-current="page"] { color: #fff; }

.site-footer .byline {
  margin: 1.1rem 0 0.35rem;
  color: var(--cream);
}

.associate {
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0.4rem 0;
  color: var(--cream);
}

.footer-meta { color: #d9d3c4; }
.footer-meta a { color: var(--signal); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

a.button:focus-visible,
button.button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  background: #fff;
  color: var(--header);
}

@media (max-width: 840px) {
  .header-inner { flex-wrap: wrap; min-height: 3.8rem; padding: 0.45rem 0; }
  .wordmark { font-size: 1.2rem; margin-right: auto; }
  .nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.4rem 0.15rem 0.4rem 0.55rem;
    color: var(--signal);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-bars {
    width: 1.15rem;
    height: 2px;
    background: var(--signal);
    box-shadow: 0 -6px 0 var(--signal), 0 6px 0 var(--signal);
  }
  .nav-close-label { display: none; }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
  }
  .nav-toggle:checked + .nav-toggle-label { color: #fff; }
  .nav-toggle:checked + .nav-toggle-label .nav-bars { background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
  .nav-toggle:checked + .nav-toggle-label .nav-open-label { display: none; }
  .nav-toggle:checked + .nav-toggle-label .nav-close-label { display: inline; }
  .site-header nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.2rem 0 0.7rem;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  .site-header nav a {
    padding: 0.85rem 0.15rem;
    border-top: 1px solid rgba(214, 239, 106, 0.28);
    font-size: 1.15rem;
  }
  .site-header nav a:hover,
  .site-header nav a[aria-current="page"] { box-shadow: none; }
  .hero { padding: 1.7rem 0 2.6rem; }
  .hero h1 { font-size: clamp(2.05rem, 10vw, 2.7rem); }
  .hubs { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .chart-value { text-align: left; }
  a.button,
  button.button { display: block; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
