@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Literata:opsz,wght@7..72,400;7..72,600;7..72,700&display=swap');

:root {
    --ink: #181715;
    --muted: #6f6b64;
    --paper: #f4f0e8;
    --card: #fffdf8;
    --line: #dcd4c7;
    --accent: #17849a;
    --accent-dark: #0e6577;
    --black: #090909;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(33, 29, 23, .08);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.65;
}

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

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--accent);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 0 0 34px;
    color: #fff;
    text-align: center;
    background: #000;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255,255,255,.12);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    background: #000;
}

.hero-image {
    display: block;
    width: min(1500px, 100%);
    height: auto;
    margin: 0 auto;
    background: #000;

    /* Fondu très discret aux quatre bords de l'image. */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-composite: intersect;
}

.hero-kicker {
    margin: 10px 0 0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.68);
}

.hero-quote {
    margin: 14px 0 0;
    font-family: "Literata", Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-style: italic;
}

.subscription-wrap {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 26px auto 0;
    padding: 0 16px;
}

.collections-nav {
    position: relative;
    z-index: 5;
    margin-top: -2px;
    padding: 44px 24px 50px;
    color: #fff;
    background: #111;
}

.collections-inner {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.6fr);
    gap: 44px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}

.collections-heading h1,
.library-header h2 {
    margin: 0;
    font-family: "Literata", Georgia, serif;
    line-height: 1.1;
}

.collections-heading h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.collections-heading p { max-width: 360px; margin: 15px 0 0; color: #aaa; }

.collection-tabs {
    display: grid;
    gap: 12px;
}

.collection-tab {
    display: grid;
    grid-template-columns: 46px 1fr 22px;
    gap: 15px;
    align-items: center;
    min-height: 92px;
    padding: 19px 22px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 15px;
    color: #fff;
    background: rgba(255,255,255,.04);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.collection-tab:hover,
.collection-tab:focus {
    color: #fff;
    border-color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.08);
    transform: translateX(5px);
}

.collection-tab.active {
    color: #fff;
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(23,132,154,.34), rgba(23,132,154,.12));
    box-shadow: inset 4px 0 0 var(--accent);
}

.collection-number {
    font-family: "Literata", Georgia, serif;
    font-size: 1.05rem;
    color: var(--accent);
}

.collection-copy { display: flex; flex-direction: column; }
.collection-copy strong { font-family: "Literata", Georgia, serif; font-size: 1.3rem; }
.collection-copy small { margin-top: 3px; color: #aaa; }

.library-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px 90px;
}

.library-header {
    position: relative;
    padding: 0 0 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.library-header h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.library-header p { max-width: 600px; margin: 13px 0 0; color: var(--muted); }

.text-count {
    position: absolute;
    right: 0;
    bottom: 28px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--muted);
    background: rgba(255,255,255,.45);
}

.poem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.poem-card {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 4px 14px rgba(33,29,23,.025);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.poem-card:hover {
    transform: translateY(-4px);
    border-color: #bcb1a1;
    box-shadow: var(--shadow);
}

.poem-card-link {
    display: flex;
    min-height: 285px;
    height: 100%;
    flex-direction: column;
    padding: 25px;
    color: var(--ink);
}

.poem-card-link:hover { color: var(--ink); }

.poem-card-topline,
.poem-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.poem-collection {
    overflow: hidden;
    max-width: 80%;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent-dark);
}

.poem-arrow {
    font-size: 1.15rem;
    color: var(--muted);
    transition: transform .2s ease;
}
.poem-card:hover .poem-arrow { transform: translate(3px, -3px); }

.poem-card h3 {
    margin: 34px 0 14px;
    font-family: "Literata", Georgia, serif;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 600;
    line-height: 1.18;
    color: var(--ink);
}

.poem-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 28px;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.poem-card-footer {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #ebe5dc;
    font-size: .78rem;
    color: var(--muted);
}

.poem-card-footer strong {
    color: var(--accent-dark);
    white-space: nowrap;
}

.site-footer {
    padding: 56px 24px;
    color: #ddd;
    background: var(--black);
}

.footer-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; flex-direction: column; gap: 5px; }
.footer-brand strong { font-family: "Literata", Georgia, serif; font-size: 1.45rem; color: #fff; }
.footer-brand span, .footer-stats, .footer-copy { color: #888; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 26px 0;
}
.footer-links a { color: #ddd; }
.footer-links a:hover { color: var(--accent); }
.footer-stats, .footer-copy { margin: 6px 0; font-size: .82rem; }

@media (max-width: 980px) {
    .hero { min-height: auto; padding-top: 34px; }

    .collections-inner { grid-template-columns: 1fr; gap: 27px; }
    .collections-heading p { max-width: none; }
    .poem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
}

@media (max-width: 600px) {
    .hero { padding: 0 0 24px; }
    .hero-image {
        width: 100%;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%),
            linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%),
            linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
    }
    .hero { min-height: auto; padding: 26px 15px 24px; }
    .hero-kicker { margin-top: 20px; }
    .collections-nav { padding: 34px 15px 40px; }
    .collection-tab { grid-template-columns: 35px 1fr 16px; min-height: 84px; padding: 16px; }
    .collection-copy strong { font-size: 1.12rem; }
    .collection-copy small { font-size: .75rem; }
    .library-main { padding: 52px 15px 65px; }
    .library-header { padding-bottom: 58px; }
    .text-count { left: 0; right: auto; bottom: 17px; }
    .poem-card-link { min-height: 255px; padding: 21px; }
    .poem-card h3 { margin-top: 26px; }
    .poem-card-footer { flex-wrap: wrap; }
    .poem-card-footer strong { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

