:root {
  color-scheme: light;
  --ink: #132546;
  --muted: #60708a;
  --blue: #104ea7;
  --blue-deep: #092b67;
  --gold: #dfac61;
  --paper: #fbf9f4;
  --line: #dce4ec;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { max-width: 100%; }

.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue-deep); text-decoration: none; font-weight: 750; font-size: 1.18rem; white-space: nowrap; }
.brand img { width: 43px; height: 43px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { color: #344a68; text-decoration: none; font-weight: 650; font-size: .94rem; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a:hover { color: var(--blue); }

.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(3.1rem, 7vw, 6.35rem); line-height: 1.01; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
h3 { font-size: 1.2rem; }
p { line-height: 1.65; }
.lead { font-size: clamp(1.07rem, 1.8vw, 1.32rem); color: #425671; max-width: 660px; }
.small { font-size: .9rem; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: white; text-decoration: none; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--blue-deep); }
.button.secondary { background: transparent; border-color: #a7bad1; color: var(--blue-deep); }
.button.secondary:hover { background: #edf3fa; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; }
.band-eyebrow { color: #f2c77c; }
.band-title { margin: 14px 0; }

.hero { background: radial-gradient(circle at 87% 21%, #fff1d5 0, transparent 27%), linear-gradient(125deg,#f8fbff 4%,#f8f4eb 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 6%; min-height: 600px; padding-block: 80px; }
.hero h1 { max-width: 730px; margin: 18px 0 22px; }
.hero .lead { margin-bottom: 30px; }
.artwork { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; background: linear-gradient(145deg,#0b4ba4,#09285f 72%); box-shadow: 0 28px 60px rgba(10,47,96,.2); overflow: hidden; }
.artwork::before { content: ""; position: absolute; inset: 11%; border: 2px solid rgba(255,255,255,.28); border-radius: 50%; }
.artwork::after { content: ""; position: absolute; width: 72%; height: 72%; left: 14%; top: 14%; border-radius: 50%; background: radial-gradient(circle,rgba(239,196,121,.94) 0 4%, transparent 5% 16%,rgba(255,255,255,.22) 17% 17.5%,transparent 18% 34%,rgba(255,255,255,.2) 35% 35.5%,transparent 36% 52%,rgba(255,255,255,.16) 53% 53.5%,transparent 54%); }
.artwork span { position: absolute; z-index: 1; left: 11%; bottom: 11%; color: white; font-family: Georgia, serif; font-size: clamp(1.5rem,3vw,2.9rem); line-height: 1.07; width: 74%; }
.artwork small { display: block; margin-bottom: 13px; font: 700 .72rem "Segoe UI",sans-serif; letter-spacing: .17em; text-transform: uppercase; color: #f1c985; }

.section { padding-block: 98px; }
.section-heading { max-width: 670px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 19px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--white); min-height: 250px; }
.feature .number { color: var(--blue); font: 700 .85rem "Segoe UI",sans-serif; letter-spacing: .1em; }
.feature h3 { margin: 31px 0 11px; }
.feature p { color: var(--muted); margin: 0; }
.band { background: var(--blue-deep); color: white; padding-block: 88px; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.band p { color: #c6d9f4; max-width: 650px; }
.band .button { background: white; color: var(--blue-deep); white-space: nowrap; }
.band .button:hover { background: #f4e4c7; }

.page-intro { padding: 78px 0 46px; }
.page-intro h1 { font-size: clamp(2.9rem,6vw,5rem); max-width: 860px; margin: 16px 0 20px; }
.notice { display: inline-block; padding: 9px 14px; border: 1px solid #ead29f; border-radius: 100px; color: #795719; background: #fff8e9; font-size: .83rem; font-weight: 700; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 90px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { font-size: 2rem; margin: 10px 0 14px; }
.panel p { color: var(--muted); }
.panel ul { padding-left: 20px; line-height: 1.9; }
.panel .button { margin-top: 12px; }
.panel button:disabled { opacity: .6; cursor: wait; }
main form > label { display: block; margin-top: 18px; font-weight: 700; }
main form input[type="email"], main form input[type="password"],
main form textarea, main form select { display: block; width: 100%; box-sizing: border-box;
  margin-top: 8px; padding: 12px; border: 1px solid #a7bad1; border-radius: 8px;
  background: white; color: var(--ink); font: inherit; }
main form textarea { resize: vertical; min-height: 220px; line-height: 1.5; }
main form input[type="checkbox"] { margin-right: 8px; }
main form textarea:focus-visible, main form input:focus-visible { outline: 3px solid #d48818; outline-offset: 2px; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 25px; }
.step { padding: 19px; border-radius: 11px; background: #f1f5fa; font-weight: 700; color: #37567d; }
.step strong { display: block; color: var(--blue); font-size: .75rem; margin-bottom: 8px; }

.work-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 54px; align-items: start; padding: 70px 0 110px; }
.work-art { aspect-ratio: 1/1; }
.work-main h1 { font-size: clamp(2.8rem,5vw,4.8rem); margin: 16px 0 8px; }
.work-type { margin-top: 26px; }
.byline { color: var(--muted); font-size: 1.08rem; margin-bottom: 25px; }
.player-panel { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 28px; margin-top: 34px; }
.player-title { font-size: 1.75rem; margin-bottom: 5px; }
.player-panel audio { width: 100%; margin: 12px 0 4px; }
.speed-control { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--blue-deep); }
.speed-control select { min-height: 42px; border: 1px solid #a7bad1; border-radius: 8px; padding: 6px 11px; color: var(--blue-deep); background: white; font: inherit; }
.chapter-heading { margin-top: 26px; }
.chapter-list { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 19px; }
.chapter { border: 1px solid #b9cce1; color: var(--blue-deep); background: white; border-radius: 100px; padding: 10px 15px; font: 650 .89rem "Segoe UI",sans-serif; cursor: pointer; }
.chapter:hover { background: #eef5fd; }
.work-about { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 28px; }
.about-title { font-size: 2rem; }
.download-link { margin-top: 24px; }
.state-panel { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 30px; margin-top: 28px; }
.state-panel h2 { font-size: 1.9rem; }
.preview-states { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-size: .85rem; color: var(--muted); }
.preview-states a { color: var(--blue); }
.error-page { min-height: 65vh; padding-block: 100px; }
.error-page h1 { margin-block: 16px 24px; }
.error-page .button { margin-top: 14px; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #d48818; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
[hidden] { display: none !important; }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: .87rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner a { color: var(--blue); }

@media (max-width: 800px) {
  .hero-grid, .work-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 68px; }
  .hero-art { width: min(460px,100%); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .work-art { width: min(340px,100%); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 32px,1160px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 17px; }
  .site-nav { gap: 18px; }
  .section { padding-block: 65px; }
  .band-inner { align-items: flex-start; flex-direction: column; }
  .studio-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
