:root {
  --ink: #2b1b2d;
  --plum: #4c214e;
  --violet: #765078;
  --mauve: #b68cae;
  --rose: #d99aaa;
  --blush: #f3dde3;
  --paper: #fffaf8;
  --cream: #f7f0ed;
  --line: rgba(76, 33, 78, .18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link:focus { z-index: 99; top: 8px; left: 8px; width: auto; height: auto; padding: 10px; clip: auto; background: white; }
.eyebrow { margin: 0 0 18px; color: var(--violet); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.site-header {
  position: absolute; z-index: 10; top: 0; left: 0; display: flex; width: 100%;
  align-items: center; justify-content: space-between; padding: 24px clamp(24px, 5vw, 76px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand span:last-child { display: flex; flex-direction: column; line-height: .9; }
.brand small { margin-top: 6px; font: 500 .56rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.brand-logo { width: 42px; height: 48px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: .86rem; font-weight: 500; }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a::after { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; content: ""; background: var(--rose); transition: width .25s; }
.main-nav a:hover::after { width: 100%; }
.menu-button { display: none; border: 0; background: none; }

.hero {
  position: relative; display: grid; min-height: 94vh; max-height: 920px; grid-template-columns: 53% 47%;
  align-items: center; overflow: hidden; padding: 120px clamp(24px, 8vw, 132px) 80px;
  background: var(--cream);
}
.hero::before { position: absolute; top: 0; right: 0; width: 47%; height: 100%; content: ""; background: #e8ccd5; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { margin: 0; font: 600 clamp(4.6rem, 9vw, 8.5rem)/.82 var(--serif); color: var(--plum); }
.hero h1 span { display: block; margin-top: .14em; font-size: .48em; }
.hero-lead { max-width: 540px; margin: 38px 0 34px; font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.55 var(--serif); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; font-size: .82rem; font-weight: 600; }
.button-primary { color: white; background: var(--plum); }
.button-primary:hover { background: #321434; }
.text-link { font-size: .85rem; font-weight: 600; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.hero-art { position: relative; z-index: 1; display: grid; width: min(38vw, 500px); aspect-ratio: 1; place-items: center; justify-self: center; }
.moon { width: 60%; aspect-ratio: 1; border-radius: 50%; background: #fdf4e8; box-shadow: 0 24px 80px rgba(76,33,78,.14); }
.moon::after { position: absolute; top: 18%; left: 27%; width: 9%; aspect-ratio: 1; border-radius: 50%; content: ""; background: rgba(182,140,174,.12); box-shadow: 70px 85px 0 16px rgba(182,140,174,.09), 25px 145px 0 5px rgba(182,140,174,.1); }
.orbit { position: absolute; border: 1px solid rgba(76,33,78,.28); border-radius: 50%; }
.orbit-one { width: 83%; height: 50%; transform: rotate(-24deg); }
.orbit-two { width: 93%; height: 62%; transform: rotate(38deg); }
.hero-art p { position: absolute; margin: 0; text-align: center; font: 500 clamp(1rem, 1.7vw, 1.45rem)/1.55 var(--serif); }
.hero-art em { color: var(--violet); }
.scroll-cue { position: absolute; bottom: 28px; left: clamp(24px, 8vw, 132px); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue span { margin-left: 8px; }

.books-section { padding: 110px clamp(24px, 7vw, 110px) 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 54px; }
.section-heading h2, .author-copy h2 { max-width: 720px; margin: 0; font: 600 clamp(2.3rem, 5vw, 4.7rem)/1.08 var(--serif); }
.book-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 4px; }
.book-tabs button { padding: 10px 13px; border: 0; border-bottom: 2px solid transparent; color: #745f72; background: transparent; cursor: pointer; font-size: .78rem; }
.book-tabs button.active { border-color: var(--plum); color: var(--plum); }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 24px; }
.book-card { min-width: 0; transition: opacity .25s, transform .25s; }
.book-card.hidden { display: none; }
.book-card a { display: block; }
.book-cover {
  position: relative; display: flex; aspect-ratio: .7; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding: 28px 24px; box-shadow: 0 14px 30px rgba(50,20,52,.12); transition: transform .3s, box-shadow .3s;
}
.book-card:hover .book-cover { transform: translateY(-7px); box-shadow: 0 22px 42px rgba(50,20,52,.19); }
.book-cover::after { position: absolute; right: -35%; bottom: -17%; width: 85%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; content: ""; opacity: .28; }
.book-cover span { z-index: 1; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.book-cover strong { z-index: 1; font: 600 clamp(1.25rem, 2.2vw, 2rem)/1.06 var(--serif); }
.book-cover i { z-index: 1; align-self: end; font: normal 2.2rem var(--serif); }
.book-cover.has-image { background-color: #eadde4; background-size: cover; background-position: center; }
.book-cover.has-image::after, .book-cover.has-image > * { display: none; }
.cover-luna-1 { color: #4c214e; background: #edcdd8 url("assets/images/luna-hacedora-de-sonrisas.webp") center/cover; }
.cover-luna-2 { color: #fff7f2; background: #7b527b url("assets/images/sortilegio-de-luna.webp") center/cover; }
.cover-luna-3 { color: #fff5f7; background: #542957 url("assets/images/aquelarre-de-luna.webp") center/cover; }
.cover-luna-4 { color: #42203f; background: #d5a0b3 url("assets/images/linaje-de-luna.webp") center/cover; }
.cover-relato-1 { color: #4e294a; background: #e9d5e0 url("assets/images/mi-cajon-de-sastre.webp") center/cover; }
.cover-relato-2 { color: #fff; background: #93628a url("assets/images/hilandera-de-historias.webp") center/cover; }
.cover-relato-3 { color: #43203f; background: #e3b1bd url("assets/images/tejedora-de-almas.webp") center/cover; }
.book-meta { position: relative; padding: 18px 28px 0 0; }
.book-meta > span:first-child { color: var(--violet); font-size: .67rem; text-transform: uppercase; }
.book-meta h3 { margin: 7px 0 0; font: 600 1.15rem/1.25 var(--serif); }
.book-meta .arrow { position: absolute; top: 27px; right: 0; font-size: 1rem; }

.collaborations-section { padding: 110px clamp(24px, 7vw, 110px) 130px; background: #f2e3e8; }
.collaborations-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; margin-bottom: 52px; }
.collaborations-heading h2 { margin: 0; font: 600 clamp(2.4rem, 5vw, 4.7rem)/1.08 var(--serif); }
.collaborations-heading > p { max-width: 520px; margin: 0 0 6px; color: #64505f; line-height: 1.75; }
.collaborations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.collaboration-card { min-width: 0; }
.collaboration-card img { display: block; width: 100%; aspect-ratio: 1.08; object-fit: cover; background: #ddc4d2; transition: transform .3s; }
.collaboration-card:hover img { transform: translateY(-5px); }
.collaboration-card div { padding-top: 15px; }
.collaboration-card span { color: var(--violet); font-size: .62rem; text-transform: uppercase; }
.collaboration-card h3 { margin: 5px 0 0; font: 600 1.05rem/1.25 var(--serif); }

.author-section { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(400px, 1.15fr); background: var(--blush); }
.author-photo { min-height: 760px; display: grid; place-items: end center; padding: 30px; color: rgba(76,33,78,.65); background: #cda5bc url("assets/images/sonia-ruiz-corcos.webp") center/cover; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.author-copy { align-self: center; max-width: 760px; padding: 80px clamp(38px, 7vw, 120px); }
.author-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.5rem); }
.author-copy > p:not(.eyebrow) { max-width: 630px; color: #574354; font-size: 1rem; line-height: 1.8; }
.author-copy .author-intro { margin-top: 35px; color: var(--ink); font: 500 1.24rem/1.65 var(--serif); }
.author-copy .editor-note { padding-top: 15px; border-top: 1px solid var(--line); font-size: .72rem !important; font-style: italic; }
.author-career-link { display: inline-flex; margin-top: 10px; }

.contact-section { padding: 110px 24px; text-align: center; color: white; background: var(--plum); }
.contact-section .eyebrow { color: #e6b4c1; }
.contact-section h2 { margin: 0; font: 500 clamp(2.6rem, 6vw, 5.5rem)/1.04 var(--serif); }
.contact-section p:not(.eyebrow) { margin: 26px 0; color: #eadfe8; }
.contact-methods { display: flex; align-items: center; justify-content: center; gap: 20px; }
.contact-social { padding: 13px 0; color: #eadfe8; font-size: .82rem; font-weight: 600; }
.button-light { border-color: rgba(255,255,255,.55); color: var(--plum); background: var(--paper); }
.button-light:hover { color: white; background: transparent; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 35px clamp(24px, 5vw, 76px); background: #241525; color: #dacdd8; font-size: .72rem; }
footer div { display: flex; gap: 20px; }
.footer-brand { color: white; }
.footer-brand .brand-logo { filter: grayscale(1) brightness(4); }

.legal-page { background: var(--paper); }
.legal-content { max-width: 980px; margin: 0 auto; padding: 170px 24px 100px; }
.legal-content > header { padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.legal-content h1 { margin: 0; font: 600 clamp(3.4rem, 7vw, 6rem)/1 var(--serif); }
.legal-content > header > p:last-child { color: var(--violet); font-size: .78rem; }
.legal-content section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 20px; font: 600 2rem var(--serif); }
.legal-content p { color: #5f4b5c; line-height: 1.8; }
.legal-content a { color: var(--plum); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rose); }
.legal-table-wrap { overflow-x: auto; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.legal-content th, .legal-content td { padding: 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content th { color: white; background: var(--plum); }
.legal-content code { color: var(--plum); font-weight: 600; }
.privacy-actions { display: flex; gap: 12px; margin: 25px 0; }
.button-outline { border-color: var(--plum); color: var(--plum); background: transparent; cursor: pointer; }

/* Book detail pages */
.detail-page { background: var(--cream); }
.detail-header { position: relative; }
.book-hero { display: grid; min-height: 100vh; grid-template-columns: 44% 56%; align-items: center; padding: 120px clamp(24px, 8vw, 130px) 70px; }
.book-hero-cover { width: min(330px, 72%); justify-self: center; }
.book-hero-copy { max-width: 690px; }
.book-hero-copy .series-label { display: inline-flex; margin-bottom: 24px; padding: 7px 12px; border: 1px solid var(--line); color: var(--violet); font-size: .68rem; text-transform: uppercase; }
.book-hero-copy h1 { margin: 0; font: 600 clamp(3.4rem, 7vw, 7rem)/.98 var(--serif); }
.book-hero-copy .tagline { margin: 28px 0; font: 500 clamp(1.2rem, 2vw, 1.55rem)/1.55 var(--serif); color: var(--violet); }
.book-hero-copy .synopsis { max-width: 620px; line-height: 1.8; }
.book-actions { display: flex; gap: 20px; align-items: center; margin-top: 34px; }
.book-info { display: grid; grid-template-columns: 1fr 1fr; }
.book-quote { display: grid; min-height: 480px; place-items: center; padding: 70px; color: white; background: var(--plum); }
.book-quote blockquote { max-width: 550px; margin: 0; font: 500 clamp(1.8rem, 3.5vw, 3.2rem)/1.3 var(--serif); }
.book-about { padding: 80px clamp(40px, 9vw, 130px); background: var(--paper); }
.book-about h2 { margin: 0 0 24px; font: 600 2.5rem var(--serif); }
.book-about p { max-width: 620px; line-height: 1.8; }
.back-books { display: inline-flex; margin-top: 20px; font-size: .82rem; font-weight: 600; }

/* Career page */
.career-page { background: var(--paper); }
.career-hero { padding: 190px clamp(24px, 8vw, 132px) 110px; color: white; background: var(--plum); }
.career-hero .eyebrow { color: #e6b4c1; }
.career-hero h1 { max-width: 1050px; margin: 0; font: 600 clamp(3.7rem, 8vw, 7.6rem)/.98 var(--serif); }
.career-hero > p:last-child { max-width: 650px; margin: 38px 0 0; color: #eadfe8; font: 500 1.25rem/1.65 var(--serif); }
.career-intro { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 130px); align-items: center; padding: 100px clamp(24px, 8vw, 132px); }
.career-intro h2, .career-section-heading h2, .career-closing h2 { margin: 0; font: 600 clamp(2.3rem, 5vw, 4.6rem)/1.08 var(--serif); }
.career-intro > div:last-child > p:last-child { max-width: 650px; color: #64505f; line-height: 1.8; }
.career-highlight { padding: 40px; border-left: 4px solid var(--rose); background: var(--blush); }
.career-highlight span { color: var(--violet); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.career-highlight strong { display: block; margin: 13px 0; font: 600 2.4rem var(--serif); }
.career-highlight p { margin: 0; line-height: 1.65; }
.career-section { padding: 105px clamp(24px, 8vw, 132px); }
.career-section-heading { display: grid; grid-template-columns: .55fr 1.45fr; align-items: end; gap: 40px; margin-bottom: 55px; }
.career-section-heading .eyebrow { margin: 0 0 8px; }
.career-list { max-width: 980px; margin: 0 0 0 auto; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.career-list li { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.career-list time { padding-top: 4px; color: var(--violet); font-size: .75rem; font-weight: 600; }
.career-list h3 { margin: 0; font: 600 1.45rem var(--serif); }
.career-list p { margin: 5px 0 0; color: #725e6d; }
.career-tinted { background: #f2e3e8; }
.career-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-list li { display: grid; grid-template-columns: 60px 1fr; padding: 19px 0; border-bottom: 1px solid rgba(76,33,78,.15); }
.publication-list span { grid-row: 1 / 3; color: var(--violet); font-size: .7rem; font-weight: 600; }
.publication-list strong { font: 600 1.2rem var(--serif); }
.publication-list small { margin-top: 5px; color: #725e6d; }
.source-note { margin: 32px 0 0; color: #725e6d; font-size: .72rem; }
.timeline { max-width: 980px; margin-left: auto; border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 140px 1fr; gap: 35px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--violet); font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.timeline span { color: var(--rose); font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.timeline h3 { margin: 7px 0; font: 600 1.5rem var(--serif); }
.timeline p { max-width: 680px; margin: 0; color: #64505f; line-height: 1.7; }
.media-link { display: inline-flex; margin-top: 14px; color: var(--plum); font-size: .78rem; font-weight: 600; }
.career-dark { color: white; background: var(--plum); }
.career-dark .eyebrow { color: #e6b4c1; }
.story-publications { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.story-publications article { min-height: 150px; background: var(--plum); }
.story-publications a { display: flex; min-height: 150px; flex-direction: column; padding: 28px; transition: background .2s; }
.story-publications a:hover { background: rgba(255,255,255,.08); }
.story-publications time { color: #e6b4c1; font-size: .7rem; }
.story-publications h3 { margin: 18px 0 0; overflow-wrap: anywhere; font: 500 1.55rem var(--serif); }
.story-publications span { margin-top: auto; padding-top: 18px; color: #e6b4c1; font-size: .68rem; font-weight: 600; text-transform: uppercase; }
.career-closing { padding: 120px clamp(24px, 12vw, 200px); text-align: center; background: var(--blush); }
.career-closing h2 { max-width: 850px; margin: 0 auto 38px; }

@media (max-width: 950px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .collaborations-grid { grid-template-columns: repeat(3, 1fr); }
  .author-photo { min-height: 600px; }
  .book-hero { grid-template-columns: 40% 60%; padding-inline: 5vw; }
}
@media (max-width: 720px) {
  .site-header { position: absolute; padding: 18px 20px; }
  .career-page .site-header { background: var(--paper); }
  .menu-button { z-index: 12; display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 1px; background: var(--ink); }
  .menu-button[aria-expanded="true"] span:not(.sr-only) { background: white; }
  .main-nav { position: fixed; z-index: 11; inset: 0; display: none; flex-direction: column; justify-content: center; color: white; background: var(--plum); font: 500 1.8rem var(--serif); }
  .main-nav.open { display: flex; }
  .hero { min-height: 92vh; max-height: none; grid-template-columns: 1fr; padding: 130px 24px 80px; }
  .hero::before { top: auto; bottom: 0; width: 100%; height: 39%; }
  .hero h1 { font-size: clamp(4.6rem, 23vw, 7rem); }
  .hero-lead { margin: 28px 0; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-art { width: min(78vw, 360px); margin-top: 25px; }
  .scroll-cue { display: none; }
  .books-section { padding: 80px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .book-tabs { width: 100%; overflow-x: auto; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 16px; }
  .book-cover { padding: 20px 16px; }
  .book-cover strong { font-size: clamp(1rem, 5vw, 1.35rem); }
  .collaborations-section { padding: 75px 20px 85px; }
  .collaborations-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .collaborations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .author-section { grid-template-columns: 1fr; }
  .author-photo { min-height: 500px; }
  .author-copy { padding: 70px 24px; }
  .contact-methods { flex-direction: column; gap: 8px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer div { flex-wrap: wrap; }
  .legal-content { padding: 130px 20px 75px; }
  .privacy-actions { align-items: stretch; flex-direction: column; }
  .book-hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding: 120px 24px 70px; }
  .book-hero-cover { width: min(260px, 76vw); }
  .book-hero-copy h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .book-info { grid-template-columns: 1fr; }
  .book-quote { min-height: 380px; padding: 50px 24px; }
  .book-about { padding: 60px 24px; }
  .career-hero { padding: 130px 24px 75px; }
  .career-hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .career-intro { grid-template-columns: 1fr; padding: 70px 24px; }
  .career-section { padding: 75px 24px; }
  .career-section-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 38px; }
  .career-columns { grid-template-columns: 1fr; gap: 0; }
  .career-list li { grid-template-columns: 65px 1fr; gap: 15px; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .story-publications { grid-template-columns: 1fr 1fr; }
  .story-publications article { min-width: 0; min-height: 145px; }
  .story-publications a { min-height: 145px; padding: 20px; }
  .career-closing { padding: 80px 24px; }
}
