/* Studio Dark · editorial layout and product capture */
:root {
  color-scheme: dark;
  --paper: #040f18;
  --ink: #f4f7fc;
  --muted: #aac3d5;
  --accent: #58bfff;
  --line: #294555;
  --amber: #ffc568;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.58 system-ui,
    sans-serif;
}
header,
footer,
main {
  width: min(100% - clamp(2.25rem, 8vw, 9rem), 86rem);
  margin: auto;
}
header,
footer,
.actions,
.closing,
.ends,
figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header {
  min-height: 4.5rem;
  background: #06131e;
  box-shadow: 0 0 0 100vmax #06131e;
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--line);
}
nav,
footer div {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
}
a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}
header a,
footer a {
  text-decoration: none;
}
nav a {
  color: var(--muted);
}
nav [aria-current] {
  color: var(--accent);
  text-decoration: underline;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.15rem;
}
.brand-mark svg {
  display: block;
  width: 40px;
}
.brand-mark path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
}
.brand-mark-aura {
  opacity: 0.3;
}
.brand-mark-energy {
  fill: #fff3d9;
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark-energy {
    display: none;
  }
}
main {
  padding-block: clamp(2rem, 5vw, 5rem);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 5.8vw, 5.9rem);
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(1.85rem, 3.25vw, 3.4rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  letter-spacing: -0.035em;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
p,
dd,
figcaption {
  color: var(--muted);
}
p {
  max-width: 67ch;
  margin-block: 0.85em;
}
p.kicker,
.engine-grid small,
legend,
figcaption {
  font:
    600 0.78rem/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.05em;
}
.kicker {
  color: var(--amber);
  margin: 0 0 1rem;
}
.kicker span {
  color: var(--muted);
  margin-inline: 0.3em;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  max-width: 50ch;
}
.opening {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shot {
  background: #0a1c29;
  padding: clamp(0.6rem, 1.6vw, 1.6rem);
  border-block: 1px solid #335265;
}
.hero-shot img {
  width: 100%;
}
figcaption {
  margin-top: 0.6rem;
  font-weight: 450;
}
.hero-shot figcaption a {
  flex: none;
  white-space: nowrap;
}
.hero-shot figcaption span {
  color: var(--accent);
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}
.action,
.under {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.action {
  padding: 0.68rem 1.15rem;
  background: #0075d6;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
}
.action:hover {
  background: #005ba8;
}
main > section:not(:first-child) {
  margin-top: clamp(2.75rem, 6vw, 6rem);
}
.engines,
.walk,
.trust,
.questions,
.closing {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.35rem, 3vw, 3rem);
}
.engine-grid,
.walk ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-top: 2rem;
}
.engine-grid article {
  border-top: 3px solid #e7bc76;
  padding-top: 0.8rem;
}
.engine-grid article:nth-child(2) {
  border-color: #cc91ed;
}
.engine-grid article:nth-child(3) {
  border-color: #6cc9e5;
}
.engine-grid article:nth-child(4) {
  border-color: #66d9ab;
}
.engine-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.engine-grid p,
.walk p {
  margin-bottom: 0;
}
.permission {
  font-size: 0.93rem;
  max-width: none;
  margin: 1.5rem 0 0;
}
.anchor-feature,
.observations {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(1.2rem, 5vw, 5rem);
}
.anchor-feature {
  background: #102632;
  padding: clamp(1.3rem, 4vw, 4rem);
}
.anchor-feature figure {
  max-width: 26rem;
  width: 100%;
  justify-self: center;
}
.anchor-demo {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  margin: 1.3rem 0 0;
  min-width: 0;
}
.anchor-demo legend {
  padding: 0 0.5rem 0 0;
  color: var(--amber);
}
.anchor-demo label,
.ends {
  font-size: 0.9rem;
}
.anchor-demo input {
  display: block;
  width: 100%;
  margin: 0.35rem 0;
  min-height: 36px;
  accent-color: var(--accent);
}
.ends {
  color: var(--muted);
}
output {
  display: block;
  font-family: ui-monospace, monospace;
  color: var(--accent);
  margin-top: 0.5rem;
}
.walk ol {
  counter-reset: stage;
  list-style: none;
  padding: 0;
}
.walk li {
  counter-increment: stage;
}
.walk li:before {
  content: "0" counter(stage);
  display: block;
  color: var(--amber);
  font:
    600 0.9rem ui-monospace,
    monospace;
  margin-bottom: 0.8rem;
}
.walk strong {
  font-size: 1.18rem;
}
dl {
  margin: 1.2rem 0 0;
}
dt {
  font-weight: 700;
}
dd {
  margin: 0.2rem 0 1rem;
}
.observations img {
  max-height: 28rem;
  object-fit: cover;
}
.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  list-style: none;
  margin: 1.3rem 0;
  padding: 0;
  color: var(--accent);
}
.chain li:not(:last-child)::after {
  content: " →";
  color: #8ba1aa;
}
.questions details,
main > details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.questions h2 {
  margin-bottom: 1rem;
}
.closing {
  flex-wrap: wrap;
}
.closing p {
  margin-bottom: 0;
}
footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  color: var(--muted);
}
footer div {
  flex-wrap: wrap;
}
.policy,
.signal dl {
  max-width: 65ch;
}
.policy h2,
.signal h2 {
  font-size: 1.6rem;
  margin-top: 1.5rem;
}
.signal {
  margin-bottom: 2rem;
}
.account-entry h2,
.account-summary h2 {
  font-size: 1.4rem;
  margin-block: 1rem;
}
.account-summary .button {
  display: block;
  width: fit-content;
}
.skip {
  position: absolute;
  left: 8px;
  top: -6rem;
  background: #071621;
  padding: 1rem;
}
.skip:focus {
  top: 4px;
  z-index: 2;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
code {
  overflow-wrap: anywhere;
}
button {
  font: inherit;
}
@media (max-width: 900px) {
  .opening {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    max-width: 50rem;
  }
  .engine-grid,
  .walk ol {
    grid-template-columns: 1fr 1fr;
  }
  .opening h1 {
    font-size: clamp(3rem, 8vw, 5rem);
  }
}
@media (max-width: 650px) {
  .opening h1 {
    font-size: clamp(2.45rem, 9vw, 3.6rem);
  }
  header {
    min-height: 3.5rem;
  }
  .brand {
    font-size: 1rem;
    gap: 0.35rem;
  }
  .brand svg {
    width: 30px;
  }
  nav {
    font-size: 0.92rem;
  }
  .opening {
    gap: 1.3rem;
  }
  .anchor-feature,
  .observations {
    grid-template-columns: 1fr;
  }
  .anchor-feature figure {
    max-width: 17rem;
  }
  .chain {
    max-width: 30rem;
  }
  .hero-shot figcaption {
    font-size: 0.66rem;
  }
  .anchor-feature {
    padding: 1.2rem;
  }
  .engine-grid,
  .walk ol {
    gap: 1.3rem 1rem;
  }
  .engine-grid p,
  .walk p {
    font-size: 0.95rem;
  }
  .closing {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 380px) {
  .engine-grid,
  .walk ol {
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 0.6rem;
  }
  .brand {
    gap: 0.2rem;
  }
}
.account-entry,
.account-summary,
#support-feedback,
.policy {
  max-width: 42rem;
}
.provider-actions,
.cloud-form {
  display: grid;
  gap: 0.9rem;
}
.provider-button,
.cloud-form button,
.account-summary button {
  background: #10222e;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  padding: 0.65rem 1rem;
  font: inherit;
  cursor: pointer;
}
.provider-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.provider-button img {
  width: 22px;
  height: 22px;
}
.cloud-form label {
  display: grid;
  gap: 0.3rem;
}
.cloud-form input,
.cloud-form select,
.cloud-form textarea {
  background: #06131e;
  color: var(--ink);
  border: 1px solid #294555;
  padding: 0.6rem;
  border-radius: 4px;
  font: inherit;
}
.auth-divider {
  margin: 1rem 0;
}
[hidden] {
  display: none !important;
}
.contact {
  margin-top: 2.5rem;
}
.lede strong {
  color: var(--ink);
  font-weight: 600;
}
.readouts {
  display: block;
  width: 100%;
  height: auto;
  max-width: 42rem;
  margin-top: 1.3rem;
}

.recipe-audition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 4rem);
}
.recipe-audition figure {
  width: 100%;
  max-width: 706px;
}
@media (max-width: 650px) {
  .recipe-audition { grid-template-columns: 1fr; }
}

.anchor-positions > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}
.anchor-positions summary { cursor: pointer; }

.corrections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  border-block: 1px solid var(--line);
  padding-block: .65rem;
}
.corrections dt { font-size: .8rem; color: var(--muted); }
.corrections dd { margin: .15rem 0 0; color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
@media (max-width: 380px) {
  .corrections { grid-template-columns: repeat(2, 1fr); }
}

.version-note { font-size: .88rem; color: var(--muted); }
