/* oxcart.cc inner pages (buy, download, legal, 404) on the home page's warm-black ground. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-wdth.woff2') format('woff2-variations'), url('/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('/fonts/martian-mono.woff2') format('woff2-variations'), url('/fonts/martian-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --steel-950: #0b0908;
  --steel-900: #17120f;
  --steel-800: #2a221d;
  --steel-600: #4d4239;
  --steel-500: #958a7f;
  --steel-400: #b5aa9e;
  --steel-200: #ddd3c8;
  --steel-100: #f3ece4;
  --ember: #e8743b;
  --ember-hi: #f29a76;
  --on-ember: #0b0908;

  --straw: #d8b46a;   --straw-ink: #e2c485;
  --bronze: #b8763a;  --bronze-ink: #d49a5e;
  --purple: #8a68b8;  --purple-ink: #b49ae0;
  --blue: #4c7bc0;    --blue-ink: #86a9e6;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;

  --margin: clamp(20px, 5vw, 80px);
  --max: 1560px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: clamp(20px, 2.4vw, 38px);
  --bar-gap: clamp(4px, 0.45vw, 7px);
  --radius: 10px;

  --img-grain: image-set(url('/img/grain.avif') type('image/avif'), url('/img/grain.webp') type('image/webp'));

  color-scheme: dark;
  scrollbar-color: var(--steel-600) var(--steel-950);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--steel-950); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 17px/1.55 var(--body);
  color: var(--steel-200);
  background: var(--steel-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background: var(--img-grain) 0 0 / 1024px 1024px repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
::selection { background: var(--ember); color: var(--on-ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ember); }
p { margin: 0 0 1em; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 450;
  color: var(--steel-100);
  background: var(--steel-900);
  border: 1px solid var(--steel-800);
  border-radius: 5px;
  padding: 0.08em 0.36em;
  white-space: nowrap;
}
strong { color: var(--steel-100); font-weight: 650; }

.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ember); color: var(--on-ember); font-weight: 650;
  padding: 12px 18px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display, h1, h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--steel-100);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font: 650 1.2rem/1.3 var(--body); color: var(--steel-100); margin: 0 0 0.4em; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--steel-200); max-width: 60ch; text-wrap: pretty; }
.body { max-width: 62ch; text-wrap: pretty; }
.fine { font-size: 14px; line-height: 1.5; color: var(--steel-400); }
.mono { font-family: var(--mono); }
.req { font-size: 14px; color: var(--steel-400); margin: 14px 0 0; letter-spacing: 0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius);
  font: 650 17px/1 var(--body);
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn--primary { background: var(--ember); color: var(--on-ember); }
.btn--primary:hover { background: var(--ember-hi); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:focus-visible { outline: 2px solid var(--steel-100); outline-offset: 3px; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.link {
  color: var(--steel-100); font-weight: 550;
  text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--steel-950) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--steel-600) 55%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--steel-100); margin-right: auto; }
.brand svg { width: 30px; height: 30px; }
.brand span { font: 800 1.3rem/1 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--steel-200); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-list a:hover { color: var(--steel-100); background: var(--steel-900); }
.nav-list a[aria-current='page'] { color: var(--steel-100); box-shadow: inset 0 -2px 0 var(--ember); border-radius: 8px 8px 0 0; }
@media (max-width: 1100px) {
  .site-header .header-sections { display: none; }
}
@media (max-width: 600px) {
  .site-header .wrap { gap: 12px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand span { font-size: 1.1rem; }
  .site-header .btn--small { padding-inline: 14px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 14vh, 160px) 0; }
.section--rule { border-top: 1px solid var(--steel-800); }
.section h2 { max-width: 18ch; }
.section .lede { margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.names { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 28px 0 0; }
.names li { font: 500 15px/1.4 var(--mono); color: var(--steel-100); }
.names li + li::before { content: '·'; color: var(--steel-500); margin-right: 28px; }

.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--steel-600); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--steel-800); }
.facts li strong { font-weight: 650; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 32px; border-top: 1px solid var(--steel-600); }
.table-wrap:focus-visible { outline-offset: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; caption-side: top; color: var(--steel-400); font-size: 14px; padding: 0 0 12px; }
th, td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--steel-800); text-align: left; vertical-align: baseline; }
thead th { font: 600 12px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-400); padding-top: 14px; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 15px; white-space: nowrap; padding-left: 16px; }
td.num strong { color: var(--steel-100); font-weight: 650; }
td.mult { color: var(--ember); }
tbody th { font-weight: 500; color: var(--steel-100); }
.us { color: var(--steel-100); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(40px, 7vh, 88px) 0 0; }
.page-head h1 { max-width: 19ch; font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.page-head .lede { margin-top: 24px; }

/* ---------- Hallmarks ---------- */
.hallmarks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; margin: 32px 0 0; padding: 0; }
.hallmark { padding: 22px 0; border-top: 1px solid var(--steel-600); }
.hallmark__mark { font: 800 1.05rem/1.25 var(--display); font-stretch: 118%; color: var(--steel-100); letter-spacing: -0.005em; display: block; }
.hallmark p { margin: 8px 0 0; color: var(--steel-400); font-size: 16px; }

/* ---------- Pricing ---------- */
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: 48px; }
.price__figure { margin: 0; font: 600 clamp(5rem, 11vw, 9.5rem)/0.9 var(--mono); color: var(--steel-100); letter-spacing: -0.05em; }
.price__unit { display: block; margin-top: 14px; color: var(--steel-400); font-size: 16px; }
.terms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--steel-600); }
.terms li { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--steel-800); align-items: baseline; }
.terms li span:last-child { font: 600 16px/1 var(--mono); color: var(--steel-100); }

.faq { margin-top: 32px; border-top: 1px solid var(--steel-600); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--steel-800); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--steel-100); font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember);
  transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; max-width: 64ch; }

/* ---------- Closing CTA ---------- */
.closer { padding: clamp(96px, 14vh, 160px) 0 clamp(72px, 10vh, 120px); border-top: 1px solid var(--steel-800); }
.closer h2 { max-width: 16ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--steel-800); padding: 48px 0 56px; position: relative; z-index: 1; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.site-footer nav a { color: var(--steel-200); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--steel-100); text-decoration: underline; text-decoration-color: var(--ember); }
.site-footer .fine { margin-top: 24px; max-width: 80ch; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--steel-100); }
.footer-brand svg { width: 24px; height: 24px; }
.footer-brand span { font: 800 1.05rem/1 var(--display); font-stretch: 112%; }

/* ---------- Download page ---------- */

/* ---------- Responsive ---------- */
.proofs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: clamp(20px, 3vh, 32px) 0 0; padding: 0;
  list-style: none;
}
.proofs li { padding: 6px 28px 0; border-left: 1px solid var(--steel-600); }
.proofs li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 899px) {
  .proofs { grid-template-columns: 1fr; }
  .proofs li { border-left: 0; border-top: 1px solid var(--steel-600); padding: 18px 0; }
  .proofs li:first-child { border-top: 0; }
  .split, .price, .dl { grid-template-columns: 1fr; gap: 32px; }
  .hallmarks { grid-template-columns: 1fr; }
  .gauge li { font-size: 10px; letter-spacing: 0.08em; padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Inner-page parts ---------- */
.sentence { margin: 28px 0 0; padding: 22px 24px; background: var(--steel-900); border: 1px solid var(--steel-800); border-radius: var(--radius); }
.sentence p { margin: 8px 0 0; color: var(--steel-100); font-size: 17px; }
.sentence code { white-space: normal; }
.h2-small { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h2code { font-size: 0.86em; padding: 0 0.2em; background: none; border: 0; color: inherit; }
.home-price .contact, .site-footer .contact { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; font-size: 14px; color: var(--steel-400); }
.contact > span { color: var(--steel-200); font-weight: 600; }
.contact a { color: var(--steel-400); text-decoration: none; }
.contact a .mono { font-size: 13px; color: var(--steel-200); }
.contact a:hover .mono { color: var(--steel-100); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 4px; }

/* ---------- Legal drafts ---------- */
.legal { padding: clamp(48px, 8vh, 96px) 0 clamp(72px, 10vh, 120px); }
.prose { max-width: 760px; overflow-wrap: anywhere; hyphens: auto; }
.prose h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); margin-bottom: 28px; }
.prose h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-stretch: 115%; margin: 56px 0 14px; line-height: 1.1; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--steel-200); max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--steel-500); }
.prose a { color: var(--steel-100); text-decoration-color: var(--ember); }
.prose table { margin: 16px 0 24px; max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--steel-800); margin: 40px 0; }

/* Allow translated headings, labels and technical paths to fit narrow screens. */
h1, h2, h3, .page-head .lede { overflow-wrap: anywhere; hyphens: auto; }
.prose code { white-space: normal; overflow-wrap: anywhere; hyphens: none; }
:is(:lang(zh), :lang(ja), :lang(ko)) :is(h1, h2, h3) { line-height: 1.2; letter-spacing: 0; }
html:lang(ko) { word-break: keep-all; }

/* ---------- Buy ---------- */
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.buy__item { border-top: 1px solid var(--steel-600); padding-top: 28px; }
.buy__price { font-size: clamp(3.6rem, 7vw, 6rem); margin-top: 18px; }
.buy__note { margin-top: 48px; max-width: 80ch; }
.sandbox-note { margin: 24px 0 0; display: inline-block; padding: 10px 14px; border: 1px dashed var(--straw-ink); border-radius: 8px; color: var(--straw-ink); font-size: 15px; }
.qty { color: var(--steel-200); font-size: 15px; }
.qty__hint { flex-basis: 100%; margin: 0; }
.qty__input {
  width: 96px; height: 48px; padding: 0 12px; border-radius: var(--radius);
  background: var(--steel-900); color: var(--steel-100); border: 1px solid var(--steel-600);
  font: 600 17px/1 var(--mono);
}
.qty__input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
button.btn { border: 0; cursor: pointer; }
@media (max-width: 899px) { .buy { grid-template-columns: 1fr; gap: 48px; } }
.checkout-status { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 560px);
  background: var(--steel-900); border: 1px solid var(--steel-600); border-radius: 12px; padding: 14px 18px; color: var(--steel-100);
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.7); }
.checkout-status[hidden] { display: none; }

/* ---------- Utilities (no inline style attributes: the CSP has no 'unsafe-inline') ---------- */
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mw-820 { max-width: 820px; }
[data-ink='straw'] { --ink: var(--straw-ink); }
[data-ink='bronze'] { --ink: var(--bronze-ink); }
[data-ink='purple'] { --ink: var(--purple-ink); }
[data-ink='blue'] { --ink: var(--blue-ink); }

/* ---------- Download ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; margin-top: 48px; align-items: start; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--steel-600); }
.steps li { counter-increment: step; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--steel-800); position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 16px; font: 600 15px/1 var(--mono); color: var(--ember); width: 32px; height: 32px; border: 1px solid var(--steel-600); border-radius: 8px; display: grid; place-items: center; }

/* Buying closed (CHECKOUT=off). */
.closed-note { margin-top: 28px; padding: 22px 24px; border-radius: 14px; border: 1px solid rgb(232 116 59 / .35); background: rgb(232 116 59 / .07); }
.closed-note p { margin: 0 0 16px; color: var(--steel-100); font-weight: 600; }
