:root {
  color-scheme: dark;
  --ink: #0a0b10;
  --surface: #151924;
  --blue: #2448ce;
  --gold: #d9b86a;
  --text: #f5f6fa;
  --muted: #bac3d7;
  --line: #353d52;
  --metal: linear-gradient(110deg, #926726, #f3da91, #b18239);
  font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid #ffe2a0; outline-offset: 4px; }
.skip { position: absolute; top: -8rem; padding: .75rem; background: var(--ink); z-index: 1; }
.skip:focus { top: .5rem; }
.top, footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  flex-wrap: wrap; padding: 1.1rem max(5vw, 1rem); border-bottom: 1px solid var(--line);
}
footer { border-top: 1px solid var(--line); justify-content: flex-start; }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.15rem; }
nav a, .wordmark { text-decoration: none; }
.wordmark { font-size: 1.65rem; font-weight: 850; }
.wordmark span, .eyebrow, .price { color: var(--gold); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .75rem; }
.button, button {
  display: inline-block; padding: .65rem 1rem; color: white; background: var(--blue);
  border: 1px solid transparent; border-radius: .45rem; text-decoration: none; font: inherit;
  font-weight: 700; cursor: pointer;
}
.button:hover, button:hover { color: white; background: #3152cc; }
.secondary { background: var(--surface); border-color: var(--line); }
section { padding: clamp(2.3rem, 5vw, 5rem) max(5vw, 1rem); }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3, p { margin: 0 0 .85rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 5.5vw, 5.2rem); line-height: 1.04; max-width: 15ch; letter-spacing: -.05em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.75rem); line-height: 1.15; }
p { color: var(--muted); max-width: 67ch; }
.hero, .builder { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.hero-art {
  display: grid; align-content: center; min-height: 19rem; padding: clamp(1rem, 4vw, 3.5rem);
  border: 1px solid transparent; border-radius: 1rem;
  background: radial-gradient(ellipse at 72% 30%, #274fc8, #111935 80%) padding-box, var(--metal) border-box;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, form, .preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: 1.25rem;
}
.card.featured { border-top-color: var(--gold); }
.card a { font-weight: 650; }
.price { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.builder { align-items: start; }
form { display: grid; gap: .85rem; max-width: 42rem; }
label { display: grid; gap: .25rem; }
input, select, textarea {
  width: 100%; color: var(--text); background: var(--ink); border: 1px solid #64708c;
  border-radius: .35rem; padding: .6rem; font: inherit;
}
input[type="checkbox"] { width: auto; }
.check { display: flex; align-items: baseline; }
.preview { min-width: 0; border-top: 4px solid var(--demo-accent, var(--blue)); }
.preview button[aria-pressed="true"] { border-color: var(--gold); }
@media (max-width: 840px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .hero, .builder, .grid { grid-template-columns: minmax(0, 1fr); }
  nav { gap: .5rem .8rem; }
  .hero-art { min-height: 12rem; }
}
