:root {
    --bg: #0e0c0a;
    --bg-raise: #171410;
    --ink: #f4efe6;
    --muted: #b4a89a;
    --faint: #7d7468;
    --line: rgba(244, 239, 230, 0.14);
    --accent: #e44532;
    --accent-soft: rgba(228, 69, 50, 0.16);
    --chip: #2a1815;
    --scrollbar-track: #171410;
    --scrollbar-thumb: #5d5146;
    --scrollbar-thumb-hover: #8b7969;
    --z-sticky: 100;
    --z-backdrop: 500;
    --z-sheet: 700;
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --measure: 68ch;
}

* {
    box-sizing: border-box;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 2px solid var(--scrollbar-track);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
*::-webkit-scrollbar-thumb:active { background: var(--accent); }

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}
html, body, main {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(228, 69, 50, 0.18), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(214, 164, 86, 0.09), transparent 50%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
}

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

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

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

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--accent);
    color: white;
    padding: 8px 12px;
    z-index: 20;
}

.skip:focus { top: 12px; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(14, 12, 10, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-family: var(--serif);
    font-weight: 640;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.wordmark span { color: var(--accent); }

.header-note,
.aside-label,
.kicker,
.meta,
.card-role,
.entry-date {
    color: var(--faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 500;
}

.header-note { margin: 0; }

.masthead,
.shelf,
.profile,
.entry {
    width: auto;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
    box-sizing: border-box;
}

.masthead { padding-top: 48px; padding-bottom: 18px; }

.kicker { margin: 0 0 12px; }

.masthead h1,
.profile h1,
.entry h1 {
    font-family: var(--serif);
    font-weight: 520;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin: 0;
}

.masthead h1 {
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    max-width: 14ch;
}

.dek {
    max-width: 46rem;
    color: var(--muted);
    font-size: 1.12rem;
    font-weight: 300;
    margin: 18px 0 0;
}

.shelf {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 36px;
    padding-top: 28px;
    padding-bottom: 72px;
    align-items: stretch;
}

.kink-filter {
    --kink-collapsed-height: calc(50vh - 56px);
    --kink-expanded-height: calc(75vh - 84px);
    position: relative;
    min-width: 0;
    min-height: 0;
    height: auto;
}

.kink-shell {
    position: sticky;
    top: 88px;
    z-index: var(--z-sticky);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 44px);
    height: min(calc(50vh - 56px), var(--kink-collapsed-height));
    max-height: min(calc(50vh - 56px), var(--kink-collapsed-height));
    min-width: 0;
    overflow: hidden;
    background: rgba(23, 20, 16, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: width 0.22s ease, height 0.22s ease, box-shadow 0.22s ease;
}

.kink-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 68px;
    padding: 10px 10px 10px 14px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.kink-current {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.kink-current .aside-label { margin: 0; }

.kink-current strong {
    overflow: hidden;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 520;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kink-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.kink-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.kink-icon-button:hover {
    color: var(--ink);
    background: var(--accent-soft);
    border-color: rgba(228, 69, 50, 0.3);
}

.kink-icon-button:active { background: rgba(228, 69, 50, 0.26); }

.kink-icon-button:focus-visible,
.kink-options a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.kink-icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kink-expand,
.kink-open,
.kink-drawer-head,
.kink-backdrop { display: none; }

@media (min-width: 861px) {
    .kink-filter.is-enhanced .kink-expand { display: inline-grid; }
}

.kink-options-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.kink-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 0;
    min-height: 0;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.kink-options a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
    cursor: pointer;
}

.kink-options a span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kink-options a em {
    font-style: normal;
    color: var(--faint);
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.kink-options a:hover,
.kink-options a.on {
    background: var(--accent-soft);
    color: var(--ink);
}

.kink-options a.on em { color: var(--accent); }

.kink-filter.is-expanded .kink-shell {
    width: min(1140px, calc(100vw - 44px));
    height: min(calc(75vh - 84px), var(--kink-expanded-height));
    max-height: min(calc(75vh - 84px), var(--kink-expanded-height));
    box-shadow: 20px 24px 64px rgba(0, 0, 0, 0.52);
}

.kink-filter.is-expanded .kink-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
    align-content: start;
    gap: 7px;
    padding: 12px;
}

.kink-filter.is-expanded .kink-options a {
    min-height: 40px;
    border: 1px solid rgba(244, 239, 230, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.kink-filter.is-expanded .kink-options a:hover,
.kink-filter.is-expanded .kink-options a.on {
    background: var(--accent-soft);
    border-color: rgba(228, 69, 50, 0.28);
}

.showing {
    margin: 0 0 16px;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.card {
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    min-height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(228, 69, 50, 0.45);
}

.card-link { display: flex; flex-direction: column; height: 100%; }

.card-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.portrait,
.monogram {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center 15%;
    background: #241c18;
}

.monogram {
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 4rem;
    color: var(--accent);
}

.card-body { padding: 14px 14px 16px; }

.card-name {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 520;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.card-name span {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--faint);
}

.card-role { margin: 4px 0 10px; }

.tags, .kink-lines { list-style: none; padding: 0; margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tags li, .kink-lines li {
    background: var(--chip);
    color: #f1d2cb;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

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

.tags a:hover { color: #fff; }

.kink-label {
    margin: 0 0 8px;
    color: var(--faint);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-kinks { margin: 0 0 12px; }

.kink-lines { margin-bottom: 18px; }

.kink-lines li {
    background: transparent;
    border: 1px solid var(--line);
}

.card-foot {
    margin: 12px 0 0;
    color: var(--faint);
    font-size: 0.8rem;
}

.empty {
    padding: 32px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
}

.shelf-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.shelf-pages a,
.shelf-pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}

.shelf-pages a:hover {
    color: var(--ink);
    border-color: rgba(228, 69, 50, 0.45);
}

.shelf-pages [aria-current="page"] {
    background: var(--accent-soft);
    color: var(--ink);
    border-color: transparent;
}

.profile { padding-top: 28px; padding-bottom: 80px; }

.profile-hero {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 42px;
    align-items: start;
}

.profile-portrait,
.profile .monogram {
    border-radius: 22px;
    position: sticky;
    top: 92px;
}

.back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.back:hover { color: var(--accent); }

.back:focus-visible,
.read-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.profile-back {
    margin-bottom: 18px;
}

.profile h1 {
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    overflow-wrap: break-word;
    max-width: 100%;
}

.profile h1 span {
    font-style: normal;
    font-family: var(--sans);
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--faint);
    margin-left: 8px;
}

.role-line {
    font-size: 1.25rem;
    color: var(--muted);
    margin: 10px 0 18px;
}

.facts { margin: 0 0 18px; }

.facts div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.facts dt {
    color: var(--faint);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 3px;
}

.facts dd { margin: 0; }

.kink-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bio {
    max-width: var(--measure);
    color: var(--ink);
}

.bio p, .post-body p { margin: 0 0 1em; }

.entries { margin-top: 54px; }

.entries h2, .entry-kicker {
    font-family: var(--serif);
    font-weight: 520;
    font-style: italic;
    font-size: 2rem;
    margin: 0 0 8px;
}

.journal-entry {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    max-width: 74ch;
}

.journal-entry h3 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 520;
    letter-spacing: -0.03em;
    margin: 6px 0 14px;
}

.journal-entry h3 a:hover { color: var(--accent); }

.post-snapshot {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid rgba(228, 69, 50, 0.5);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.read-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.read-link:active {
    background: #bd3424;
    border-color: #bd3424;
}

.post-body p:first-of-type::first-letter {
    font-family: var(--serif);
    float: left;
    font-size: 3.3rem;
    line-height: 0.8;
    padding: 8px 10px 0 0;
    color: var(--accent);
    font-weight: 560;
}

.still {
    margin: 8px 0 18px;
    padding: 0 0 12px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.still img {
    width: 100%;
    max-height: 820px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    margin-bottom: 12px;
}

.still figcaption {
    color: var(--muted);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    padding: 0 16px;
}

.teaser-list {
    max-width: 1140px;
    margin: 54px auto 0;
    padding: 0 22px 64px;
    box-sizing: border-box;
}

.entry .teaser-list { padding-left: 0; padding-right: 0; padding-bottom: 0; }

.teaser-list .entry-date a { color: var(--muted); }

.teaser-list .entry-date a:hover { color: var(--accent); }

.teaser-kicker { margin: 0 0 6px; }

.teaser-kicker a { color: var(--accent); text-decoration: none; }

.teaser-kicker a:hover { text-decoration: underline; }

.kink-index-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 22px 72px;
    box-sizing: border-box;
}

.kink-index {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.kink-index-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 18px 18px 20px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.2s ease;
}

.kink-index-link:hover {
    border-color: rgba(228, 69, 50, 0.5);
    transform: translateY(-2px);
}

.kink-index-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.kink-index-name {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 520;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.kink-index-count {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kink-index-intro {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.entry { padding-top: 36px; padding-bottom: 80px; max-width: 820px; }

.entry h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    max-width: 16ch;
    margin-bottom: 8px;
}

.legal h1 { max-width: 11ch; }

.legal h2 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 520;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
    margin: 1.5em 0 0.35em;
}

.legal .post-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
}

.legal .post-body a:hover { color: var(--accent); }

.legal .post-body p:first-of-type::first-letter {
    float: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
    color: inherit;
}

.byline { color: var(--muted); margin: 0 0 28px; }

.byline a { color: var(--ink); border-bottom: 1px solid var(--accent); }

.pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pager a { color: var(--muted); max-width: 46%; }

.pager a:hover { color: var(--accent); }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 28px 36px;
    color: var(--faint);
    font-size: 0.88rem;
}

.site-footer p,
.footer-links {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.site-footer p { margin-top: 0; margin-bottom: 0; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}

.footer-links a {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--accent); }

@media (max-width: 860px) {
    .shelf {
        display: block;
        max-width: 100%;
    }
    .kink-filter {
        height: auto;
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
    }
    .kink-shell {
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
    }
    .kink-summary {
        min-height: 58px;
        padding: 8px 8px 8px 12px;
        background: rgba(23, 20, 16, 0.86);
        border: 1px solid var(--line);
        border-radius: 14px;
    }
    .kink-filter.is-enhanced .kink-open { display: inline-grid; }
    .kink-icon-button {
        width: 44px;
        height: 44px;
    }
    .kink-filter.is-enhanced .kink-backdrop {
        position: fixed;
        inset: 0;
        z-index: var(--z-backdrop);
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.66);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .kink-filter.is-enhanced .kink-options-panel {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: var(--z-sheet);
        display: flex;
        flex-direction: column;
        width: min(100%, 440px);
        min-height: 0;
        padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
        overflow: hidden;
        background: var(--bg-raise);
        border-right: 1px solid var(--line);
        box-shadow: 24px 0 64px rgba(0, 0, 0, 0.55);
        transform: translateX(-102%);
        visibility: hidden;
        transition: transform 0.24s ease, visibility 0s linear 0.24s;
    }
    .kink-filter.is-enhanced .kink-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 0 0 16px;
        border-bottom: 1px solid var(--line);
        flex: 0 0 auto;
    }
    .kink-filter.is-enhanced .kink-drawer-head .aside-label { margin: 0 0 2px; }
    .kink-filter.is-enhanced .kink-drawer-head h2 {
        margin: 0;
        font-family: var(--serif);
        font-size: 1.6rem;
        font-style: italic;
        font-weight: 520;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }
    .kink-options {
        display: flex;
        flex-flow: row wrap;
        align-content: flex-start;
        gap: 8px;
        padding: 18px 2px 18px 0;
        overflow-y: auto;
    }
    .kink-filter:not(.is-enhanced) .kink-options-panel,
    .kink-filter:not(.is-enhanced) .kink-options {
        flex: 0 0 auto;
        overflow: visible;
    }
    .kink-options a {
        width: auto;
        min-height: 44px;
        gap: 8px;
        padding: 10px 13px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.025);
    }
    .kink-options a:hover,
    .kink-options a.on {
        border-color: rgba(228, 69, 50, 0.36);
    }
    .kink-filter.is-enhanced.is-open .kink-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    .kink-filter.is-enhanced.is-open .kink-options-panel {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }
    body.kink-drawer-open { overflow: hidden; }
    .kink-filter.is-expanded .kink-shell {
        width: 100%;
        height: auto;
        max-height: none;
        box-shadow: none;
    }
    .kink-filter.is-expanded .kink-options { display: flex; }
    .kink-filter.is-expanded .kink-options a { min-height: 44px; }
    .kink-current strong { font-size: 1.05rem; }
    .kink-current { padding-left: 2px; }
    .shelf-results { min-width: 0; }
    .profile-hero { grid-template-columns: 1fr; }
    .profile-portrait, .profile .monogram { position: static; max-width: 460px; }
    .site-header { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .header-note { display: none; }
    .facts div { grid-template-columns: 1fr; gap: 2px; }
    .masthead { padding-top: 28px; }
    .card:hover { transform: none; }
    .kink-index-link:hover { transform: none; }
    .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card { transition: none; }
    .kink-index-link { transition: none; }
    .read-link { transition: none; }
    .kink-shell,
    .kink-icon-button,
    .kink-backdrop,
    .kink-options-panel { transition: none; }
}

@media (forced-colors: active) {
    * { scrollbar-color: auto; }
    .kink-icon-button,
    .kink-options a { border-color: ButtonText; }
}
