:root {
  color-scheme: dark;
  --ink: #f7f3eb;
  --muted: #b7c0c1;
  --base: #121618;
  --surface: #1c2225;
  --surface-raised: #252c2f;
  --line: #3d474a;
  --red: #b83232;
  --red-light: #d65249;
  --peach: #ffd3a8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.6 Ubuntu, "Segoe UI", Arial, sans-serif; }
a { color: var(--peach); text-underline-offset: 3px; }
a:hover { color: #fff1df; }
a:focus-visible, summary:focus-visible, .table-scroll:focus-visible, select:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
code, pre { font-family: Consolas, "Courier New", monospace; }
code { overflow-wrap: anywhere; color: var(--peach); }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: -70px; left: 16px; z-index: 10; padding: 8px 12px; background: var(--peach); color: var(--base); }
.skip-link:focus { top: 12px; }
.site-header, .site-footer { background: #151a1d; }
.site-header { background: #171c1f; }
.header-inner { min-height: 185px; display: flex; align-items: center; justify-content: center; gap: 28px; padding-block: 12px; }
.header-inner img { width: min(440px, 70vw); height: auto; }
.header-inner::before, .header-inner::after { content: ""; height: 1px; flex: 1; max-width: 280px; }
.header-inner::before { background: linear-gradient(90deg, transparent, rgba(255,211,168,.32)); }
.header-inner::after { background: linear-gradient(90deg, rgba(255,211,168,.32), transparent); }
.intro { background: #171c1f; }
.intro .wrap { padding-block: 64px 68px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--peach); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.platform { display: inline-flex; align-items: center; gap: 8px; }
.platform-separator { color: var(--muted); }
.windows-mark { display: inline-block; width: 16px; height: 16px; flex: none; }
.windows-mark::before { content: ""; display: block; width: 6px; height: 6px; background: currentColor; box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor; }
.linux-mark { display: inline-block; width: 19px; height: 19px; flex: none; font-size: 19px; line-height: 1; letter-spacing: normal; filter: grayscale(1) brightness(1.7); }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(40px, 5.6vw, 64px); letter-spacing: -.04em; }
.intro p:not(.eyebrow) { max-width: 660px; margin-bottom: 24px; color: #d1d7d7; font-size: 18px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 11px 20px; border: 1px solid var(--red-light); background: var(--red); color: white; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 rgba(255,211,168,.12); }
.button:hover { background: var(--red-light); color: white; }
.button-secondary { border-color: var(--line); background: transparent; color: var(--peach); box-shadow: none; }
.button-secondary:hover { border-color: var(--peach); background: var(--surface-raised); color: var(--ink); }
.section { padding-block: 60px; }
.section h2 { position: relative; margin-bottom: 20px; padding-left: 17px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; }
.section h2::before { content: ""; position: absolute; left: 0; top: .15em; width: 5px; height: .8em; background: var(--red-light); }
.gpu-groups { display: grid; gap: 8px; }
.gpu-group { border: 1px solid var(--line); background: var(--surface); }
.gpu-group[open] { border-color: #8b524d; }
.gpu-group summary { display: flex; align-items: center; gap: 15px; min-height: 62px; padding: 13px 18px; cursor: pointer; list-style: none; }
.gpu-group summary::-webkit-details-marker { display: none; }
.gpu-group summary::before { content: ""; width: 8px; height: 8px; flex: none; border: 2px solid var(--red-light); border-radius: 50%; }
.gpu-group summary::after { content: "+"; margin-left: auto; color: var(--peach); font-size: 24px; line-height: 1; }
.gpu-group[open] summary::after { content: "−"; }
.gpu-group summary:hover { background: var(--surface-raised); }
.gpu-group summary strong { font-size: 19px; line-height: 1.2; }
.gpu-group summary span { min-width: 0; color: var(--muted); font-size: 14px; }
.gpu-content { padding: 15px 18px 18px; border-top: 1px solid var(--line); }
.gpu-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.algorithms { border-block: 1px solid #3b3435; background: #171d20; }
.algorithms h2 { margin-bottom: 10px; }
.algorithms .wrap > p:not(.fine-print) { margin-bottom: 18px; color: #d0d6d7; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); text-align: left; }
.gpu-table { min-width: 500px; }
.algorithms table { min-width: 680px; }
th, td { padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 14px; }
thead th { background: var(--surface-raised); color: var(--peach); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #283134; }
tbody th { color: var(--ink); font-weight: 700; }
tbody td { color: #d0d6d7; }
.gpu-table th:first-child { width: 27%; white-space: nowrap; }
.algorithms tbody td:nth-child(2) { color: var(--peach); font-weight: 700; }
.command { min-width: 0; border: 1px solid var(--line); border-top: 2px solid var(--red); background: var(--surface); }
.command pre { margin: 0; padding: 16px; color: var(--peach); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-panel { margin-top: 18px; }
.template-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.template-tabs { display: flex; align-items: center; gap: 4px; }
.template-tabs button { padding: 8px 12px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: 700 14px/1.4 Ubuntu, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.template-tabs button:hover { background: var(--surface); color: var(--ink); }
.template-tabs button[aria-pressed="true"] { border-color: var(--red-light); background: var(--surface); color: var(--ink); }
.template-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.wallet-field { display: inline-flex; flex: 1 1 250px; align-items: center; gap: 9px; max-width: 360px; color: var(--muted); font-size: 14px; }
.wallet-field input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; }
.wallet-field input::placeholder { color: #899598; }
.template-selectors { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.coin-picker, .pool-picker { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.coin-picker select, .pool-picker select { min-width: 150px; padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.template-copy { min-width: 76px; margin-left: auto; padding: 8px 12px; border: 1px solid var(--red-light); border-radius: 0; background: var(--red); color: #fff; font: 700 14px/1.4 Ubuntu, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.template-copy:hover { background: var(--red-light); }
.command .template-code { line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer { border-top: 1px solid #633d3b; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 14px; color: var(--muted); font-size: 14px; }
.footer-inner span { display: inline-flex; align-items: center; gap: 7px; }
.footer-inner img { display: inline-block; width: 24px; height: 16px; }
.footer-inner nav { display: flex; align-items: center; gap: 18px; }
.footer-inner nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.footer-inner nav a:hover { color: var(--peach); text-decoration: underline; }
@media (max-width: 720px) {
  .header-inner { min-height: 160px; }
  .header-inner img { width: min(390px, 82vw); }
  .header-inner::before, .header-inner::after { display: none; }
  .intro .wrap { padding-block: 49px 54px; }
  .section { padding-block: 46px; }
  .wallet-field { max-width: none; }
  .template-selectors { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 520px) {
  .template-selectors { flex-wrap: wrap; gap: 10px; }
  .coin-picker, .pool-picker { flex: 1 1 150px; min-width: 0; }
  .coin-picker select, .pool-picker select { min-width: 0; width: 100%; }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 145px; }
  .header-inner img { width: min(330px, 86vw); }
  .intro p:not(.eyebrow) { font-size: 16px; }
  .gpu-group summary { gap: 10px; padding-inline: 15px; }
  .gpu-group summary strong { font-size: 16px; }
  .gpu-group summary span { font-size: 12px; }
  .gpu-content { padding-inline: 12px; }
  .footer-inner { flex-wrap: wrap; }
  .template-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-tabs button { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
