:root {
  --forest: #006337;
  --forest-dark: #003d25;
  --leaf: #0b8457;
  --aqua: #62a8ac;
  --rose: #cc3366;
  --cream: #f9eccc;
  --paper: #fffdf7;
  --ink: #212738;
  --muted: #69727d;
  --line: rgba(0, 99, 55, .18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1160px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: 16px; transform: translateY(-150%); padding: 10px 16px; color: white; background: var(--forest); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,253,247,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.wordmark-mark { display: grid; place-items: center; width: 38px; height: 48px; color: var(--paper); background: var(--forest); font: 700 31px/1 var(--serif); clip-path: polygon(0 0,100% 0,78% 100%,0 100%); }
.wordmark strong { display: block; font: 700 21px/1 var(--serif); letter-spacing: -.02em; }
.wordmark small { display: block; margin-top: 5px; color: var(--muted); font: 600 9px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--rose); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.menu-button > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--forest); }

.hero { position: relative; overflow: hidden; padding: 86px 0 26px; background: linear-gradient(135deg, var(--paper) 0 65%, rgba(249,236,204,.65) 65%); }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(0,99,55,.12); border-radius: 50%; right: -130px; top: -210px; }
.hero-rule { position: absolute; left: 0; top: 122px; width: 8vw; min-width: 44px; height: 2px; background: var(--rose); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(280px,.68fr); align-items: center; gap: clamp(48px,8vw,110px); }
.eyebrow, .section-kicker, .book-kind { margin: 0 0 18px; color: var(--rose); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 820px; margin: 0; color: var(--forest-dark); font: 600 clamp(54px,6.4vw,92px)/.92 var(--serif); letter-spacing: -.045em; }
h1 em { color: var(--forest); font-weight: 500; }
.hero-lede { max-width: 650px; margin: 30px 0 0; color: #3d4459; font-size: clamp(17px,1.5vw,20px); line-height: 1.7; }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 1px solid transparent; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--forest); }
.button-primary:hover { background: var(--forest-dark); }
.text-link { color: var(--forest); text-decoration: none; font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; }
.hero-visual { position: relative; margin: 0; justify-self: center; }
.cover-shadow { position: relative; width: min(330px, 73vw); padding: 17px; background: white; box-shadow: 0 28px 60px rgba(33,39,56,.2); transform: rotate(1.5deg); }
.cover-shadow::before { content: ""; position: absolute; z-index: -1; inset: 18px -19px -18px 22px; background: var(--aqua); }
.cover-shadow img { width: 100%; aspect-ratio: 366/536; object-fit: cover; }
.hero-visual figcaption { margin-top: 30px; font: 600 18px/1.2 var(--serif); text-align: center; }
.hero-visual figcaption span { display: block; margin-bottom: 6px; color: var(--rose); font: 700 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.hero-footnote { display: flex; gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.hero-footnote span { flex: 1; padding: 18px 8px; color: var(--muted); border-right: 1px solid var(--line); font: 600 10px/1 var(--sans); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.hero-footnote span:last-child { border-right: 0; }

.section { padding: clamp(86px,10vw,140px) 0; }
.author-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(50px,9vw,120px); }
.author-photo-wrap { position: relative; padding: 0 0 34px 34px; }
.author-photo-wrap::before { content: ""; position: absolute; left: 0; bottom: 0; width: 68%; height: 76%; background: var(--cream); z-index: -1; }
.author-photo-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.author-photo-wrap p { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.author-copy h2, .section-heading h2, .themes-intro h2, .contact-inner h2 { margin: 0 0 25px; color: var(--forest-dark); font: 600 clamp(44px,5.3vw,74px)/.98 var(--serif); letter-spacing: -.035em; }
.author-copy > p:not(.section-kicker) { max-width: 650px; margin: 0 0 18px; }
.dropcap::first-letter { float: left; margin: 7px 8px 0 0; color: var(--forest); font: 700 66px/.68 var(--serif); }
blockquote { position: relative; margin: 35px 0 0; padding: 4px 0 4px 34px; color: var(--forest); border-left: 2px solid var(--rose); font: italic 500 26px/1.25 var(--serif); }

.books-section { background: #f4f0e6; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 70px; margin-bottom: 72px; }
.section-heading > p { max-width: 460px; margin: 0 0 10px; color: var(--muted); }
.featured-book { display: grid; grid-template-columns: 270px 70px 1fr; align-items: center; gap: clamp(28px,5vw,70px); padding: 50px; background: var(--forest-dark); color: white; }
.featured-cover { padding: 12px; background: white; transform: rotate(-1.5deg); }
.featured-cover img { width: 100%; aspect-ratio: 366/536; object-fit: cover; }
.book-number { align-self: start; color: var(--aqua); font: 600 44px/1 var(--serif); writing-mode: vertical-rl; }
.book-copy { max-width: 580px; }
.book-copy .book-kind { color: var(--aqua); }
.book-copy h3, .book-item h3 { margin: 0 0 17px; font: 600 clamp(36px,4.2vw,58px)/1 var(--serif); letter-spacing: -.03em; }
.book-copy > p:not(.book-kind) { color: rgba(255,255,255,.78); }
.book-copy .text-link { color: white; }
.book-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.book-copy .button-primary { color: var(--forest-dark); background: var(--cream); }
.book-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; background: rgba(0,99,55,.15); }
.book-item { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 36px; padding: 44px; background: var(--paper); }
.book-item img { width: 100%; aspect-ratio: 279/445; object-fit: cover; box-shadow: 0 14px 30px rgba(33,39,56,.15); }
.book-item h3 { color: var(--forest-dark); font-size: clamp(30px,3.2vw,43px); }
.book-item p:not(.book-kind) { color: var(--muted); font-size: 14px; }
.catalog { margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; color: var(--forest); font-weight: 700; list-style: none; }
.catalog summary::-webkit-details-marker { display: none; }
.catalog summary span { font: 400 32px/1 var(--serif); transition: transform .2s ease; }
.catalog[open] summary span { transform: rotate(45deg); }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; padding: 14px 0 34px; }
.catalog-grid div { padding: 18px 0; border-top: 1px solid rgba(0,99,55,.12); }
.catalog-grid strong, .catalog-grid span { display: block; }
.catalog-grid strong { font: 600 22px/1.2 var(--serif); }
.catalog-grid span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.themes-section { background: var(--paper); }
.themes-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px,10vw,140px); }
.themes-intro { position: sticky; top: 130px; align-self: start; }
.themes-intro > p:last-child { max-width: 430px; color: var(--muted); }
.theme-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.theme-list li { display: grid; grid-template-columns: 60px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.theme-list li > span { color: var(--rose); font: 600 15px/1.4 var(--serif); }
.theme-list h3 { margin: 0 0 6px; color: var(--forest-dark); font: 600 30px/1.1 var(--serif); }
.theme-list p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-section { position: relative; overflow: hidden; padding: clamp(86px,10vw,136px) 0; color: white; background: var(--forest); }
.contact-section::after { content: "aspas"; position: absolute; right: -15px; bottom: -55px; color: rgba(255,255,255,.06); font: 700 190px/1 var(--serif); }
.contact-inner { position: relative; z-index: 1; }
.contact-inner .section-kicker { color: var(--cream); }
.contact-inner h2 { max-width: 850px; color: white; }
.contact-inner > p:not(.section-kicker) { max-width: 650px; color: rgba(255,255,255,.78); }
.button-light { color: var(--forest-dark); background: var(--cream); }
.text-link.light { color: white; }
.site-footer { padding: 44px 0; background: var(--forest-dark); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 46px; }
.footer-wordmark .wordmark-mark { color: var(--forest-dark); background: var(--cream); }
.footer-wordmark strong { color: white; }
.footer-wordmark small { color: rgba(255,255,255,.58); }
.social-links { display: flex; flex-wrap: wrap; gap: 22px; }
.social-links a { font-size: 12px; text-underline-offset: 5px; }
.site-footer p { margin: 0; font-size: 11px; line-height: 1.6; text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

@media (max-width: 920px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 1px); display: none; padding: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 35px rgba(33,39,56,.12); }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { padding: 13px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr .65fr; gap: 44px; }
  .hero-copy { min-width: 0; }
  .author-grid, .themes-grid { gap: 60px; }
  .featured-book { grid-template-columns: 220px 45px 1fr; padding: 36px; }
  .book-item { grid-template-columns: 120px 1fr; padding: 30px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1/-1; text-align: left; }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 30px, 1160px); }
  .site-header { position: relative; }
  .header-inner { min-height: 72px; }
  .hero { padding-top: 60px; background: linear-gradient(155deg,var(--paper) 0 72%,rgba(249,236,204,.72) 72%); }
  .hero-rule { top: 86px; }
  .hero-grid, .author-grid, .section-heading, .themes-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(48px,14vw,68px); }
  .hero-lede { font-size: 16px; }
  .hero-visual { margin-top: 22px; }
  .cover-shadow { width: min(280px,72vw); }
  .hero-footnote { margin-top: 56px; flex-wrap: wrap; }
  .hero-footnote span { flex: 0 0 50%; border-bottom: 1px solid var(--line); }
  .author-grid { gap: 46px; }
  .author-photo-wrap { padding: 0 0 24px 24px; }
  .section-heading { gap: 10px; margin-bottom: 48px; }
  .featured-book { grid-template-columns: 1fr; padding: 30px 24px; }
  .featured-cover { width: min(250px,80%); margin-inline: auto; }
  .book-number { display: none; }
  .book-pair { grid-template-columns: 1fr; }
  .book-item { grid-template-columns: 110px 1fr; padding: 26px 20px; }
  .book-item h3 { font-size: 30px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .themes-intro { position: static; }
  .contact-inner h2 { font-size: clamp(43px,12vw,62px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer p { grid-column: auto; }
}

@media (max-width: 430px) {
  .book-item { grid-template-columns: 90px 1fr; gap: 17px; }
  .book-item p:not(.book-kind) { display: none; }
  .hero-actions, .contact-actions { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
