/* ============================================
   MIROBURN V2 — SV April/May 2026
   Design system inspired by Linear, Vercel, Arc
   ============================================ */

/* -- Fonts -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* -- Tokens ------------------------------------------------- */
:root {
    --bg: #FAFAFA;
    --bg-elev: #F4F4F2;
    --ink: #0A0A0A;
    --ink-soft: #3A3A3A;
    --ink-mute: #7A7A7A;
    --line: rgba(10, 10, 10, 0.08);
    --line-strong: rgba(10, 10, 10, 0.16);
    --accent: #f7df1e;
    --accent-ink: #0A0A0A;
    --live: #22C55E;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

    --container: 1200px;
    --radius: 10px;
    --radius-sm: 6px;

    --shadow-lift: 0 1px 0 rgba(10, 10, 10, 0.04), 0 12px 32px -8px rgba(10, 10, 10, 0.12);
}

/* -- Reset -------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain texture overlay — subtle, nie krzyczy */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
    color: var(--ink);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.65;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 56px);
    position: relative;
    z-index: 2;
}

/* -- Top Nav (Linear-style) --------------------------------- */
.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.topnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.topnav-brand {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav-brand .mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    display: grid;
    place-items: center;
}

.topnav-brand .mark svg {
    width: 12px;
    height: 12px;
}

.topnav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-soft);
    font-feature-settings: "tnum";
}

.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--live);
    opacity: 0.35;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.4; }
    70% { transform: scale(2); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}

.topnav-count {
    font-variant-numeric: tabular-nums;
}

/* -- Hero --------------------------------------------------- */
.hero {
    padding: 80px 0 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    margin-bottom: 28px;
}

.hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(40px, 5.2vw, 68px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 28px;
    max-width: 640px;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 100%);
    background-size: 100% 0.32em;
    background-repeat: no-repeat;
    background-position: 0 88%;
    padding: 0 2px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 40px;
}

/* CTA button w hero */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.005em;
    padding: 16px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--ink);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04), 0 4px 12px -2px rgba(10, 10, 10, 0.18);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06), 0 10px 24px -4px rgba(10, 10, 10, 0.22);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button .arrow {
    transition: transform 0.2s ease;
    font-size: 18px;
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

.hero-meta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-mute);
    letter-spacing: 0.01em;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink-mute);
}

/* -- Popup modal ------------------------------------------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.popup-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay[hidden] {
    display: none;
}

.popup {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 44px 40px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px -10px rgba(10, 10, 10, 0.4);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.popup-overlay.is-open .popup {
    transform: translateY(0);
    opacity: 1;
}

.close-popup {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--ink-mute);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.close-popup:hover {
    background: var(--bg-elev);
    color: var(--ink);
}

.popup-eyebrow {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 10px;
}

.popup-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.popup-sub {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    font: inherit;
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(247, 223, 30, 0.3);
}

.form-consent {
    margin: 18px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-mute);
    line-height: 1.45;
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--ink);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-consent a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--line-strong);
}

.form-consent a:hover {
    text-decoration-color: var(--ink);
}

.submit-button {
    width: 100%;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.005em;
    padding: 14px 22px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button .arrow {
    transition: transform 0.2s ease;
}

.submit-button:hover .arrow {
    transform: translateX(4px);
}

.form-status {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.form-status[data-type="success"] {
    background: #DCFCE7;
    color: #166534;
    border-color: #BBF7D0;
}

.success-message {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
}

.success-message .success-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 600;
}

.success-message h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.success-message p {
    color: var(--ink-soft);
    font-size: 14px;
}

/* Hero portrait (prawa kolumna) */
.hero-portrait {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 440px;
}

.hero-portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lift);
}

.hero-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s ease;
}

.hero-portrait:hover .hero-portrait-frame img {
    filter: grayscale(0) contrast(1);
}

/* Accent corner cue */
.hero-portrait-frame::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: var(--accent);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bg);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-badge .live-dot {
    width: 6px;
    height: 6px;
}

.hero-caption {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-mute);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* -- Pullquote (social proof) ------------------------------- */
.pullquote {
    padding: 72px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev);
}

.pullquote blockquote {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 0 16px;
}

.pullquote blockquote p {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 20px;
}

.pullquote cite {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-style: normal;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pullquote cite::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ink-mute);
    display: inline-block;
}

/* -- Marquee (legacy — nieużywana) -------------------------- */
.marquee {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    background: var(--bg-elev);
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--ink-soft);
    white-space: nowrap;
    max-width: 680px;
    overflow: hidden;
}

.marquee-item .who {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.marquee-item .sep {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* -- Stats strip -------------------------------------------- */
.stats {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    border-top: 1px solid var(--line);
    padding-top: 48px;
}

.stats-grid.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid-3 .stat-item:nth-child(2) {
    align-items: center;
    text-align: center;
}

.stats-grid-3 .stat-item:nth-child(3) {
    align-items: flex-end;
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: -0.005em;
}

/* -- Footer ------------------------------------------------- */
.footer {
    padding: 32px 0 28px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.footer-brand .mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.footer-brand .mark svg {
    width: 12px;
    height: 12px;
    display: block;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
}

.footer-nav a {
    color: var(--ink-soft);
}

.footer-nav a:hover {
    color: var(--ink);
    opacity: 1;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
}

/* -- Honeypot ----------------------------------------------- */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* -- ActiveCampaign hidden form ----------------------------- */
.ac-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   BOOKS PAGE (lista.html v2)
   ============================================================ */

body.books-page {
    background: var(--bg);
}

.page-header {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--line);
}

.page-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 14px;
}

.page-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 14px;
}

.page-subtitle {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 620px;
}

.books-main {
    padding: 48px 0 80px;
}

.intro-text {
    max-width: 680px;
    margin-bottom: 40px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.intro-text p + p {
    margin-top: 10px;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 40px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.filter-group input,
.filter-group select {
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(247, 223, 30, 0.25);
}

.year-section {
    margin-bottom: 56px;
}

.year-section h2,
.year-section .year-title {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.year-section h2 .year-count {
    color: var(--ink);
    font-size: 13px;
}

.book-list {
    display: flex;
    flex-direction: column;
}

.book-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    transition: background 0.15s ease, padding 0.15s ease;
}

.book-row:hover {
    background: var(--bg-elev);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: var(--radius-sm);
}

.book-info,
.book-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.book-title {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.book-author {
    font-size: 13.5px;
    color: var(--ink-mute);
    font-family: var(--font-mono);
}

.book-rating {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    white-space: nowrap;
    padding: 4px 10px;
    background: var(--bg-elev);
    border-radius: 999px;
    border: 1px solid var(--line);
}

.book-row.hidden {
    display: none;
}

.year-message {
    font-size: 14px;
    color: var(--ink-mute);
    font-style: italic;
    padding: 8px 0;
}

/* ============================================================
   LEGAL PAGES (pp.html, regulamin.html)
   ============================================================ */

body.legal-page {
    background: var(--bg);
}

.legal-main {
    padding: 60px 0 80px;
    max-width: 760px;
    margin: 0 auto;
}

.legal-main h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.legal-main h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 36px 0 12px;
}

.legal-main h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.legal-main p {
    margin-bottom: 14px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.legal-main ul, .legal-main ol {
    margin: 12px 0 18px 20px;
    color: var(--ink-soft);
}

.legal-main li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-main a {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--line-strong);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .hero {
        padding: 48px 0 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-portrait {
        max-width: 280px;
        justify-self: start;
    }

    .hero-portrait-frame {
        aspect-ratio: 1 / 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .topnav-status .topnav-label {
        display: none;
    }

    .hero-title {
        font-size: clamp(32px, 9vw, 44px);
    }

    .inline-form {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }

    .inline-form button {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

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

    .book-row {
        grid-template-columns: 1fr;
    }

    .book-rating {
        justify-self: start;
    }

    .filter-group {
        min-width: 100%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
