:root {
    color-scheme: light;
    --bg: #f4f3f0;
    --surface: #fff;
    --ink: #24252a;
    --muted: #60646e;
    --line: rgba(25, 29, 40, 0.12);
    --soft: #efeeeb;
    --button: #24252a;
    --button-ink: #fff;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #15161b;
    --surface: #202128;
    --ink: #f2f2f0;
    --muted: #a9adb7;
    --line: rgba(245, 246, 255, 0.14);
    --soft: #2a2b34;
    --button: #f2f2f0;
    --button-ink: #24252a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 3px solid #8b7eda;
    outline-offset: 4px;
}

svg { display: block; }

.shell {
    width: min(1360px, calc(100% - 80px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--button);
    color: var(--button-ink);
    transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--ink);
    color: var(--bg);
    display: grid;
    place-items: center;
}

.brand-symbol { width: 100%; height: 100%; }

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font: 9px 'DM Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.back-link,
.download-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.back-link { color: var(--muted); }
.back-link:hover { color: var(--ink); }

.header-actions svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-button {
    padding: 10px 15px;
    border-radius: 9px;
    background: var(--button);
    color: var(--button-ink);
}

.download-button:hover { opacity: 0.85; }

.intro {
    padding-block: 40px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.045em;
}

h1 em { font-family: Georgia, serif; font-weight: 400; }

.intro-copy {
    max-width: 370px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.intro-copy strong { color: var(--ink); font-weight: 700; }

.toolbar {
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filters,
.controls,
.control-group { display: flex; align-items: center; }
.filters { flex-wrap: wrap; gap: 4px; }
.control-group { gap: 2px; }

.filters a,
.controls a {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.filters a:hover,
.controls a:hover { color: var(--ink); background: var(--soft); }
.filters a[aria-current="true"] { background: var(--button); color: var(--button-ink); }

.controls { border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; }
.controls a[aria-current="true"] { background: var(--soft); color: var(--ink); }
.controls .separator { width: 1px; height: 17px; margin-inline: 2px; background: var(--line); }

.count {
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    line-height: 1.7;
}

.count [data-count] { color: var(--ink); }

.options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.option {
    min-width: 0;
    padding: 19px 22px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.option[hidden] { display: none; }

.option-head {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
}

.option-head > span {
    width: 26px;
    height: 25px;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    place-items: center;
}

.option-head small {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.in-use {
    padding: 5px 7px;
    border-radius: 5px;
    background: var(--soft);
    color: var(--ink);
    font-size: 8px;
    font-weight: 400;
}

.icon-stage { height: 120px; position: relative; display: grid; place-items: center; }
.icon-stage > img { width: 82px; height: 82px; }

.small-test {
    position: absolute;
    right: 0;
    bottom: 17px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.small-test span { font: 8px 'DM Mono', monospace; }
.small-test img { width: 20px; height: 20px; }

.option-copy h2 { margin: 0 0 5px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.option-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.footer-sample {
    margin-top: 17px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    align-items: center;
    background: var(--brand-tint);
}

.footer-sample img { width: 260px; max-width: 100%; height: auto; display: block; }
.concept { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.usage { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.usage > span { display: block; margin-bottom: 2px; color: var(--ink); font: 8px 'DM Mono', monospace; letter-spacing: 0.05em; text-transform: uppercase; }

.option-bottom {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.swatches { margin-right: auto; display: flex; gap: 5px; }
.swatches i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, 0.16); background: var(--brand-ink); }
.swatches .swatch-accent { background: var(--brand-accent); }
:root[data-mode="mono"] .swatch-accent { display: none; }

.option-bottom > a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font: 9px 'DM Mono', monospace;
    text-decoration: none;
    white-space: nowrap;
}

.option-bottom > a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
:root[data-theme="dark"] .footer-sample { background: #272932; }
:root[data-theme="dark"] .swatches i:first-child { background: #f2f2f0; }

.collection-note {
    margin-top: 26px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 32px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.collection-note > strong { color: var(--ink); }
.collection-note p { max-width: 800px; margin: 0; grid-column: 1; }
.collection-note b { color: var(--ink); font-weight: 700; }
.collection-note a { min-height: 44px; grid-column: 2; grid-row: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

.site-footer {
    padding-block: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    line-height: 1.7;
}

.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer-brand-mark { width: 34px; height: 34px; background: var(--soft); border-radius: 8px; }
.footer-brand small { display: block; color: var(--muted); font: 9px 'Manrope', sans-serif; }
.footer-brand strong { display: block; font: 700 11px 'Manrope', sans-serif; }
.site-footer p { margin: 0; }

@media (max-width: 1100px) {
    .shell { width: calc(100% - 48px); }
    .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro { gap: 24px; }
    .intro-copy { max-width: 300px; }
}

@media (max-width: 720px) {
    .shell { width: calc(100% - 28px); }
    .site-header { padding-block: 20px; flex-wrap: wrap; gap: 18px; }
    .header-actions { width: 100%; justify-content: space-between; gap: 10px; }
    .intro { padding-block: 30px 24px; align-items: flex-start; flex-direction: column; gap: 18px; }
    .intro-copy { max-width: 100%; }
    .toolbar { gap: 14px; align-items: flex-start; }
    .options { grid-template-columns: 1fr; }
    .option { padding-inline: 20px; }
    h1 { font-size: clamp(30px, 7.2vw, 38px); }
    .eyebrow { font-size: 9px; }
    .filters { gap: 2px; }
    .filters a { padding-inline: 10px; font-size: 10px; }
    .controls { gap: 1px; }
    .controls a { padding-inline: 9px; font-size: 10px; }
    .controls .separator { margin-inline: 1px; }
    .collection-note { padding: 20px; grid-template-columns: 1fr; gap: 8px; }
    .collection-note a { grid-column: 1; grid-row: auto; justify-self: start; }
    .site-footer { flex-wrap: wrap; gap: 16px; }
}

@media print {
    @page { size: A4 landscape; margin: 12mm; }
    .shell { width: 100%; }
    .site-header, .toolbar, .collection-note, .site-footer, .count, .skip-link { display: none; }
    .intro { padding: 0 0 16px; }
    .intro-copy { font-size: 10px; }
    h1 { font-size: 30px; }
    .options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .option { break-inside: avoid; padding: 12px 15px; }
    .icon-stage { height: 80px; }
    .icon-stage > img { width: 62px; height: 62px; }
    .concept { font-size: 9px; }
    .option-copy h2 { font-size: 17px; }
    .option-copy p, .usage { font-size: 9px; }
    .option-bottom { display: none; }
}
