:root { color-scheme: light; --ink: #202c25; --paper: #f9f0de; --gold: #f6d88f; --rust: #963d2c; }
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 system-ui, sans-serif; }
body { padding-bottom: var(--email-keyboard-inset, 0px); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.masthead, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.masthead { border-bottom: 1px solid #cebaa1; }
a { color: inherit; text-underline-offset: .24em; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand svg, .hub svg { width: 2.65rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { font: bold 1.45rem/1 Georgia, serif; }
.brand span { display: block; font-size: .62rem; letter-spacing: .16em; font-weight: 750; }
[hidden] { display: none !important; }
main.wrap { margin-block: auto; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: clamp(.65rem, 3svh, 2rem);
}
h1 { margin: 0; font: bold clamp(3rem, 6.8vw, 6.2rem)/.92 Georgia, serif; letter-spacing: -.06em; }
h1 em { color: var(--rust); }
.panel {
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #cebaa1;
  border-radius: .7rem;
  background: #fff8e9;
  box-shadow: 0 4px 0 #ead7b9;
}
.panel h2 { margin: 0; font: bold clamp(1.45rem, 3vw, 2.6rem)/1.05 Georgia, serif; }
.panel p { margin: 0; }
.panel button { justify-self: center; min-height: 44px; }
#entry-form, .email-field { display: grid; gap: .35rem; }
#entry-form { gap: .75rem; }
.email-field label { font-weight: 700; }
.email-field input {
  width: 100%;
  min-height: 44px;
  padding: .4rem .65rem;
  border: 1px solid #967c66;
  border-radius: .35rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
.newsletter-option { display: flex; align-items: start; gap: .5rem; cursor: pointer; }
.newsletter-option input { flex: none; width: 1.1rem; height: 1.1rem; margin: .18rem 0 0; accent-color: var(--ink); }
#demo-note { font-size: .88rem; line-height: 1.35; }
button { display: inline-flex; align-items: center; gap: 1.5rem; justify-content: space-between; border: 1px solid #602818; border-radius: .35rem; padding: .55rem 1rem; color: #fff8e9; background: var(--rust); font: inherit; font-weight: 750; cursor: pointer; box-shadow: 0 4px 0 #602818; }
button:hover:not(:disabled):not([aria-disabled="true"]) { background: #792d21; }
button:disabled, button[aria-disabled="true"] { cursor: default; opacity: .8; }
:focus-visible { outline: 3px solid #963d2c; outline-offset: 5px; }
.result:not(:empty) { padding: .5rem .7rem; border-left: 3px solid var(--rust); background: #efdfc3; }
.result strong { display: block; font: bold 1.25rem Georgia, serif; margin-bottom: .25em; }
.stage { position: relative; display: grid; place-items: center; align-content: center; isolation: isolate; overflow: hidden; padding: .85rem 1rem; border-radius: .7rem; color: var(--gold); background: radial-gradient(ellipse at 50% 40%, #3d5544, #202f27 75%); }
.stage::before { content: ""; position: absolute; z-index: -1; inset: .55rem; border: 1px solid #e4c78166; border-radius: .35rem; pointer-events: none; }
.star { position: absolute; opacity: .8; font-size: clamp(1rem, 3vw, 2rem); line-height: 1; }
.one { top: 8%; left: 6%; } .two { top: 13%; right: 6%; } .three { bottom: 13%; right: 6%; }
.instrument { position: relative; width: min(100%, 420px, clamp(10rem, calc(100svh - 30rem), 48svh)); aspect-ratio: 1; }
#wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 .6rem 1.2rem #111a15b0; }
.pointer { position: absolute; z-index: 2; top: -3%; left: 50%; width: 9%; height: 10%; transform: translateX(-50%); background: #ffe3a1; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hub { position: absolute; inset: 42%; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 2px 6px #0007; }
.hub svg { width: 85%; }
footer { border-top: 1px solid #cebaa1; font-size: .85rem; flex-wrap: wrap; }
footer p { margin: 0; }
@media (max-width: 700px) {
  .masthead, footer { padding-block: .45rem; }
  .masthead > a { font-size: .86rem; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  h1 { font-size: clamp(1.75rem, 7.5vw, 3.25rem); line-height: 1; }
  .title-break { display: none; }
  .panel, #entry-form { gap: .6rem; }
  .instrument { width: min(100%, 340px, clamp(8rem, calc(100svh - 28rem), 39svh)); }
  .result:not(:empty) { font-size: .9rem; line-height: 1.3; }
  .result strong { font-size: 1.1rem; }
}

@media (max-width: 350px) {
  .wrap { width: calc(100% - 1.5rem); }
  .brand { gap: .4rem; }
  .brand svg { width: 2rem; }
  .brand strong { font-size: 1.15rem; }
  .brand span { letter-spacing: .08em; }
  footer { gap: .2rem 1rem; }
}

@media (max-height: 540px) and (min-width: 541px) {
  .masthead, footer { padding-block: .35rem; }
  .layout {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding-block: .5rem;
  }
  h1 { font-size: clamp(1.85rem, 5vw, 2.8rem); }
  .title-break { display: none; }
  .panel, #entry-form { gap: .45rem; }
  .panel { padding: .65rem; }
  .stage { padding: .6rem; }
  .instrument { width: min(100%, 22svh); }
  .result:not(:empty) { padding-block: .3rem; line-height: 1.25; }
}
