.page-theme {
    color: var(--ink);
    background: var(--white);
    --space-section: clamp(3.5rem, 7vw, 7rem);
}
.page-theme .hero-inner { min-height: clamp(29rem, 46vw, 44rem); }
.page-theme .hero h1 { font-size: clamp(2.65rem, 5vw, 5.2rem); text-wrap: balance; }
.page-theme .hero-text-only .hero-copy { max-width: 49rem; }
.page-theme .app-frame img { aspect-ratio: 4 / 3; object-fit: contain; }
.page-theme .section-heading h2 { font-size: clamp(1.9rem, 4vw, 3.6rem); }
.page-theme .page-photo-credit { padding-bottom: 1.4rem; margin-bottom: 0; color: var(--muted); font-size: .875rem; }
.page-theme .studio-code { color: #e7eeff; background: #202938; border-color: #39465d; }
.page-theme .studio-code code { white-space: pre-wrap; overflow-wrap: anywhere; }

.theme-cobalt {
    --white: #fdfdff;
    --paper: #f0f4fb;
    --ink: #162237;
    --muted: #46586f;
    --line: #cbd7e5;
    --accent: #184ed3;
    --accent-deep: #153a9b;
}
.theme-cobalt .hero {
    background: radial-gradient(ellipse at 77% 28%, #c9dafa 0, transparent 45%),
        radial-gradient(circle, #96adc8 1px, transparent 1px) 0 0 / 16px 16px, var(--paper);
}
.theme-cobalt .app-frame {
    border-radius: 1.1rem .2rem;
    border-color: #4c6284;
    background: #252f40;
    box-shadow: 0 24px 45px -30px #2136569c;
}
.theme-cobalt .button { border-radius: .25rem; border-bottom-width: 3px; }
.theme-cobalt .button-outline { background: var(--white); }
.theme-cobalt .button-primary { border-bottom-color: #123884; }
.template-ledger { border-block-start: 2px solid var(--ink); }
.template-ledger article { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.template-ledger article h3 { margin: 0; }

.theme-studio {
    --white: #fbfaf7;
    --paper: #eeeae2;
    --ink: #211e19;
    --muted: #5f5547;
    --line: #cfc5b6;
    --accent: #9c3818;
    --accent-deep: #78290f;
    --accent-light: #ffe7d5;
}
.theme-studio .hero {
    background: radial-gradient(circle, #9d8269 1px, transparent 1px) 0 0 / 24px 24px, var(--paper);
}
.theme-studio .hero-copy { background: var(--paper); padding-block: .85rem 1.25rem; }
.theme-studio :is(h1, h2, h3) {
    font-family: 'Noto Serif CJK SC', 'Songti SC', 'STSong', Georgia, serif;
    font-weight: 560;
    letter-spacing: -.055em;
}
.theme-studio .app-frame {
    padding: .45rem;
    border-radius: 0;
    border-color: #6f5342;
    outline: 1px solid #a24528;
    outline-offset: .45rem;
    background: var(--white);
    box-shadow: 12px 19px 0 -9px #684e3429;
}
.theme-studio .app-frame img { border-radius: 0; object-fit: cover; }
.theme-studio .button { border-radius: .15rem; }
.theme-studio .button-primary { color: #231911; background: #f3a578; border-color: #713a24; }
.theme-studio .button-primary:hover { background: #f8ba96; }
.theme-studio .button-outline { background: var(--white); border-color: #827261; }
.template-portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 5vw, 4rem); }
.template-portfolio img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.template-portfolio h3 { margin-top: 1rem; }

.theme-dusk {
    --white: #191d2b;
    --paper: #222739;
    --ink: #f7f4f2;
    --muted: #bfc5d8;
    --line: #505971;
    --accent: #bdc7ff;
    --accent-deep: #dbe1ff;
    --accent-light: #343d5e;
}
.theme-dusk .hero { background: radial-gradient(ellipse at 77% 48%, #454255 0, #222639 46%, #191d2b 78%); }
.theme-dusk .app-frame {
    border: 1px solid #8b869c;
    background: #514d6370;
    padding: .6rem;
    box-shadow: 0 21px 65px -20px #090a18ab;
}
.theme-dusk .app-frame img { object-fit: cover; }
.theme-dusk .button-primary, .theme-dusk .button-primary:hover { color: #151a30; }
.theme-dusk .button-outline { color: var(--ink); border-color: #8c96b0; }
.theme-dusk .button-outline:hover { color: var(--accent-deep); background: var(--paper); }
.theme-dusk .crumb-divider { color: var(--muted); }
.theme-dusk .article-tabs button { background: var(--white); }
.template-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 4vw, 3rem);
    border-block-start: 1px solid var(--line);
}
.rich .template-steps { padding-inline-start: 1.6rem; }
.template-steps li { padding: 1.35rem .25rem 0; }
.template-steps li::marker { color: var(--accent); font-weight: 650; }

@media (max-width: 44rem) {
    .page-theme .hero-inner { min-height: auto; }
    .template-ledger article, .template-portfolio, .template-steps { grid-template-columns: 1fr; }
    .template-ledger article { gap: .4rem; }
    .template-steps { gap: .8rem; }
}

.theme-vantage {
    --white: #121b20;
    --paper: #1b272d;
    --ink: #eef4f1;
    --muted: #bdcdc8;
    --line: #53676b;
    --accent: #bfe971;
    --accent-deep: #d7ffa0;
    --accent-light: #2e4233;
}
.theme-vantage .hero {
    background: radial-gradient(ellipse at 82% 35%, #243b39, transparent 65%),
        radial-gradient(circle, #4b6959 1px, transparent 1.4px) 0 0 / 18px 18px, var(--white);
}
.theme-vantage .hero-copy { background: #121b20; padding-block: 1rem; }
.theme-vantage .app-frame { border: 1px solid #618076; border-radius: .2rem; background: #263738; box-shadow: 8px 8px 0 #172e26; }
.theme-vantage .app-frame img, .theme-vantage .button { border-radius: .2rem; }
.theme-vantage .button-primary, .theme-vantage .button-primary:hover { color: #172318; }
.theme-vantage .button-outline { border-color: #7d9b8e; color: var(--ink); }
.theme-vantage .button-outline:hover { background: var(--paper); }

.theme-ribbon {
    --white: #fffdfb;
    --paper: #f0eaf8;
    --ink: #2d2546;
    --muted: #5a516e;
    --line: #d9cce8;
    --accent: #633ab1;
    --accent-deep: #4d268e;
    --accent-light: #ebdfff;
}
.theme-ribbon .hero { background: radial-gradient(ellipse at 88% 24%, #d9c5f3, transparent 60%), #f5eff9; }
.theme-ribbon .app-frame { border-color: #b9a1db; border-radius: clamp(1.4rem, 4vw, 3rem); background: #fffafc; box-shadow: 0 22px 65px -31px #68489b83; }
.theme-ribbon .app-frame img { border-radius: 1rem; object-fit: cover; }
.theme-ribbon .button { border-radius: 2rem; }
.theme-ribbon .button-outline { border-color: #ac99c8; background: var(--white); }
.theme-ribbon .studio-split img { border-radius: 1.4rem; border: 1px solid var(--line); }

.theme-furrow {
    --white: #fdf9ee;
    --paper: #f1e9d5;
    --ink: #262b1c;
    --muted: #5a5847;
    --line: #c9bd9f;
    --accent: #325335;
    --accent-deep: #233a27;
    --accent-light: #e3ecd9;
}
.theme-furrow .hero { background: linear-gradient(115deg, #f7f0dd, #eee2c5); }
.theme-furrow .hero-copy { border-inline-start: .3rem solid #b67e28; padding-inline-start: clamp(1rem, 2.6vw, 2.2rem); }
.theme-furrow :is(h1, h2) { font-family: 'Noto Serif CJK SC', 'Songti SC', Georgia, serif; }
.theme-furrow .app-frame { border: 1px solid #9f946f; border-radius: .3rem; background: #fff8e7; box-shadow: 9px 9px 0 #c6ae7d56; }
.theme-furrow .app-frame img { border-radius: .15rem; }
.theme-furrow .button { border-radius: .2rem; }
.theme-furrow .button-outline { border-color: #908764; background: var(--white); }
