:root {
    --berry-950: #2b0a1e;
    --berry-900: #40102b;
    --berry-800: #561436;
    --berry-700: #7a214c;
    --coral: #f05f68;
    --apricot: #ffb56b;
    --cream: #fff9f2;
    --paper: #ffffff;
    --ink: #21161c;
    --muted: #6f6068;
    --line: #eadfe3;
    --shadow: 0 24px 70px rgba(58, 16, 39, .12);
    --radius: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: .75rem 1rem; color: #fff; background: var(--berry-950); border-radius: .65rem; }
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(234, 223, 227, .8);
    background: rgba(255, 249, 242, .92);
    backdrop-filter: blur(18px);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(86, 20, 54, .12); border-radius: 15px; background: #fff; }
.brand-mark img { width: 43px; height: 43px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; letter-spacing: -.025em; }
.brand small { margin-top: .06rem; color: var(--muted); font-size: .69rem; letter-spacing: .05em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.primary-nav a { position: relative; color: #584750; font-size: .88rem; font-weight: 700; text-decoration: none; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -.35rem; left: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding: .65rem 1rem; }
.button-dark { color: #fff; background: var(--berry-950); box-shadow: 0 10px 24px rgba(43, 10, 30, .18); }
.button-primary { color: #fff; background: var(--berry-800); box-shadow: 0 14px 30px rgba(86, 20, 54, .2); }
.button-light { color: var(--berry-950); background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--berry-800); font-size: .9rem; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--coral); }

.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem); }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; top: -280px; right: -180px; border-radius: 50%; background: rgba(255, 181, 107, .25); filter: blur(4px); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; color: var(--berry-700); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 2px; background: var(--coral); }
.hero h1 { max-width: 750px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7.4vw, 6.65rem); font-weight: 500; line-height: .93; letter-spacing: -.065em; }
.hero h1 em { color: var(--berry-700); font-weight: 500; }
.hero-lead { max-width: 640px; margin: 1.7rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.service-note { max-width: 640px; display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.5rem; padding: .85rem 1rem; border: 1px solid #f5ce9e; border-radius: .85rem; color: #65401d; background: #fff7e9; font-size: .82rem; line-height: 1.45; }
.service-dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: .3rem; border-radius: 50%; background: #d67917; box-shadow: 0 0 0 4px rgba(214, 121, 23, .12); }

.editorial-card { min-height: 510px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 1.6rem; color: #fff; border-radius: 2rem 2rem 7rem 2rem; background: linear-gradient(145deg, var(--berry-950), var(--berry-800) 70%, #872551); box-shadow: var(--shadow); }
.editorial-card::after { content: ""; position: absolute; width: 280px; height: 280px; top: 70px; right: -110px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 72px rgba(255,255,255,.025); }
.editorial-topline { position: absolute; top: 1.4rem; right: 1.6rem; left: 1.6rem; z-index: 1; display: flex; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-mascot { position: absolute; z-index: 1; width: 210px; top: 80px; left: 50%; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 24px 28px rgba(0,0,0,.2)); }
.edition { position: relative; z-index: 1; margin: 0 0 .55rem; color: #ffd0b0; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.editorial-card h2 { position: relative; z-index: 1; max-width: 340px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.editorial-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.35rem; }
.editorial-footer span { padding: .38rem .65rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #f8ddea; font-size: .66rem; }

.numbers { color: #fff; background: var(--berry-950); }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.numbers p { min-height: 132px; display: flex; flex-direction: column; justify-content: center; gap: .35rem; margin: 0; padding: 1.5rem clamp(1rem, 3vw, 2.4rem); border-left: 1px solid rgba(255,255,255,.12); }
.numbers p:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.numbers strong { font-family: Georgia, "Times New Roman", serif; color: #fff2e3; font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 500; }
.numbers span { color: #d7c0cd; font-size: .78rem; }

.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2, .process-intro h2, .ranking-grid h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.book-card { min-height: 285px; display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.book-card:hover { transform: translateY(-4px); border-color: #d9b8c7; box-shadow: 0 18px 36px rgba(58, 16, 39, .08); }
.book-number { color: #c4aab7; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.book-card-body { flex: 1; padding-top: 2.25rem; }
.book-author { margin: 0 0 .45rem !important; color: var(--coral) !important; font-size: .69rem !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.book-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.38rem; line-height: 1.12; }
.book-card p { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.book-card > a { width: fit-content; color: var(--berry-700); font-size: .8rem; font-weight: 850; text-decoration: none; }
.catalog-fallback { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; border-radius: var(--radius); background: linear-gradient(135deg, var(--berry-950), var(--berry-800)); }
.fallback-kicker { color: #ffcda9; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.catalog-fallback h3 { margin: .65rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; }
.catalog-fallback p { max-width: 650px; margin: 0; color: #e7d3df; line-height: 1.6; }

.section-ink { color: #fff; background: #21161c; }
.eyebrow-light { color: #ffc4c9; }
.ranking-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.ranking-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.ranking-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: 1.35rem .3rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.ranking-list .rank { color: #d09bae; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.ranking-list strong, .ranking-list small { display: block; }
.ranking-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 500; }
.ranking-list small { margin-top: .3rem; color: #bcaab2; font-size: .74rem; }
.ranking-list a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; text-decoration: none; }

.process-grid { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); }
.process-intro > p:last-child { max-width: 470px; color: var(--muted); line-height: 1.7; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.steps h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 500; }
.steps p { margin: .45rem 0 0; color: var(--muted); line-height: 1.55; }

.cta-section { padding: 0 0 clamp(4.5rem, 8vw, 7rem); }
.cta-card { min-height: 215px; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; border-radius: 2rem; background: linear-gradient(115deg, var(--berry-800), #8d2853 64%, #b43f5e); box-shadow: var(--shadow); }
.cta-card img { filter: drop-shadow(0 16px 18px rgba(0,0,0,.16)); }
.cta-card p { margin: 0 0 .45rem; color: #ffd0b0; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cta-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; }

.site-footer { padding: 2.2rem 0; color: #d8c9d0; background: var(--berry-950); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.brand-footer strong { color: #fff; }
.brand-footer small { color: #c6abb9; }
.site-footer p { margin: 0; font-size: .82rem; }
.site-footer > .shell > div:last-child { display: flex; justify-content: flex-end; gap: 1.25rem; }
.site-footer > .shell > div:last-child a { font-size: .8rem; font-weight: 750; text-decoration: none; }

@media (max-width: 900px) {
    .primary-nav { display: none; }
    .nav-shell > .button { margin-left: auto; }
    .hero-grid, .ranking-grid, .process-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 780px; }
    .editorial-card { width: min(520px, 100%); min-height: 480px; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr auto; }
    .footer-grid > p { display: none; }
}

@media (max-width: 620px) {
    .shell { width: min(1160px, calc(100% - 1.25rem)); }
    .site-header .brand small { display: none; }
    .site-header .brand-mark { width: 42px; height: 42px; }
    .nav-shell { min-height: 68px; gap: .75rem; }
    .nav-shell > .button { min-height: 42px; padding-inline: .8rem; font-size: .78rem; }
    .hero { padding-top: 3.5rem; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.65rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .editorial-card { min-height: 435px; border-radius: 1.5rem 1.5rem 5rem 1.5rem; }
    .hero-mascot { width: 180px; }
    .numbers-grid { grid-template-columns: 1fr; }
    .numbers p, .numbers p:last-child { min-height: 100px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .book-grid { grid-template-columns: 1fr; }
    .book-card { min-height: 245px; }
    .catalog-fallback { grid-template-columns: 1fr; }
    .catalog-fallback .button { width: 100%; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .cta-card { grid-template-columns: 1fr; text-align: center; }
    .cta-card img { width: 90px; margin-inline: auto; }
    .cta-card .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .brand-footer { justify-self: center; }
    .site-footer > .shell > div:last-child { justify-content: center; }
}

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