:root {
    color-scheme: dark;
    --bg: #101318;
    --bg-2: #0c0f14;
    --panel: #161b22;
    --panel-2: #1d2430;
    --panel-3: #222b36;
    --paper: #f3f7fb;
    --paper-2: #e8f6ef;
    --ink: #f7fbff;
    --ink-dark: #17202a;
    --muted: #a9b6c7;
    --muted-dark: #526071;
    --line: #303946;
    --line-light: #d9e4e1;
    --green: #20d59b;
    --green-dark: #0f8061;
    --blue: #58a6ff;
    --yellow: #ffcf5a;
    --coral: #ff6b6b;
    --lavender: #b48cff;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        var(--bg);
    background-size: 34px 34px;
    line-height: 1.6;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

button,
input,
select {
    font: inherit;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 40;
    transform: translateY(-160%);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--bg);
    background: var(--green);
    font-weight: 900;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(48, 57, 70, 0.78);
    background: rgba(16, 19, 24, 0.9);
    backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-weight: 800;
}

.site-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
    color: var(--bg);
    background: var(--green);
    border: 1px solid transparent;
}

.site-nav .nav-cta:hover {
    color: var(--bg);
    background: #52e6b7;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    height: calc(100svh - 156px);
    max-height: 760px;
    overflow: hidden;
    background-color: var(--bg-2);
    background-image: var(--hero-image);
    background-position: center right;
    background-size: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 19, 24, 0.98) 0%, rgba(16, 19, 24, 0.86) 45%, rgba(16, 19, 24, 0.24) 78%),
        linear-gradient(180deg, rgba(16, 19, 24, 0.08), rgba(16, 19, 24, 0.42));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0;
}

.hero-content h1 {
    max-width: 620px;
    margin: 0;
    color: var(--ink);
    font-size: 4.6rem;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    margin: 20px 0 0;
    color: #d7e2ef;
    font-size: 1.2rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions,
.profile-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
}

.button-primary {
    color: var(--bg);
    background: var(--green);
}

.button-primary:hover {
    color: var(--bg);
    background: #52e6b7;
}

.button-secondary {
    color: var(--ink-dark);
    background: var(--paper);
    border-color: rgba(255, 255, 255, 0.16);
}

.button-secondary:hover {
    color: var(--ink-dark);
    background: var(--white);
}

.hero-search {
    max-width: 660px;
    margin-top: 28px;
}

.hero-search label,
.search-field span,
.filter-form label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 900;
}

.hero-search div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.hero-search input,
.filter-form input,
.filter-form select {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: rgba(22, 27, 34, 0.94);
}

.filter-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.hero-search input:focus,
.filter-form input:focus,
.filter-form select:focus {
    outline: 3px solid rgba(32, 213, 155, 0.22);
    border-color: var(--green);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 700px;
    margin-top: 26px;
}

.hero-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(247, 251, 255, 0.15);
    border-radius: 7px;
    color: #dbe6f3;
    background: rgba(22, 27, 34, 0.76);
    font-weight: 800;
}

.hero-metrics strong {
    color: var(--yellow);
    font-size: 1.14rem;
}

.section {
    padding: 76px 0;
}

.section-muted {
    color: var(--ink-dark);
    background: var(--paper-2);
}

.section-accent {
    background:
        linear-gradient(135deg, rgba(32, 213, 155, 0.2), rgba(88, 166, 255, 0.12)),
        var(--panel-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-intro {
    padding-top: 46px;
}

.section-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section-inner.narrow {
    width: min(760px, calc(100% - 48px));
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: start;
}

.split h2,
.section-heading h2,
.page-hero h1,
.profile-summary h1,
.action-strip h2 {
    margin: 0;
    font-size: 2.48rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.split p,
.page-hero p,
.action-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.section-muted .eyebrow,
.page-hero .eyebrow {
    color: var(--green-dark);
}

.section-muted p,
.section-muted .category-card span {
    color: var(--muted-dark);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.text-link {
    color: var(--green);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.section-muted .text-link {
    color: var(--green-dark);
}

.profile-grid,
.article-grid,
.feature-grid,
.profile-details-grid,
.prompt-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

.profile-grid,
.directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-grid,
.profile-details-grid,
.prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card,
.article-card,
.detail-panel,
.prompt-card,
.category-card,
.empty-state,
.filter-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.section-muted .category-card {
    border-color: var(--line-light);
    color: var(--ink-dark);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(23, 32, 42, 0.08);
}

.profile-card {
    overflow: hidden;
}

.profile-card-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--panel-3);
}

.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 220ms ease;
}

.profile-card:hover .profile-card-image img {
    transform: scale(1.025);
}

.profile-card-body {
    padding: 18px;
}

.profile-card-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.profile-card h2,
.profile-card h3,
.article-card h2,
.article-card h3,
.detail-panel h2,
.prompt-card h2 {
    margin: 0;
    line-height: 1.16;
    letter-spacing: 0;
}

.profile-card h2,
.profile-card h3 {
    font-size: 1.14rem;
}

.profile-card-topline span {
    max-width: 110px;
    padding: 4px 8px;
    border: 1px solid rgba(32, 213, 155, 0.28);
    border-radius: 999px;
    color: var(--green);
    background: rgba(32, 213, 155, 0.09);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.profile-card p,
.article-card p,
.detail-panel p,
.prompt-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.profile-card .archetype {
    color: var(--yellow);
    font-weight: 900;
}

.profile-pronouns {
    margin: 6px 0 0;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(88, 166, 255, 0.1);
    font-size: 0.84rem;
    font-weight: 800;
}

.tag-row.large span {
    padding: 8px 11px;
    font-size: 0.92rem;
}

.profile-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.card-action-link,
.card-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--panel-2);
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.card-action-link {
    color: var(--bg);
    background: var(--green);
    border-color: var(--green);
}

.card-action-link:hover {
    color: var(--bg);
    background: #52e6b7;
}

.card-action-button:hover,
.card-action-button.is-copied {
    color: var(--bg);
    background: var(--yellow);
    border-color: var(--yellow);
}

.category-card {
    display: grid;
    align-content: start;
    min-height: 188px;
    padding: 22px;
    color: var(--ink);
}

.category-card:hover {
    color: var(--ink);
    border-color: rgba(32, 213, 155, 0.55);
    transform: translateY(-2px);
}

.category-card img {
    margin-bottom: 18px;
}

.category-card strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.18;
}

.category-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.article-card,
.detail-panel,
.prompt-card {
    padding: 24px;
}

.article-card span,
.prompt-card span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--yellow);
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.page-hero {
    padding: 72px 0 52px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(32, 213, 155, 0.12), rgba(255, 207, 90, 0.06)),
        var(--panel-2);
}

.page-hero.compact h1 {
    max-width: 920px;
}

.page-hero.compact p {
    max-width: 820px;
    margin-top: 14px;
}

.filter-form {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin-top: 28px;
    padding: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.result-bar {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 22px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    color: var(--muted);
    font-weight: 800;
}

.result-bar strong {
    color: var(--yellow);
    font-size: 1.15rem;
}

.profile-hero {
    padding: 52px 0 64px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(88, 166, 255, 0.12), rgba(32, 213, 155, 0.08)),
        var(--bg);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
    align-items: start;
}

.profile-media {
    min-width: 0;
}

.profile-main-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-3);
    box-shadow: var(--shadow);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumbs a {
    color: var(--green);
}

.profile-summary h1 {
    font-size: 3.4rem;
}

.profile-tagline {
    margin: 18px 0 0;
    color: var(--yellow);
    font-size: 1.18rem;
    font-weight: 900;
}

.profile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.profile-facts span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--panel);
    font-weight: 900;
}

.profile-summary > p:not(.eyebrow):not(.profile-tagline) {
    color: var(--muted);
}

blockquote {
    margin: 24px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--green);
    border-radius: 0 8px 8px 0;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.04rem;
    font-weight: 750;
}

.detail-list {
    margin: 18px 0 0;
}

.detail-list div {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.detail-list dt {
    color: var(--ink);
    font-weight: 950;
}

.detail-list dd {
    margin: 5px 0 0;
    color: var(--muted);
}

.detail-panel.dark {
    background: rgba(16, 19, 24, 0.66);
}

.safety-note {
    padding: 14px 16px;
    border: 1px solid rgba(255, 207, 90, 0.28);
    border-radius: 8px;
    color: #fff4cf;
    background: rgba(255, 207, 90, 0.09);
    font-weight: 800;
}

.prompt-card {
    display: grid;
    align-content: start;
}

.prompt-card .card-action-button {
    justify-self: start;
    margin-top: 18px;
}

.action-strip {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: center;
}

.action-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-chip-row a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(247, 251, 255, 0.12);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    font-weight: 900;
}

.action-chip-row a:hover {
    color: var(--bg);
    background: var(--yellow);
}

.article-page .page-hero {
    padding-bottom: 62px;
}

.prose {
    color: var(--muted);
    font-size: 1.06rem;
}

.prose h2 {
    margin: 34px 0 8px;
    color: var(--ink);
    font-size: 1.58rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.prose p {
    margin: 16px 0;
}

.prose ul {
    margin: 16px 0;
    padding-left: 22px;
}

.prose li + li {
    margin-top: 8px;
}

.empty-state {
    max-width: 620px;
    margin: 34px auto 0;
    padding: 28px;
    text-align: center;
}

.empty-state h2 {
    margin: 0;
}

.empty-state p {
    color: var(--muted);
}

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: var(--bg-2);
}

.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 36px;
}

.footer-brand {
    color: var(--ink);
}

.site-footer p {
    max-width: 580px;
    margin: 12px 0 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px 18px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--green);
}

@media (max-width: 1080px) {
    .profile-grid,
    .directory-grid,
    .category-grid,
    .category-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .site-header {
        min-height: 64px;
        padding: 11px 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 18px;
        right: 18px;
        display: none;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        justify-content: space-between;
    }

    .hero {
        min-height: 630px;
        height: calc(100svh - 120px);
        max-height: none;
        background-position: 62% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(16, 19, 24, 0.98) 0%, rgba(16, 19, 24, 0.9) 58%, rgba(16, 19, 24, 0.48) 100%);
    }

    .hero-content {
        width: min(100% - 36px, 760px);
        padding: 54px 0;
    }

    .hero-content h1 {
        font-size: 3.35rem;
    }

    .hero-copy {
        font-size: 1.06rem;
    }

    .split,
    .profile-layout,
    .profile-details-grid,
    .action-strip {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-grid,
    .prompt-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary h1,
    .split h2,
    .section-heading h2,
    .page-hero h1,
    .action-strip h2 {
        font-size: 2.16rem;
    }

    .section {
        padding: 58px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section-inner,
    .section-inner.narrow,
    .footer-inner {
        width: min(100% - 32px, 560px);
    }

    .hero-content {
        width: min(100% - 32px, 560px);
    }

    .hero-content h1 {
        font-size: 2.78rem;
    }

    .hero {
        min-height: 690px;
        height: calc(100svh - 104px);
    }

    .hero-actions,
    .profile-actions,
    .filter-actions,
    .hero-search div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .profile-grid,
    .directory-grid,
    .category-grid,
    .category-grid-large,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .profile-main-image {
        max-height: 620px;
    }

    .profile-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .profile-facts {
        gap: 8px;
    }
}
