:root { color-scheme: light; font-family: system-ui, sans-serif; color: #24282d; background: #faf9f6; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: #205ba8; text-underline-offset: .2em; }
a:focus-visible, main:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9c4500; outline-offset: 4px; }
.site-header, main, .site-footer { max-width: 70rem; margin-inline: auto; padding: 1.5rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid #b9c9d4; }
.brand { font-size: 1.5rem; font-weight: 750; text-decoration: none; color: #24282d; letter-spacing: -.04em; }
main { min-height: 55vh; padding-block: 4rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; max-width: 22ch; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; letter-spacing: -.025em; }
h3 { letter-spacing: -.025em; }
p { max-width: 65ch; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: .6rem; }
.eyebrow { font-weight: 700; letter-spacing: .08em; color: #535b65; font-size: .8rem; text-transform: uppercase; }
.site-footer { border-top: 1px solid #b9c9d4; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .75rem; background: white; z-index: 1; }
.skip-link:focus { top: 1rem; }

/* Source preview (library) */
.source-preview { max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid #b9c9d4; padding: 1rem; }
.source-preview pre { margin: 0; counter-reset: source-line; line-height: 1.6; }
.source-line::before { counter-increment: source-line; content: counter(source-line); display: inline-block; width: 4ch; margin-right: 2ch; color: #535b65; user-select: none; }
.wraptoggle:checked ~ .source-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.revision-metadata dd { margin: 0 0 1rem; overflow-wrap: anywhere; }
.revision-metadata dt { font-weight: 700; }

/* Forms */
input, select, button { font: inherit; max-width: 100%; padding: .5rem; }
form label { display: block; margin-top: 1rem; }
textarea { display: block; width: 100%; max-width: 65rem; padding: .75rem; font: inherit; }
textarea[name="source"] { font-family: ui-monospace, monospace; }
.form-field { margin-block: 1.25rem; }
.helptext { color: #535b65; max-width: 65ch; }
.errorlist, .error-summary { color: #8a2519; }
.error-summary { border: 2px solid currentColor; padding: 1rem; }
button { min-height: 44px; cursor: pointer; margin-block: .5rem; }
button[value="publish"] { background: #205ba8; color: white; border: 1px solid #205ba8; }
.account-logout { display: inline; }

/* Navigation */
.desktop-nav, .site-footer nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.desktop-nav a, .mobile-nav a, .site-footer nav a { padding-block: .65rem; }
.mobile-nav { display: none; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.15rem; border: 1px solid #205ba8; border-radius: .25rem; background: #205ba8; color: #fff; text-decoration: none; font-weight: 650; text-align: center; }
.button:hover { background: #16467f; color: #fff; }
.button.secondary { background: transparent; color: #205ba8; }
.button.secondary:hover { background: #edf2f8; }

/* Breadcrumb */
.breadcrumb { font-size: .95rem; margin-bottom: 2.5rem; }
.breadcrumb span { margin-inline: .5rem; }

/* Hero */
.hero { padding-block: 1rem 4rem; }
.hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 6vw, 4.6rem); margin-block: .4em; }
.lead { font-size: 1.25rem; line-height: 1.6; max-width: 53ch; }
.muted { color: #535b65; }
.actions { margin-top: 1.75rem; }

/* Sections */
.section { border-top: 1px solid #c7ccd0; padding-block: 3rem; }
.section:first-child { border-top: none; }
.section h2 { margin-top: 0; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.split > * { min-width: 0; }

/* Notice/callout */
.notice { background: #edf2f8; border-left: 3px solid #205ba8; padding: 1.25rem; max-width: 70ch; }
.notice h2 { font-size: 1.25rem; }

/* Concept (AI workflow) */
.concept { background: #f0f2f1; padding-inline: 2rem; }

/* Category links */
.category-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; }
.category-links li { margin: 0; }
.category-links a { display: block; padding: .6rem 1rem; border: 1px solid #b9c9d4; border-radius: .25rem; }

/* Lists */
.feature-list, .resource-list, .steps { max-width: 65ch; padding-left: 1.5rem; }
.resource-list li, .steps li { padding-block: .5rem; }

/* Contact form */
.contact-form { max-width: 44rem; margin-top: 2rem; }
.contact-form input, .contact-form select { width: 100%; }
input, select, textarea { border: 1px solid #727b85; border-radius: .2rem; background: #fff; color: #24282d; }
.account-nav { padding-bottom: 2rem; }

/* Library filters */
.library-filters summary { cursor: pointer; min-height: 44px; padding: .6rem; font-weight: 650; }
.library-filters { border: 1px solid #b9c9d4; padding: .5rem; }
.draft-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Media components */
.hero-media { margin-top: 2.5rem; max-width: 100%; }
.hero-media img { display: block; max-width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.product-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.product-gallery figure { margin: 0; }
.product-gallery img { display: block; width: 100%; height: auto; border-radius: .375rem; border: 1px solid #d0d4d8; background: #fff; }
.product-gallery figcaption { margin-top: .5rem; font-size: .9rem; color: #535b65; }

.screenshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.screenshot-grid figure { margin: 0; }
.screenshot-grid img { display: block; width: 100%; height: auto; border-radius: .375rem; border: 1px solid #d0d4d8; }
.screenshot-grid figcaption { margin-top: .5rem; font-size: .9rem; color: #535b65; }

.waveform-img { display: block; max-width: 600px; margin: 1.5rem 0; border-radius: .375rem; }

.download-list { list-style: none; padding: 0; }
.download-list li { margin-block: 1rem; padding: 1.25rem; background: #fff; border: 1px solid #d0d4d8; border-radius: .375rem; }
.download-list .download-title { font-weight: 650; font-size: 1.1rem; }
.download-list .download-meta { color: #535b65; font-size: .85rem; margin-top: .25rem; }

@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { cursor: pointer; min-height: 44px; padding: .6rem; }
  .mobile-nav[open] { flex-basis: 100%; }
  .mobile-nav nav { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; padding-block: .5rem; }
  .site-header, main, .site-footer { padding-inline: 1.15rem; }
  main { padding-block: 2rem; }
  .split { grid-template-columns: 1fr; gap: .5rem; }
  .section { padding-block: 2rem; }
  .concept { padding-inline: 1rem; }
  .hero { padding-bottom: 2rem; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
