/* Rigwatch. Flat colour, hard edges, DIN lettering. No gradients, shadows or rounded cards. */
:root {
  --ink: #111111;
  --ink-2: #1b1b1b;
  --ink-line: #3a3a3a;
  --on-ink: #f3f3f1;
  --on-ink-soft: #cfcec9;
  --on-ink-muted: #a3a29d;
  --paper: #e8e9eb;
  --white: #ffffff;
  --text: #141414;
  --muted: #50535a;
  --hair: #c3c5ca;
  --accent: #ff6a1f;
  --cpu: #ff6a1f; --ram: #42a5ff; --gpu: #b98bff; --disk: #ffd13b; --net: #35d07f;
  /* Bahnschrift ships with Windows 10 and 11; the rest cover Mac, iOS and Android. */
  --display: Bahnschrift, "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2, h3, .brand span, .label, .btn, .plate-title, .plate dt, .sec-head p, .get-name, .sum dt, .steps li::before {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 700;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; }

.wrap { max-width: 1176px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--accent); color: var(--ink); padding: 8px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink); border: 2px solid var(--accent); border-radius: 2px;
  font-size: 20px; line-height: 1; letter-spacing: .045em; text-decoration: none; white-space: nowrap;
  padding: 15px 24px 14px;
}
.btn:hover { background: var(--on-ink); border-color: var(--on-ink); }
.btn.small { font-size: 16px; padding: 9px 14px 8px; }
.btn.block { display: flex; border-radius: 0; padding: 19px 20px 18px; font-size: 22px; }

/* dark top band */
.dark { background: var(--ink); color: var(--on-ink); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-size: 28px; line-height: 1; letter-spacing: .03em; padding-top: 3px; }
.bar nav { display: flex; align-items: center; gap: 30px; }
.bar nav a:not(.btn) { font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: .05em; text-decoration: none; color: var(--on-ink); padding: 6px 0 3px; border-bottom: 2px solid transparent; }
.bar nav a:not(.btn):hover { border-bottom-color: var(--accent); }
.bar nav a { white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 64px; align-items: end; padding-top: 58px; padding-bottom: 60px; }
.label { display: flex; align-items: center; gap: 12px; font-size: 17px; letter-spacing: .14em; color: var(--on-ink-muted); }
.label::before { content: ""; width: 12px; height: 12px; background: var(--accent); }
.hero h1 { margin-top: 18px; font-size: clamp(3.4rem, 9.4vw, 7.4rem); line-height: .88; letter-spacing: -.005em; }
.hero h1 span { color: var(--accent); }
.lede { margin-top: 28px; max-width: 47ch; font-size: 1.14rem; color: var(--on-ink-soft); }

.plate { border: 2px solid var(--on-ink); }
.plate-title { font-size: 30px; line-height: 1; letter-spacing: .02em; padding: 16px 18px 13px; border-bottom: 2px solid var(--on-ink); }
.plate dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--ink-line); }
.plate dl > div:last-child { border-bottom: 2px solid var(--on-ink); }
.plate dt { font-size: 15px; letter-spacing: .1em; color: var(--on-ink-muted); }
.plate dd { font-size: 15px; text-align: right; }

.shot { padding-bottom: 64px; }
.shot img { width: 100%; border: 2px solid var(--ink-line); }
.shot figcaption { margin-top: 12px; font: 13px/1.4 var(--mono); color: var(--on-ink-muted); }
.shot figcaption b { color: var(--accent); font-weight: 400; margin-right: 10px; }

/* the row of fins where the dark band meets the page */
.fins {
  height: 24px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 60px) 0 0 / 100% 24px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 12px) 0 0 / 100% 12px no-repeat;
}

/* sections on the light page */
.sec { padding-top: 76px; padding-bottom: 84px; scroll-margin-top: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.sec-head h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1; letter-spacing: .01em; }
.sec-head p { font-size: 16px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }

.spec li { display: grid; grid-template-columns: 56px 270px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 19px 0 18px; border-bottom: 1px solid var(--hair); }
.spec .no { font: 14px var(--mono); color: var(--muted); }
.spec h3 { display: flex; align-items: center; gap: 12px; font-size: 25px; line-height: 1.1; letter-spacing: .02em; }
.spec p { color: #2c2e33; }
.key { width: 13px; height: 13px; background: #8b8e95; flex: none; margin-top: -3px; }
.key.cpu { background: var(--cpu); } .key.ram { background: var(--ram); } .key.gpu { background: var(--gpu); }
.key.disk { background: var(--disk); } .key.net { background: var(--net); }

.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--white); border: 2px solid var(--ink); border-top: 0; }
.quad article { padding: 28px 30px 32px; }
.quad article:nth-child(odd) { border-right: 2px solid var(--ink); }
.quad article:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
.quad h3 { font-size: 25px; line-height: 1.1; letter-spacing: .02em; }
.quad p { margin-top: 10px; color: #2c2e33; }

/* download band */
.install { background: var(--ink); color: var(--on-ink); padding: 76px 0 84px; scroll-margin-top: 0; }
.install .sec-head { border-bottom-color: var(--on-ink); }
.install .sec-head p { color: var(--accent); }
.install-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; padding-top: 40px; }
.get-name { font-size: clamp(2.6rem, 5vw, 3.5rem); line-height: .95; letter-spacing: .01em; }
.get-sub { margin-top: 10px; color: var(--on-ink-muted); font-size: 15.5px; }
.get .btn { margin-top: 26px; }
.sum { margin-top: 40px; padding: 16px 0; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.sum dt { font-size: 15px; letter-spacing: .1em; color: var(--on-ink-muted); padding-top: 2px; }
.sum dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.sum code { font: 13px/1.5 var(--mono); color: var(--on-ink-soft); word-break: break-all; }
.copy { font: 600 12.5px/1 var(--body); color: var(--on-ink); background: transparent; border: 1px solid var(--on-ink-muted); border-radius: 2px; padding: 6px 10px; cursor: pointer; }
.copy:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); color: var(--on-ink-soft); }
.steps li:first-child { padding-top: 4px; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); width: 38px; height: 38px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 24px; line-height: 1; padding-top: 3px; }
.steps strong { color: var(--on-ink); font-weight: 600; }

.notice { position: relative; margin-top: 28px; padding: 16px 20px 17px 36px; background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--on-ink-soft); font-size: 15.5px; }
.notice::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 16px; background: repeating-linear-gradient(-45deg, var(--accent) 0 7px, var(--ink) 7px 14px); }
.notice b { color: var(--on-ink); font-weight: 600; }
.notice code { font: 14px var(--mono); color: var(--on-ink); }

/* questions */
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 19px 48px 19px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 2px solid var(--ink); display: grid; place-items: center; font: 400 20px/1 var(--mono); }
.faq details[open] summary::after { content: "\2212"; background: var(--ink); color: var(--paper); }
.faq summary:hover::after { background: var(--accent); border-color: var(--ink); color: var(--ink); }
.faq p { padding: 0 48px 22px 0; max-width: 72ch; color: #2c2e33; }
.faq b { font-weight: 600; }

/* footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 40px 0 48px; font-size: 14.5px; }
.foot .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 40px; align-items: center; }
.foot .brand { color: var(--on-ink); }
.foot .brand span { font-size: 24px; }
.foot p { text-align: right; }
.foot a:not(.brand) { color: var(--on-ink); text-underline-offset: 3px; }
.foot a:not(.brand):hover { color: var(--accent); }
.foot .fine { grid-column: 1 / -1; text-align: left; padding-top: 18px; border-top: 1px solid var(--ink-line); font-size: 13px; max-width: none; }

/* 404 */
.lost { min-height: 100vh; }
.lost-body { padding-top: 12vh; padding-bottom: 12vh; }
.lost-body h1 { font-size: clamp(3.4rem, 10vw, 7rem); line-height: .9; }
.lost-body h1 span { color: var(--accent); }
.lost-body p { margin: 22px 0 30px; color: var(--on-ink-soft); max-width: 44ch; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 40px; padding-bottom: 44px; }
  .plate { max-width: 460px; }
  .install-grid { grid-template-columns: 1fr; }
  .spec li { grid-template-columns: 44px minmax(0, 1fr); }
  .spec p { grid-column: 2; }
  .sec { padding-top: 60px; padding-bottom: 64px; }
  .install { padding: 60px 0 64px; }
}
@media (max-width: 840px) {
  .bar nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .bar { height: 66px; }
  .bar nav a:not(.btn) { display: none; }
  .brand span { font-size: 25px; }
  .plate { max-width: none; }
  .shot { padding-bottom: 44px; }
  .sec-head { flex-wrap: wrap; gap: 4px 24px; }
  .quad { grid-template-columns: 1fr; }
  .quad article:nth-child(odd) { border-right: 0; }
  .quad article:not(:last-child) { border-bottom: 2px solid var(--ink); }
  .quad article { padding: 22px 20px 24px; }
  .get .btn { display: flex; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
