.theme-page, .directory-page { background: var(--ink); color: var(--paper); }
.theme-breadcrumb { max-width: var(--content-max); margin: 0 auto; padding: 24px var(--page-gutter) 0; color: #827664; font-size: 10px; letter-spacing: .09em; }
.theme-breadcrumb a:hover { color: var(--gold); }
.theme-hero { max-width: var(--content-max); margin: 0 auto; padding: 70px var(--page-gutter) 62px; display: grid; grid-template-columns: 1fr .65fr; gap: 70px; align-items: end; }
.theme-hero h1, .directory-hero h1 { margin: 0; font-size: clamp(43px, 6vw, 78px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.theme-hero .lead, .directory-hero .lead { color: #aea28e; line-height: 1.9; font-size: 14px; }
.theme-number { justify-self: end; width: 150px; aspect-ratio: 1; border: 1px solid #564a38; border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 34px; box-shadow: 0 0 0 14px rgba(185,150,88,.03); }
.theme-generator-zone { background: var(--paper); color: var(--ink); padding: 76px max(var(--page-gutter), calc((100vw - var(--content-max)) / 2)); }
.theme-generator { display: grid; grid-template-columns: .75fr 1.25fr; max-width: var(--content-max); margin: auto; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(20,15,10,.16); }
.theme-generator > * { min-width: 0; }
.theme-controls { padding: 38px; border-right: 1px solid var(--line); background: #eee4ce; }
.theme-controls h2 { margin: 0 0 28px; font-weight: 500; font-size: 28px; }
.theme-field { margin-bottom: 26px; }
.theme-field > label { display: block; margin-bottom: 10px; color: #716552; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.theme-segments { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.theme-segments button { border: 0; border-right: 1px solid var(--line); background: transparent; min-height: 42px; color: #756a58; cursor: pointer; font-size: 11px; }
.theme-segments button:last-child { border-right: 0; }
.theme-segments button.active { background: var(--red); color: var(--paper-light); }
.theme-field select { width: 100%; min-height: 44px; border: 1px solid var(--line); background: transparent; padding: 0 12px; }
.theme-submit { width: 100%; min-height: 58px; border: 0; background: var(--red); color: white; cursor: pointer; letter-spacing: .14em; }
.theme-result { padding: clamp(34px,5vw,62px); background: #1a1712; color: var(--paper); position: relative; overflow: hidden; }
.theme-result.is-changing .theme-result-body { animation: themeReveal .38s ease; }
@keyframes themeReveal { from { opacity: 0; transform: translateY(8px); } }
.theme-result-kicker { color: var(--gold); font-size: 10px; letter-spacing: .2em; }
.theme-result-name { margin: 22px 0 16px; font-size: clamp(32px,4vw,55px); line-height: 1.08; font-weight: 500; }
.theme-result-name { overflow-wrap: anywhere; }
.theme-result-sense, .theme-result-prompt { color: #a99e8b; font-size: 12px; line-height: 1.9; }
.theme-result-prompt { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--red-bright); }
.theme-result-actions { display: flex; gap: 18px; margin-top: 30px; }
.theme-result-actions button { border: 1px solid #554b3d; background: transparent; color: var(--gold); padding: 10px 14px; cursor: pointer; }
.theme-content { max-width: var(--content-max); margin: auto; padding: 90px var(--page-gutter); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.theme-panel { padding: 28px; border: 1px solid #40382e; background: #211d17; }
.theme-panel.wide { grid-column: 1 / -1; }
.theme-panel h2 { margin: 0 0 16px; color: var(--gold); font-size: 21px; font-weight: 500; }
.theme-panel p, .theme-panel li { color: #a69b88; font-size: 12px; line-height: 1.9; }
.theme-panel p + p { margin-top: 14px; }
.theme-panel strong { color: #d0c2aa; font-weight: 500; }
.theme-panel ul { padding-left: 18px; margin: 0; }
.theme-editorial { padding: clamp(30px, 5vw, 52px); columns: 2; column-gap: 52px; }
.theme-editorial .eyebrow, .theme-editorial h2 { column-span: all; }
.theme-editorial h2 { max-width: 720px; font-size: clamp(24px, 3vw, 36px); }
.theme-advice-list, .theme-hook-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; margin: 0; padding-left: 22px; }
.theme-advice-list li, .theme-hook-list li { padding: 6px 0; }
.theme-lexicon { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 !important; list-style: none; }
.theme-lexicon li { display: grid; gap: 4px; padding: 14px; border: 1px solid #463d31; background: rgba(255,255,255,.012); }
.theme-lexicon span { color: #8f8473; }
.motif-list, .example-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.motif-list li, .example-list li { border: 1px solid #4c4234; padding: 8px 11px; color: #c0b49f; }
.example-list { display: grid; grid-template-columns: 1fr; }
.example-list li { overflow-wrap: anywhere; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.related-grid a { padding: 14px; border: 1px solid #4b4133; color: #bbae98; font-size: 11px; line-height: 1.5; }
.related-grid a:hover { border-color: var(--gold); color: var(--paper-light); }
.directory-hero { max-width: var(--content-max); margin: auto; padding: 75px var(--page-gutter) 50px; }
.directory-tools { max-width: var(--content-max); margin: auto; padding: 0 var(--page-gutter) 45px; }
.directory-search { width: 100%; min-height: 58px; border: 1px solid #564b3b; background: #211d17; color: var(--paper); padding: 0 18px; font-size: 15px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-chips button { border: 1px solid #504536; background: transparent; color: #a99c87; padding: 8px 12px; cursor: pointer; font-size: 11px; }
.category-chips button.active { background: var(--red); border-color: var(--red); color: white; }
.directory-summary { max-width: var(--content-max); margin: auto; padding: 0 var(--page-gutter) 18px; color: #7f7462; font-size: 11px; }
.theme-directory-grid { max-width: var(--content-max); margin: auto; padding: 0 var(--page-gutter) 100px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.theme-directory-card { min-height: 170px; padding: 20px; border: 1px solid #40382e; background: #211d17; }
.theme-directory-card[hidden] { display: none; }
.theme-directory-card small { color: var(--red-bright); font-size: 9px; letter-spacing: .12em; }
.theme-directory-card h2 { margin: 13px 0 8px; color: var(--paper-light); font-size: 17px; font-weight: 500; }
.theme-directory-card p { color: #8e8371; font-size: 11px; line-height: 1.7; }
.theme-directory-card a { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 10px; }
.directory-empty { max-width: var(--content-max); margin: 0 auto 100px; padding: 30px; text-align: center; border: 1px solid #433a2f; color: #928674; }
@media (max-width: 900px) {
  .theme-hero, .theme-generator { grid-template-columns: 1fr; }
  .theme-number { display: none; }
  .theme-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .theme-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .theme-hero { padding-top: 48px; }
  .theme-generator-zone { padding-inline: 12px; }
  .theme-controls, .theme-result { padding: 26px 22px; }
  .theme-content { grid-template-columns: 1fr; padding-top: 60px; }
  .theme-panel.wide { grid-column: auto; }
  .theme-directory-grid { grid-template-columns: 1fr; }
  .theme-result-actions { flex-direction: column; }
  .theme-editorial { columns: 1; }
  .theme-advice-list, .theme-hook-list { grid-template-columns: 1fr; }
  .theme-lexicon { grid-template-columns: 1fr; }
}
