/* ==========================================================================
   Indie BookSellers
   Warm paper-and-ink palette, system fonts only — no webfont round trip.
   ========================================================================== */

:root {
    --bg:          #fbf7f1;
    --surface:     #ffffff;
    --surface-alt: #f4ede3;
    --text:        #241f1b;
    --muted:       #6d6259;
    --border:      #e4d9ca;
    --accent:      #9c2c2c;
    --accent-soft: #fdeceb;
    --accent-text: #ffffff;
    --ink:         #1f3b47;
    --ink-soft:    #e8f0f2;

    --cat-trope:    #b03b6a;
    --cat-vibe:     #6b4ba8;
    --cat-genre:    #1f6f6b;
    --cat-platform: #a8620f;
    --cat-series:   #2f5aa8;

    --radius:    12px;
    --radius-sm: 7px;
    --shadow:    0 1px 2px rgba(36, 31, 27, .06), 0 6px 20px rgba(36, 31, 27, .07);
    --shadow-lg: 0 2px 6px rgba(36, 31, 27, .08), 0 18px 44px rgba(36, 31, 27, .13);

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:          #16130f;
        --surface:     #201c17;
        --surface-alt: #2a251e;
        --text:        #f0e9df;
        --muted:       #a99d8f;
        --border:      #362f26;
        --accent:      #e0736b;
        --accent-soft: #33201e;
        --accent-text: #1a1310;
        --ink:         #9dc7d4;
        --ink-soft:    #1c2a2f;

        --cat-trope:    #e5849f;
        --cat-vibe:     #b39ce6;
        --cat-genre:    #63b8b1;
        --cat-platform: #dfa055;
        --cat-series:   #8fb0e8;

        --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .5);
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.container {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

/* --------------------------------------------------------------- masthead */

.masthead {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.masthead__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .9rem 0;
    flex-wrap: wrap;
}

.brand {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: .22em;
    white-space: nowrap;
}

.brand__indie { color: var(--accent); }
.brand__booksellers { color: var(--text); }

.masthead nav {
    display: flex;
    gap: 1.35rem;
    margin-left: auto;
    font-size: .93rem;
    flex-wrap: wrap;
}

.masthead nav a {
    text-decoration: none;
    color: var(--muted);
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------- hero */

.hero {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-soft), transparent 70%);
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
    letter-spacing: -.02em;
    max-width: 16ch;
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0;
    max-width: 52ch;
}

.hero .hero__feature {
    margin-top: 1rem;
    font-size: .9rem;
}

.hero__feature a {
    color: var(--accent);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

/* ---------------------------------------------------------------- sections */

.section { padding: 2.75rem 0; }
.section--tinted {
    background: var(--surface-alt);
    border-block: 1px solid var(--border);
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.section__head h2 {
    font-family: var(--serif);
    font-size: 1.55rem;
    margin: 0;
    letter-spacing: -.01em;
}

.section__head a {
    font-size: .9rem;
    color: var(--muted);
    text-decoration: none;
}

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

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 .6rem;
}

/* ------------------------------------------------------------------- grid */

.shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 1.75rem 1.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.book {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.book__cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-alt);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.book__rank {
    position: absolute;
    z-index: 2;
    top: .55rem;
    left: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .55rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: .78rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.book__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book__cover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.book__body { padding-top: .8rem; flex: 1; display: flex; flex-direction: column; }

.book__title {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.3;
    margin: 0 0 .2rem;
    font-weight: 600;
}

.book__title a { text-decoration: none; }
.book__title a:hover { color: var(--accent); }

.book__author {
    font-size: .86rem;
    color: var(--muted);
    margin: 0 0 .6rem;
}

.book__platform {
    margin: 0 0 .2rem;
    color: var(--accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.book__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0 0 .8rem;
    padding: 0;
    list-style: none;
}

.book__tags li { min-width: 0; max-width: 100%; }
.book__tags .pill {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin-top: auto;
}

/* ------------------------------------------------------------------- pills */

.pill {
    display: inline-block;
    font-size: .715rem;
    font-weight: 600;
    letter-spacing: .015em;
    padding: .2rem .5rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    text-decoration: none;
    opacity: .88;
    white-space: nowrap;
    transition: opacity .15s ease, background-color .15s ease;
}

.pill:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }

.pill--trope    { color: var(--cat-trope); }
.pill--vibe     { color: var(--cat-vibe); }
.pill--genre    { color: var(--cat-genre); }
.pill--platform { color: var(--cat-platform); }

/* Series is the strongest signal on a card, so it reads as filled rather than
   outlined and does not compete with the neighbouring trope pills. */
.pill--series {
    color: var(--cat-series);
    background: color-mix(in srgb, var(--cat-series) 13%, transparent);
    font-variant-numeric: tabular-nums;
}

.pill--lg { font-size: .82rem; padding: .32rem .75rem; }

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    padding: .55rem .7rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    min-height: 44px;
    transition: transform .12s ease, filter .15s ease, background-color .15s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }

.btn--buy {
    background: var(--accent);
    color: var(--accent-text);
}

.btn--listen {
    background: transparent;
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.btn--listen:hover { background: var(--ink-soft); }

.btn--lg { font-size: .95rem; padding: .8rem 1.35rem; }

.btn__sub {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    opacity: .78;
    margin-top: .1rem;
}

/* ------------------------------------------------------------ tag strip */

.tag-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-card {
    display: block;
    padding: .9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tag-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tag-card__name {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 .15rem;
}

.tag-card__meta { font-size: .8rem; color: var(--muted); }

.tag-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .85rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ------------------------------------------------------- tag landing page */

.page-head {
    padding: 2.75rem 0 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.page-head h1 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
}

.page-head p {
    margin: 0;
    color: var(--muted);
    max-width: 60ch;
    font-size: 1.05rem;
}

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .9rem;
}

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem;
    margin: 0;
    padding: 0;
}

.crumbs li { display: inline-flex; align-items: center; }
.crumbs__sep { margin: 0 .45rem; opacity: .55; }
.crumbs a { text-decoration: none; color: var(--accent); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }

/* --------------------------------------------------------- shelf copy */

.shelf-copy {
    padding: 2rem 0 0;
}

.shelf-copy .container {
    max-width: 68ch;
    margin-inline: auto;
}

.shelf-copy__intro {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.shelf-copy__guide {
    font-size: .96rem;
    color: var(--muted);
    margin: 0;
    padding: .9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
}

.shelf-copy__guide strong { color: var(--text); }

.shelf-copy__series-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: .94rem;
}

.reading-list-copy h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin: 0 0 .65rem;
}

.reading-list-copy p { margin: 0 0 1rem; }

.methodology {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}

.list-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.25rem 0 0;
}

.list-stats div {
    min-width: 130px;
    padding: .7rem 1rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.list-stats dt {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.list-stats dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.browse-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.browse-group {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.browse-group h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin: 0 0 .25rem;
}

.browse-group > p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 0 1rem;
}

.prose-panel {
    max-width: 76ch;
}

.prose-panel h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 .75rem;
}

.prose-panel p:not(.eyebrow) { margin: 0 0 1rem; }
.prose-panel a { color: var(--accent); font-weight: 600; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--accent-text);
    padding: .6rem 1rem;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 100;
}

.skip-link:focus { left: 0; }

.count-note {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .9rem;
}

/* ------------------------------------------------------------ book detail */

.detail {
    display: grid;
    grid-template-columns: minmax(210px, 300px) 1fr;
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
}

.detail__cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-alt);
    aspect-ratio: 2 / 3;
    position: sticky;
    top: 5.5rem;
}

.detail__cover img { width: 100%; height: 100%; object-fit: cover; }

.detail h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 .3rem;
    letter-spacing: -.02em;
}

.detail__subtitle {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--muted);
    font-style: italic;
    margin: 0 0 .7rem;
}

.detail__author {
    font-size: 1.05rem;
    margin: 0 0 .5rem;
}

.detail__author span { color: var(--muted); }

.detail__series {
    display: inline-block;
    font-size: .88rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--cat-series) 12%, transparent);
    border-radius: 999px;
    padding: .25rem .8rem;
    margin: 0 0 1.4rem;
}

.detail__series strong { color: var(--cat-series); }

.detail__series a {
    color: var(--cat-series);
    font-weight: 600;
    text-decoration: none;
}

.detail__series a:hover { text-decoration: underline; }

.detail__ranking {
    width: fit-content;
    margin: .25rem 0 1rem;
    padding: .45rem .75rem;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--muted);
    font-size: .83rem;
}

.detail__ranking strong { color: var(--accent); }
.detail__ranking a { color: var(--text); font-weight: 700; }

.detail__synopsis { max-width: 62ch; }
.detail__synopsis h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 1.75rem 0 .7rem;
}
.detail__synopsis p { margin: 0 0 1rem; }

.detail__context {
    max-width: 68ch;
    margin: 1.75rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.detail__context h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 0 0 .7rem;
}

.detail__context p { margin: 0 0 1rem; }

.buy-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    margin: 1.75rem 0;
    box-shadow: var(--shadow);
}

.buy-box__title {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 .9rem;
}

.buy-box__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.buy-box__actions .btn { flex: 1 1 190px; flex-direction: column; gap: 0; }

.buy-box__note {
    font-size: .78rem;
    color: var(--muted);
    margin: .95rem 0 0;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.4rem;
    margin-top: 1.75rem;
    list-style: none;
    padding-inline: 0;
}

.facts dt, .facts__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: .15rem;
}

.facts__value { font-size: .95rem; font-variant-numeric: tabular-nums; }

.tag-block { margin: 1.75rem 0; }

.tag-block h2 {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin: 0 0 .7rem;
}

/* --------------------------------------------------------------- notices */

.notice {
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: var(--radius-sm);
    padding: .85rem 1.1rem;
    font-size: .88rem;
    margin: 1.5rem 0;
}

.notice code {
    background: color-mix(in srgb, var(--text) 8%, transparent);
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .92em;
}

.empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty h2 {
    font-family: var(--serif);
    color: var(--text);
    margin: 0 0 .5rem;
}

/* ------------------------------------------------------------- pagination */

.pagination {
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    font-size: .9rem;
}

.pagination a, .pagination span {
    padding: .45rem .8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    background: var(--surface);
}

.pagination span { color: var(--muted); border-color: transparent; background: transparent; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------------ search */

.searchbar {
    display: flex;
    gap: .5rem;
    max-width: 420px;
    margin-top: 1.5rem;
}

.searchbar input {
    flex: 1;
    font: inherit;
    font-size: .95rem;
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.searchbar input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 2.5rem 0;
    margin-top: 3rem;
    font-size: .87rem;
    color: var(--muted);
}

.site-footer p { margin: 0 0 .8rem; max-width: 70ch; }
.site-footer a { color: var(--text); }

.site-footer__cols {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* ------------------------------------------------------------ a11y helpers */

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
    .container { width: min(100% - 1.5rem, 1180px); }
    .brand { font-size: 1.35rem; }

    .hero { padding: 2.4rem 0 2rem; }
    .hero h1 { font-size: clamp(2rem, 11vw, 2.65rem); }

    .detail {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 0;
    }

    .detail__cover {
        position: static;
        max-width: 210px;
        margin-inline: auto;
    }

    .shelf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; }

    .book__actions { grid-template-columns: 1fr; }

    .masthead__inner { gap: .75rem; }
    .masthead nav {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 1.15rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: .15rem;
    }
    .masthead nav::-webkit-scrollbar { display: none; }
    .masthead nav a { white-space: nowrap; min-height: 32px; }

    .browse-groups { grid-template-columns: 1fr; }

    .searchbar { max-width: none; }
    .searchbar input { min-width: 0; }
}

@media (max-width: 420px) {
    .masthead nav {
        flex-wrap: wrap;
        gap: .25rem .9rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .masthead nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding: 2.2rem 0; }
}

/* ---------------------------------------------------- authors and guides */

.author-directory,
.guide-cards,
.guide-links,
.faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.author-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .75rem;
}

.author-directory a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-decoration: none;
}

.author-directory span {
    color: var(--muted);
    white-space: nowrap;
}

.book__author a,
.detail__author a {
    color: inherit;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.guide-card h2,
.guide-card h3 {
    margin: .35rem 0 .6rem;
}

.guide-card p {
    color: var(--muted);
}

.guide-card__link {
    margin-top: auto;
    padding-top: .6rem;
    color: var(--accent);
    font-weight: 700;
}

.guide-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .65rem;
}

.guide-links a {
    display: block;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 700;
    text-decoration: none;
}

.guide-intro .container {
    max-width: 850px;
}

.guide-faq h2 {
    margin-bottom: 1.25rem;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.faq-list section {
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.faq-list h3 {
    margin-top: 0;
}

@media (max-width: 520px) {
    .guide-cards,
    .author-directory,
    .guide-links,
    .faq-list {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------ trust and policies */

.prose-container {
    max-width: 800px;
}

.trust-page__body {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.trust-page__body section + section {
    margin-top: 2.6rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--border);
}

.trust-page__body h2 {
    margin: 0 0 .8rem;
}

.trust-page__body p {
    max-width: 74ch;
    line-height: 1.78;
}

.policy-date {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
}

.text-link {
    font-weight: 700;
}
