* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--color-page); color: var(--color-text); font: var(--text-sm)/var(--leading-body) var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, summary, select, input[type='checkbox'], input[type='range'] { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: var(--weight-medium); line-height: var(--leading-heading); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-md); line-height: 1.4; font-weight: var(--weight-semibold); text-wrap: balance; }
p { text-wrap: pretty; max-width: 72ch; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ac-wine); outline-offset: 4px; }
.sidebar :focus-visible, .brand-stage :focus-visible { outline-color: var(--ac-light-gold); }
::selection { background: var(--ac-light-gold); color: var(--ac-wine); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: var(--space-4); left: var(--space-4); transform: translateY(-160%); background: var(--ac-wine); color: white; padding: var(--space-3) var(--space-6); z-index: var(--z-toast); border-radius: var(--radius-sm); }
.skip-link:focus { transform: none; }
.icon { flex: none; display: block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; background: var(--color-sidebar); color: var(--ac-pure-white); padding: var(--space-8) var(--space-4) var(--space-6); }
.brand-link { display: block; text-decoration: none; padding: var(--space-2) var(--space-3); }
.brand-link img { width: 192px; }
.sidebar-caption { margin: var(--space-4) var(--space-3) var(--space-8); color: var(--color-sidebar-muted); font-size: var(--text-xs); }
.sidebar-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: var(--space-1); }
.nav-group { margin-bottom: var(--space-6); }
.nav-label { color: var(--color-sidebar-muted); font-size: var(--text-xs); margin: 0 var(--space-3) var(--space-3); }
.nav-link { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-3); border: 1px solid transparent; border-radius: var(--radius-md); color: var(--color-sidebar-muted); text-decoration: none; font-size: var(--text-xs); font-weight: var(--weight-medium); margin-bottom: var(--space-1); }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link[aria-current='page'] { color: var(--ac-light-gold); background: var(--color-sidebar-selected); border-color: var(--ac-gold); }
.nav-link .nav-dot { margin-left: auto; display: block; width: 6px; height: 6px; background: var(--ac-light-gold); border-radius: 50%; visibility: hidden; }
.nav-link[aria-current='page'] .nav-dot { visibility: visible; }
.sidebar-bottom { margin: var(--space-4) var(--space-3) 0; padding-top: var(--space-6); border-top: 1px solid var(--color-sidebar-border); }
.sidebar-bottom a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--ac-pure-white); text-decoration: none; font-size: var(--text-xs); }
.sidebar-bottom p { color: var(--color-sidebar-muted); font-size: var(--text-xs); margin-top: var(--space-3); }
.drawer-close, .menu-button, .nav-scrim { display: none; }
.main-shell { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: var(--z-header); background: var(--color-page); border-bottom: 1px solid var(--color-border); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--space-12); }
.breadcrumb { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); }
.breadcrumb-root { color: var(--color-muted); }
.breadcrumb-divider { color: var(--ac-gold); }
.breadcrumb-current { font-weight: var(--weight-medium); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.search-box { position: relative; width: 272px; max-width: 100%; }
.search-input-wrap { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.search-input-wrap:focus-within { outline: 2px solid var(--ac-wine); outline-offset: 2px; }
.search-input-wrap .icon { width: 16px; height: 16px; color: var(--color-muted); }
.search-visible-label { flex: none; font-size: var(--text-xs); color: var(--color-muted); }
.search-input-wrap input { display: block; min-width: 0; width: 100%; border: 0; outline: 0; padding: var(--space-2) 0; background: transparent; color: var(--color-text); font-size: var(--text-xs); cursor: text; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
kbd { font: 12px/1.5 var(--font-code); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 var(--space-1); white-space: nowrap; color: var(--color-muted); }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; width: min(384px, calc(100vw - 32px)); max-height: 440px; overflow-y: auto; background: var(--color-surface); border: 1px solid var(--color-control-border); border-radius: var(--radius-md); padding: var(--space-2); z-index: var(--z-dropdown); }
.search-result { display: block; padding: var(--space-3); color: var(--color-text); text-decoration: none; border-radius: var(--radius-sm); }
.search-result strong, .search-result span { display: block; }
.search-result span { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-1); }
.search-empty { padding: var(--space-4); }
.header-download { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border: 1px solid var(--color-border); background: transparent; border-radius: var(--radius-md); text-decoration: none; }
.content { padding: var(--space-12); max-width: var(--content-max); margin-inline: auto; }
.page { animation: page-enter var(--motion-enter) var(--ease-enter) both; }
@keyframes page-enter { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-header { margin-bottom: var(--space-12); }
.page-header .badge { margin-bottom: var(--space-4); }
.page-intro { color: var(--color-muted); font-size: var(--text-md); margin-top: var(--space-6); max-width: 60ch; }
.home-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: end; margin-bottom: var(--space-8); }
.home-intro h1 { font-size: var(--text-4xl); }
.home-intro .intro-copy { padding-bottom: var(--space-1); color: var(--color-muted); }
.eyebrow { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--ac-wine); margin-bottom: var(--space-4); }
.intro-copy .text-link { margin-top: var(--space-4); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: var(--weight-semibold); font-size: var(--text-xs); text-decoration: none; color: var(--color-primary); }
.text-link .icon { width: 16px; height: 16px; }
.brand-stage { background: var(--ac-black); color: var(--ac-white); border-radius: var(--radius-lg); display: grid; grid-template-rows: 1fr auto; }
.stage-image { min-height: 280px; padding: var(--space-12); display: grid; place-items: center; }
.stage-image img { width: min(78%, 592px); height: auto; }
.stage-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--color-sidebar-border); padding: var(--space-4) var(--space-6); color: var(--color-sidebar-muted); font-size: var(--text-xs); }
.stage-caption .dot-label { color: var(--ac-light-gold); }
.dot-label { display: flex; align-items: center; gap: var(--space-2); }
.dot-label::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.stage-choice { display: flex; gap: var(--space-2); }
.stage-choice button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-sidebar-border); border-radius: var(--radius-sm); color: var(--ac-white); background: transparent; font-size: var(--text-xs); }
.stage-choice button[aria-pressed='true'] { border-color: var(--ac-gold); color: var(--ac-light-gold); }
.brand-stage.light { background: var(--ac-pure-white); color: var(--ac-black); border: 1px solid var(--color-border); }
.brand-stage.light .stage-caption { color: var(--color-muted); border-color: var(--color-border); }
.brand-stage.light .stage-choice button { color: var(--ac-black); border-color: var(--color-border); }
.brand-stage.light .stage-choice button[aria-pressed='true'] { border-color: var(--ac-wine); color: var(--ac-wine); }
.brand-stage.light :focus-visible { outline-color: var(--ac-wine); }
.brand-stage.light .dot-label { color: var(--ac-wine); }
.overview-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin: var(--space-8) 0 var(--space-12); }
.overview-link { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0 var(--space-6); text-decoration: none; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.overview-link h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: 0; }
.overview-link p { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--color-muted); }
.overview-link .icon { width: 16px; height: 16px; color: var(--ac-wine); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-6); }
.section-heading p { color: var(--color-muted); margin-top: var(--space-2); }
.foundations-preview { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); }
.foundation-link { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); color: inherit; text-decoration: none; min-width: 0; }
.foundation-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.foundation-top span { font-size: var(--text-xs); color: var(--color-muted); }
.mini-palette { display: flex; min-height: 104px; margin-bottom: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: clip; }
.mini-palette span { display: block; flex: 1; }
.mini-palette span:first-child { flex: 1.4; }
.foundation-link h3 { margin-top: auto; }
.foundation-link p { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-2); }
.font-duet { display: flex; align-items: baseline; gap: var(--space-8); min-height: 104px; margin-bottom: var(--space-6); }
.font-duet span { display: block; font-size: 72px; line-height: 1.2; }
.font-duet span:first-child { font-family: var(--font-display); color: var(--ac-wine); }
.font-duet span:last-child { font-weight: var(--weight-medium); }
.note { margin-top: var(--space-8); padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.note h3 { margin-bottom: var(--space-2); font-size: var(--text-sm); }
.note p { color: var(--color-muted); font-size: var(--text-xs); }
.note a { color: var(--ac-wine); font-weight: var(--weight-semibold); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 28px; padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--text-xs); line-height: 1.5; font-weight: var(--weight-medium); background: var(--color-surface); color: var(--color-muted); }
.badge-official { color: var(--ac-wine); }
.document-section + .document-section { margin-top: var(--space-12); }
.document-section > p { color: var(--color-muted); margin-top: var(--space-4); }
.source { color: var(--color-muted); font-size: var(--text-xs); margin-top: var(--space-6); }
.source a { color: var(--color-primary); }
.brand-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: start; }
.brand-story p + p { margin-top: var(--space-6); }
.symbol-panel { background: var(--ac-wine); padding: var(--space-12); border-radius: var(--radius-md); display: grid; place-items: center; }
.symbol-panel img { width: 200px; }
.symbol-panel figcaption { margin-top: var(--space-6); color: var(--ac-light-gold); text-align: center; font-size: var(--text-xs); }
.brand-quote { font: var(--weight-medium) var(--text-2xl)/1.4 var(--font-display); color: var(--ac-wine); margin: var(--space-12) 0; max-width: 34ch; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.tag-list span { display: block; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.rule-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.rule-list li { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.rule-list .icon { margin-top: var(--space-1); color: var(--ac-wine); }
.rule-list strong, .rule-list span { display: block; }
.rule-list span { color: var(--color-muted); margin-top: var(--space-1); }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field > label, .field > .field-label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.field input:not([type='checkbox']):not([type='range']), .field select, .field textarea { display: block; min-width: 0; width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); }
.field input[aria-invalid='true'] { border: 2px solid var(--ac-wine); }
.field input[type='range'] { accent-color: var(--ac-wine); width: 100%; min-height: 44px; margin: 0; }
.field-error { display: block; color: var(--ac-wine); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.field-help { display: block; color: var(--color-muted); font-size: var(--text-xs); }
.control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.control-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo-display { display: grid; place-items: center; min-height: 288px; padding: var(--space-12); background: var(--ac-black); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.logo-display img { width: min(100%, 560px); height: auto; }
.logo-display img.is-symbol { width: min(100%, 168px); }
.logo-meta { margin-top: var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.logo-meta p { font-size: var(--text-xs); color: var(--color-muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-6); border: 1px solid transparent; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1.4; text-decoration: none; white-space: nowrap; }
.button-primary { background: var(--color-primary); color: var(--color-on-primary); }
.button-secondary { background: var(--color-surface); border-color: var(--color-border); color: var(--color-primary); }
.button-quiet { background: transparent; border-color: transparent; color: var(--color-primary); padding-inline: var(--space-3); }
.button:disabled { background: var(--color-border); color: var(--color-muted); border-color: var(--color-border); }
.button .icon { width: 16px; height: 16px; }
.button-small { padding-inline: var(--space-4); }
details { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); margin-top: var(--space-6); }
summary { padding: var(--space-4) var(--space-6); font-weight: var(--weight-medium); min-height: 56px; }
.details-body { padding: 0 var(--space-6) var(--space-6); }
.reference-image { width: 100%; height: auto; margin-top: var(--space-4); }
.segmented { display: inline-flex; gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.segmented button { display: block; min-height: 44px; padding: var(--space-2) var(--space-4); background: transparent; border: 0; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.segmented button[aria-pressed='true'], .segmented button[aria-selected='true'] { background: var(--ac-wine); color: var(--ac-pure-white); }
.palette-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.swatch { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: clip; }
.swatch-color { display: flex; align-items: flex-end; justify-content: space-between; min-height: 140px; padding: var(--space-4); background: var(--swatch); color: var(--swatch-ink); }
.swatch-color .icon { width: 20px; height: 20px; }
.swatch-copy { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.swatch-value { display: block; font-family: var(--font-code); font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; }
.swatch-body { padding: var(--space-4); }
.swatch-name { font-size: var(--text-xs); font-weight: var(--weight-semibold); display: block; }
.swatch-token { display: block; font: 12px/1.6 var(--font-code); color: var(--color-muted); margin-top: var(--space-1); overflow-wrap: anywhere; }
.contrast-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-6); margin-top: var(--space-6); }
.contrast-controls { display: grid; gap: var(--space-4); }
.contrast-preview { display: flex; flex-direction: column; justify-content: center; padding: var(--space-8); background: var(--ac-white); color: var(--ac-black); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.contrast-preview strong { font: var(--weight-medium) var(--text-2xl)/1.3 var(--font-display); }
.contrast-preview p { margin-top: var(--space-4); }
.contrast-results { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.ratio { font: var(--weight-medium) var(--text-3xl)/1.2 var(--font-display); white-space: nowrap; margin-right: var(--space-3); }
.contrast-status { display: block; font-size: var(--text-xs); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.contrast-status.fail { color: var(--ac-wine); border-color: var(--ac-wine); font-weight: var(--weight-semibold); }
.specimen-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: center; padding: var(--space-8) 0; border-top: 1px solid var(--color-border); }
.specimen-big { font-size: 80px; line-height: 1.2; letter-spacing: -.03em; }
.display-font { font-family: var(--font-display); }
.specimen-detail h2 { font-family: var(--font-body); font-size: var(--text-xl); letter-spacing: 0; font-weight: var(--weight-semibold); }
.specimen-detail p { color: var(--color-muted); margin-top: var(--space-2); }
.font-playground { margin-top: var(--space-6); padding: var(--space-8); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.font-sample { padding: var(--space-8) 0; font: 400 40px/1.4 var(--font-display); overflow-wrap: anywhere; min-height: 160px; }
.table-wrap { margin-top: var(--space-6); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-xs); }
th { font-weight: var(--weight-semibold); color: var(--color-muted); }
th, td { padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
code { font-family: var(--font-code); font-size: .9em; }
.spacing-list { display: grid; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.spacing-row { display: grid; grid-template-columns: 104px 48px 1fr; gap: var(--space-4); align-items: center; font-size: var(--text-xs); }
.spacing-bar { display: block; height: 20px; width: min(100%, calc(var(--sample-space) * 4)); background: var(--ac-wine); border-radius: 2px; }
.radius-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); }
.radius-example { background: var(--color-surface); border: 1px solid var(--color-control-border); padding: var(--space-6); min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); }
.radius-example code, .radius-example span { display: block; }
.radius-example span { color: var(--color-muted); font-size: var(--text-xs); }
.code-block { margin-top: var(--space-6); background: var(--ac-black); color: var(--ac-white); border-radius: var(--radius-md); }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-sidebar-border); }
.code-header span { font: var(--text-xs)/1.5 var(--font-code); color: var(--color-sidebar-muted); }
.code-copy { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-3); color: var(--ac-white); background: transparent; border: 1px solid var(--color-sidebar-border); border-radius: var(--radius-sm); font-size: var(--text-xs); }
.code-copy:focus-visible { outline-color: var(--ac-light-gold); }
pre { margin: 0; padding: var(--space-6); white-space: pre-wrap; overflow-wrap: anywhere; font: var(--text-xs)/1.8 var(--font-code); }
.component-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-4); margin-bottom: var(--space-8); }
.component-tabs button { display: block; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--color-muted); font-weight: var(--weight-medium); }
.component-tabs button[aria-selected='true'] { color: var(--ac-wine); border-color: var(--ac-wine); background: var(--color-surface); }
.component-stage { padding: var(--space-8); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-top: var(--space-6); }
.button-demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.demo-result { color: var(--color-muted); margin-top: var(--space-4); font-size: var(--text-xs); min-height: 24px; }
.progress-track { background: var(--color-border); height: 4px; margin-top: var(--space-4); border-radius: var(--radius-sm); overflow: clip; }
.progress-track span { display: block; width: 100%; height: 4px; background: var(--ac-gold); transform-origin: left; animation: progress 800ms var(--ease-enter) both; }
@keyframes progress { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
.demo-form { display: grid; gap: var(--space-6); max-width: 560px; }
.checkbox-field { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.checkbox-field input { display: block; width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--ac-wine); }
.checkbox-field label { font-size: var(--text-xs); cursor: pointer; }
.error-summary { padding: var(--space-4); border: 1px solid var(--ac-wine); border-radius: var(--radius-sm); color: var(--ac-wine); }
.error-summary ul { margin: var(--space-2) 0 0; padding-left: var(--space-6); }
.form-success { margin-top: var(--space-4); color: var(--ac-wine); font-weight: var(--weight-medium); }
.feedback-message { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-6); border: 1px solid var(--color-control-border); border-radius: var(--radius-md); margin-top: var(--space-6); }
.feedback-message .icon { margin-top: var(--space-1); }
.feedback-message strong, .feedback-message span { display: block; }
.feedback-message span { color: var(--color-muted); margin-top: var(--space-1); }
.resource-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.resource-count { color: var(--color-muted); font-size: var(--text-xs); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.resource { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: clip; }
.resource-preview { background: var(--ac-black); min-height: 156px; padding: var(--space-6); display: grid; place-items: center; }
.resource-preview.light { background: var(--ac-white); }
.resource-preview img { width: min(100%, 320px); height: auto; }
.resource-preview img.is-symbol { width: 104px; }
.resource-body { padding: var(--space-6); }
.resource-body h3 { font-size: var(--text-sm); }
.resource-original { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-1); overflow-wrap: anywhere; }
.resource-downloads { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.resource-downloads a { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-decoration: none; font-size: var(--text-xs); color: var(--ac-wine); font-weight: var(--weight-medium); }
.resource-downloads .icon { width: 14px; height: 14px; }
.download-list { margin-top: var(--space-6); }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.download-row strong, .download-row span { display: block; }
.download-row span { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-1); }
.download-row .button span { margin: 0; color: inherit; }
.community-resource { display: grid; grid-template-columns: 184px 1fr; gap: var(--space-6); align-items: center; margin-top: var(--space-6); }
.community-resource img { width: 184px; border-radius: var(--radius-sm); }
.community-resource p { color: var(--color-muted); margin-top: var(--space-2); font-size: var(--text-xs); }
.community-resource .button { margin-top: var(--space-4); }
.page-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: var(--text-xs); }
.page-footer a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--ac-wine); text-decoration: none; }
.toast { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: var(--z-toast); display: flex; align-items: center; gap: var(--space-3); max-width: calc(100vw - 48px); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--ac-wine); color: var(--ac-pure-white); animation: page-enter var(--motion-enter) var(--ease-enter); }
.copy-fallback { margin-top: var(--space-4); }
.copy-fallback textarea { display: block; width: 100%; min-height: 96px; font-family: var(--font-code); padding: var(--space-3); border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); }
.copy-fallback p { font-size: var(--text-xs); color: var(--color-muted); margin-bottom: var(--space-2); }
.no-script { padding: var(--space-6); margin: var(--space-6); background: white; border: 1px solid var(--ac-wine); }
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
  .nav-link:hover { background: var(--color-sidebar-hover); color: white; }
  .nav-link[aria-current='page']:hover { background: var(--color-sidebar-selected); color: var(--ac-light-gold); }
  .sidebar-bottom a:hover { color: var(--ac-light-gold); }
  .header-download:hover, .button-secondary:hover, .resource-downloads a:hover { border-color: var(--ac-wine); color: var(--ac-wine); }
  .text-link:hover, .page-footer a:hover { text-decoration: underline; }
  .overview-link:hover h2, .foundation-link:hover h3 { text-decoration: underline; text-decoration-color: var(--ac-gold); text-underline-offset: 5px; }
  .button-primary:hover:not(:disabled) { background: var(--ac-black); }
  .button-quiet:hover { text-decoration: underline; }
  .search-result:hover, .search-result:focus-visible { background: var(--ac-white); }
  .segmented button:hover:not([aria-pressed='true']), .component-tabs button:hover:not([aria-selected='true']) { background: var(--ac-white); color: var(--ac-wine); }
  .swatch-copy:hover { transform: translateY(-2px); }
  .code-copy:hover { border-color: var(--ac-light-gold); color: var(--ac-light-gold); }
}
@media (min-width: 1440px) {
  .content { padding-top: var(--space-12); padding-bottom: var(--space-16); }
  .stage-image { min-height: 304px; }
}
@media (max-width: 1199px) {
  .topbar { padding-inline: var(--space-8); }
  .content { padding: var(--space-8); }
  .breadcrumb-root { display: none; }
  .breadcrumb-divider { display: none; }
  .home-intro { grid-template-columns: 1fr; gap: var(--space-6); }
  .home-intro .intro-copy { max-width: 60ch; }
  .overview-links { gap: var(--space-6); }
  .stage-image img { width: min(100%, 560px); }
}
@media (max-width: 1023px) {
  :root { --sidebar-width: 224px; }
  .sidebar { padding-inline: var(--space-3); }
  .sidebar-caption { margin-bottom: var(--space-6); }
  .header-actions { gap: var(--space-2); }
  .search-box { width: 232px; }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foundations-preview, .brand-story, .contrast-layout { grid-template-columns: 1fr; }
  .symbol-panel img { width: 160px; }
  .brand-story { gap: var(--space-8); }
  .symbol-panel { grid-template-columns: 160px 1fr; gap: var(--space-6); }
  .symbol-panel figcaption { margin: 0; text-align: left; }
  .overview-links { grid-template-columns: 1fr; gap: 0; }
  .overview-link { padding-block: var(--space-6); }
  .overview-link p { max-width: 50ch; }
  .specimen-row { grid-template-columns: 1fr; gap: var(--space-4); }
  .control-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .radius-examples { gap: var(--space-3); }
  .radius-example { padding: var(--space-4); }
}
@media (max-width: 767px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(304px, calc(100vw - 48px)); height: 100dvh; z-index: var(--z-drawer); transform: translateX(-105%); visibility: hidden; transition: transform var(--motion-exit) var(--ease-exit), visibility var(--motion-exit); padding-top: var(--space-12); }
  .sidebar.is-open { transform: translateX(0); visibility: visible; transition-timing-function: var(--ease-enter); transition-duration: var(--motion-enter); }
  .drawer-close { display: flex; align-items: center; justify-content: center; position: absolute; top: var(--space-2); right: var(--space-2); width: 44px; height: 44px; background: transparent; border: 0; color: white; }
  .nav-scrim.is-open { display: block; position: fixed; inset: 0; border: 0; background: rgb(0 0 0 / .48); z-index: var(--z-scrim); }
  .menu-button { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; flex: none; padding: 0; background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
  .topbar { min-height: 76px; padding: var(--space-4) var(--space-6); gap: var(--space-3); }
  .breadcrumb { margin-right: auto; font-size: var(--text-xs); }
  .header-actions { flex: 0 1 232px; }
  .search-box { width: 100%; }
  .header-download, kbd { display: none; }
  .content { padding: var(--space-8) var(--space-6); }
  h1, .home-intro h1 { font-size: var(--text-3xl); }
  .home-intro { gap: var(--space-4); }
  .intro-copy { font-size: var(--text-sm); }
  .stage-image { min-height: 216px; padding: var(--space-8); }
  .stage-caption { padding: var(--space-3) var(--space-4); align-items: flex-start; flex-wrap: wrap; gap: var(--space-2); }
  .stage-caption .dot-label { min-height: 44px; }
  .overview-links { margin-bottom: var(--space-8); }
  .foundations-preview { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .foundation-link { padding: var(--space-4); }
  .font-duet { gap: var(--space-4); min-height: 80px; }
  .font-duet span { font-size: 56px; }
  .mini-palette { min-height: 80px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: var(--space-4); }
  .page-header { margin-bottom: var(--space-8); }
  .page-intro { font-size: var(--text-sm); }
  .document-section + .document-section { margin-top: var(--space-8); }
  .control-grid.two { grid-template-columns: 1fr; }
  .logo-display { padding: var(--space-8); min-height: 232px; }
  .palette-grid { gap: var(--space-4); }
  .swatch-color { min-height: 128px; display: grid; gap: var(--space-3); padding: var(--space-3); }
  .swatch-copy { order: -1; justify-self: end; }
  .swatch-value { font-size: var(--text-xs); }
  .font-playground, .component-stage { padding: var(--space-6); }
  .specimen-big { font-size: 64px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .resource-preview { min-height: 128px; padding: var(--space-4); }
  .resource-body { padding: var(--space-4); }
  .resource-downloads { gap: var(--space-2); }
  .resource-downloads a { padding-inline: var(--space-2); }
  .resource-downloads a .icon { display: none; }
  .download-row { align-items: flex-start; flex-wrap: wrap; gap: var(--space-4); }
  .toast { bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); right: var(--space-4); max-width: calc(100vw - 32px); padding: var(--space-4); }
}
@media (max-width: 479px) {
  .topbar { flex-wrap: wrap; gap: var(--space-3); }
  .header-actions { flex-basis: 100%; }
  .search-results { width: 100%; }
  .foundations-preview { grid-template-columns: 1fr; }
  .font-duet { min-height: 96px; }
  .font-duet span { font-size: 64px; }
  .mini-palette { min-height: 96px; }
  .stage-image { min-height: 192px; padding: var(--space-6); }
  .brand-quote { font-size: var(--text-xl); }
  .symbol-panel { grid-template-columns: 1fr; padding: var(--space-8); }
  .symbol-panel figcaption { text-align: center; }
  .palette-grid { grid-template-columns: 1fr 1fr; }
  .swatch-color { padding: var(--space-3); }
  .swatch-body { padding: var(--space-3); }
  .swatch-value { font-size: 12px; }
  .swatch-name { font-size: var(--text-xs); }
  .spacing-list { padding: var(--space-4); }
  .spacing-row { grid-template-columns: 88px 40px 1fr; gap: var(--space-2); }
  .radius-examples { grid-template-columns: 1fr; }
  .radius-example { flex-direction: row; align-items: center; min-height: 80px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-downloads a { padding-inline: var(--space-3); }
  .resource-downloads a .icon { display: block; }
  .community-resource { grid-template-columns: 1fr; }
  .community-resource img { width: min(100%, 280px); }
  .segmented { max-width: 100%; flex-wrap: wrap; }
  .component-stage { padding: var(--space-4); }
  .button-demo { gap: var(--space-3); }
  .font-playground { padding: var(--space-4); }
  .page-footer { margin-top: var(--space-12); }
}
@media (max-width: 374px) {
  .content, .topbar { padding-inline: var(--space-4); }
  h1, .home-intro h1 { font-size: var(--text-2xl); }
  .palette-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
