:root {
  --ink: #0c0c0b;
  --text: #f1eee7;
  --muted: #8f8a82;
  --faint: #5f5b55;
  --rule: #262421;
  --gold: #c8a65f;
  /* A form field's own background, which an autofilled field is covered back to (below). */
  --field: #1a1916;
  color-scheme: dark;
  /* Checked radios and checkboxes: the browser's own accent is blue on macOS. */
  accent-color: var(--gold);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  background: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
/* Whatever has focus gets a gold ring, never the browser's blue one; form fields get it however they got focus. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { color: var(--ink); background: var(--gold); }
/* A field the browser fills in is painted its own colour (light blue, or a blue-grey in dark mode) with !important,
   so no background can replace it: an inset shadow in the field's colour covers it. One pseudo-class per rule, as a
   browser that knows only one of them drops a selector list naming both. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset; box-shadow: 0 0 0 1000px var(--field) inset;
}
input:autofill, input:autofill:hover, input:autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset; box-shadow: 0 0 0 1000px var(--field) inset;
}
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.top { width: min(960px, 100%); margin: 0 auto; padding: 24px 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.mark { color: var(--text); }
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.top nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.top nav a:hover, .foot a:hover { color: var(--text); }

main { width: min(960px, 100%); min-width: 0; margin: 0 auto; padding: 0 16px; }
.hero { max-width: 640px; margin: 14vh auto 0; text-align: center; }
.hero.narrow { max-width: 480px; }
h1 {
  margin: 0 0 18px;
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lede { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 17px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px;
  color: #141311; background: #ece7dc;
  font-weight: 600; text-decoration: none;
  border-radius: 10px;
  border: 0;
  font: inherit;
  cursor: pointer;
}
a.button:hover { background: #fbf8f1; }
.button[aria-disabled="true"], .button:disabled { color: var(--muted); background: transparent; border: 1px solid var(--rule); cursor: not-allowed; }
.note { color: var(--faint); font-size: 13px; }
.text-link { color: var(--text); font-size: 13px; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.rows { max-width: 720px; margin: 18vh auto 0; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.row h2 { margin: 0; font-size: 15px; font-weight: 600; }
.row p { margin: 0; color: var(--muted); }
.labels { display: grid; gap: 10px; margin: 0; }
.labels div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.labels dt { color: var(--gold); font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.labels dd { margin: 0; color: var(--muted); }

.upcoming { max-width: 720px; margin: 96px auto 0; }
.upcoming .eyebrow { margin-bottom: 10px; }
.upcoming h2 { margin: 0 0 12px; font: 400 clamp(24px, 4vw, 32px)/1.2 ui-serif, "New York", Georgia, serif; letter-spacing: -.02em; }
.upcoming > p { margin: 0; color: var(--muted); }
.upcoming ul { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.upcoming li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.upcoming li strong { font-size: 15px; font-weight: 600; }
.upcoming .status { flex: none; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 99px; color: var(--muted); font: 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.foot .credit { color: var(--muted); }

.trace-direction { max-width: 880px; margin: 100px auto 0; padding-top: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 28px; }
.trace-direction > .eyebrow { margin-bottom: 12px; color: var(--gold); }
.trace-direction h2 { margin: 0 0 16px; font: 400 clamp(32px, 5vw, 46px)/1.15 ui-serif, "New York", Georgia, serif; letter-spacing: -.02em; }
.trace-direction h3 { margin: 0 0 12px; color: var(--text); font-size: 16px; font-weight: 600; }
.trace-direction p { color: var(--muted); }
.trace-direction .trace-lede { margin: 0 0 14px; color: var(--text); font-size: 20px; }
.trace-intro { max-width: 680px; margin: 0; }
.trace-direction .trace-manifesto { margin: 26px 0 12px; color: var(--text); font: 400 clamp(20px, 3vw, 28px)/1.3 ui-serif, "New York", Georgia, serif; }
.trace-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 38px; }
.trace-workflow p { margin: 0; font-size: 14px; }
.trace-workflow .trace-step { margin-bottom: 12px; color: var(--gold); font: 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.trace-path { margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trace-path ol { display: flex; flex-wrap: wrap; gap: 8px 0; padding: 0; margin: 16px 0; list-style: none; color: var(--gold); font: 12px/1.8 ui-monospace, "SF Mono", Menlo, monospace; }
.trace-path li:not(:last-child)::after { content: "→"; padding: 0 12px; color: var(--faint); }
.trace-path p { max-width: 680px; margin: 0; font-size: 13px; }
.trace-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.trace-details p { margin: 0 0 12px; font-size: 14px; }
.trace-direction code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.trace-cli { margin-top: 28px; padding: clamp(18px, 4vw, 28px); border: 1px solid #37332c; border-radius: 16px; background: #121211; }
.trace-cli-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.trace-cli-heading h3 { margin: 0; }
.trace-status { padding: 3px 10px; border: 1px solid var(--rule); border-radius: 99px; color: var(--gold); font: 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; }
.trace-cli > p { margin: 14px 0 0; font-size: 14px; }
.trace-cli pre { margin: 22px 0; padding-bottom: 12px; max-width: 100%; overflow-x: auto; color: var(--text); font: 12px/1.85 ui-monospace, "SF Mono", Menlo, monospace; }
.trace-comment { color: var(--muted); }
.trace-cli > .trace-release-note { color: var(--muted); font-size: 12px; }

.vision-hero { max-width: 760px; }
.vision-hero h1 { max-width: 700px; margin-left: auto; margin-right: auto; }
.vision-body { width: min(760px, 100%); margin: 0 auto; }
.vision-body section { border-top: 1px solid var(--rule); padding: 30px 0 22px; }
.vision-body h2 { margin: 0 0 16px; font: 400 clamp(24px, 4vw, 32px)/1.2 ui-serif, "New York", Georgia, serif; letter-spacing: -.02em; }
.vision-body p { max-width: 690px; margin: 0 0 18px; color: var(--muted); }
.vision-body .eyebrow { color: var(--gold); margin-bottom: 10px; }
.vision-body code { color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.vision-sequence { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 26px; padding: 0; list-style: none; }
.vision-sequence li { padding: 8px 12px; border: 1px solid #37332c; border-radius: 8px; color: var(--text); font-size: 13px; }
.vision-divider { padding: 0 8px; color: var(--faint); }

.foot { width: min(960px, 100%); margin: 0 auto; padding: 48px 16px 28px; color: var(--faint); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }

.eyebrow { margin: 0 0 18px; color: var(--gold); font: 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.page-hero { max-width: 700px; margin: clamp(64px, 10vh, 120px) auto 52px; text-align: center; }
.page-hero .lede { max-width: 600px; }
.price-card, .download-card { width: min(680px, 100%); margin: 0 auto; border: 1px solid #37332c; border-radius: 20px; background: linear-gradient(150deg, #1b1915, #121211 68%); padding: clamp(26px, 5vw, 44px); box-shadow: 0 24px 70px #0005; }
.price-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--gold); font-size: 13px; }
.price-card-top span:first-child { color: var(--text); font-weight: 650; font-size: 17px; }
.price { margin: 28px 0; color: var(--text); font: 400 clamp(54px, 9vw, 78px)/1 ui-serif, "New York", Georgia, serif; letter-spacing: -.04em; }
.price span { font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; vertical-align: .8em; color: var(--muted); }
.price small { font: 400 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; color: var(--muted); }
.price-card ul, .download-card ul { margin: 0; padding: 22px 0 22px 20px; color: var(--muted); border-top: 1px solid var(--rule); }
.price-card li, .download-card li { padding: 3px 0; }
.price-action { border-top: 1px solid var(--rule); padding-top: 28px; }
.price-action form { margin: 0; }
.price-action .button { width: 100%; }
.price-action .note { margin: 14px 0 0; line-height: 1.5; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.download-card h2 { margin: 0 0 10px; font-size: 21px; }
.download-card p { margin: 0 0 18px; color: var(--muted); }
.download-card ul { padding-bottom: 0; }
.download-action { min-width: 230px; display: grid; gap: 18px; text-align: center; }
.below-card { width: min(680px, 100%); margin: 75px auto 0; border-top: 1px solid var(--rule); padding-top: 28px; }
.below-card h2 { margin: 0 0 10px; font-size: 17px; }
.below-card p { margin: 0 0 16px; color: var(--muted); }
.below-card a { font-size: 13px; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.auth-card { width: min(430px, 100%); margin: clamp(65px, 12vh, 140px) auto 0; }
.auth-card .back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); text-decoration: none; font-size: 13px; }
.auth-card h1 { font-size: clamp(34px, 6vw, 46px); }
.auth-card > p:not(.eyebrow) { color: var(--muted); }
.auth-card form { display: grid; gap: 17px; margin-top: 28px; }
.auth-card label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.auth-card input:not([type='hidden']) { width: 100%; height: 45px; border: 1px solid #48443d; border-radius: 9px; padding: 0 14px; color: var(--text); background: var(--field); font: inherit; }
.auth-card input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.auth-card .button { width: 100%; margin-top: 5px; }
.auth-alternate { margin-top: 24px; text-align: center; font-size: 13px; }
.auth-alternate a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.form-error { padding: 12px 14px; border: 1px solid #b65d57; border-radius: 9px; color: #f4c7c1 !important; background: #371f1d; }
.account-card .eyebrow { margin-top: 0; }
.account-identity { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 9px 16px; margin-top: 24px; font-size: 13px; }
.account-identity span { color: var(--muted); }
.account-identity strong { overflow-wrap: anywhere; font-weight: 550; }
.account-status { margin: 32px 0; padding: 22px; border: 1px solid #37332c; border-radius: 12px; background: #171613; }
.account-status + .account-status { margin-top: -16px; }
.account-status p { margin: 7px 0 0; color: var(--muted); }
.account-actions { display: grid; gap: 20px; }
.account-actions form { display: block; margin: 0; text-align: center; }
.text-button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.text-button:hover { color: var(--text); }
.account-delete { margin-top: 48px; padding-top: 28px; border-top: 1px solid #2a2823; }
.account-delete h2 { margin: 0; font-size: 17px; }
.account-delete p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-delete form { margin-top: 20px; }
.danger-button { width: 100%; height: 45px; border: 1px solid #b65d57; border-radius: 9px; color: #f4c7c1; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.danger-button:hover { background: #371f1d; }
.danger-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.privacy-words { margin: 20px auto 0; max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.privacy-words + .privacy-words { margin-top: 4px; }
.privacy-words .text-link { white-space: nowrap; }
.policy { width: min(680px, 100%); margin: 0 auto; }
.policy > section { border-top: 1px solid var(--rule); padding: 28px 0 8px; }
.policy h2 { margin: 0 0 12px; font-size: 17px; }
.policy h3 { margin: 26px 0 6px; font-size: 15px; font-weight: 600; }
.policy p, .policy li { color: var(--muted); }
.policy p { margin: 0 0 16px; }
.policy ul { margin: 0 0 16px; padding-left: 20px; }
.facts { margin: 0 0 16px; }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--gold); font: 12px/1.9 ui-monospace, "SF Mono", Menlo, monospace; }
.facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .top nav { width: 100%; justify-content: space-between; }
  .hero { margin-top: 8vh; }
  .rows { margin-top: 12vh; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .download-card { display: block; }
  .download-action { margin-top: 26px; }
  .foot { display: grid; text-align: center; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .trace-workflow, .trace-details { grid-template-columns: 1fr; gap: 24px; }
  .trace-direction { margin-top: 72px; padding-top: 28px; }
}
