/*
Theme Name: Historias
Theme URI: https://example.invalid/
Author: Familia
Description: Tema editorial minimalista para publicar libros, capítulos y pinturas.
Version: 1.3.0
Text Domain: historias
*/

:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --text: #26231f;
  --muted: #746d63;
  --line: #ded6ca;
  --accent: #6b3f2a;
  --accent-strong: #4d2b1d;
  --shadow: 0 18px 50px rgba(43, 34, 27, .10);
  --reader-size: 20px;
}

html[data-theme="dark"] {
  --bg: #181715;
  --surface: #211f1c;
  --text: #ece6db;
  --muted: #b7afa3;
  --line: #3a3630;
  --accent: #d5a47d;
  --accent-strong: #ecc09d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { padding: 28px 0 18px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.header-nav { display: flex; gap: 22px; color: var(--muted); font-size: .95rem; }

.hero { padding: 70px 0 52px; max-width: 850px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
.hero h1, .book-title, .chapter-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 12px 0 18px;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 500; }
.hero p { color: var(--muted); max-width: 700px; font-size: 1.12rem; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 34px 0 24px; }
.section-head h2 { font-family: Georgia, serif; font-size: 2rem; margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
.books-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; padding-bottom: 80px; }
.book-card { display: block; }
.book-cover-wrap { aspect-ratio: 2 / 3; background: #d9d0c4; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.book-card:hover .book-cover-wrap { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(43, 34, 27, .16); }
.book-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 28px; text-align: center; color: #5f554b; background: linear-gradient(145deg, #e3d8ca, #c9bba9); font-family: Georgia, serif; font-size: 1.4rem; }
.book-card h3 { font-family: Georgia, serif; font-size: 1.35rem; margin: 18px 0 6px; }
.book-card p { margin: 0; color: var(--muted); }

.book-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(38px, 8vw, 100px); padding: 60px 0 70px; align-items: center; }
.book-hero .book-cover-wrap { width: 100%; }
.book-kicker { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.book-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; }
.book-summary { color: var(--muted); font-size: 1.08rem; max-width: 650px; }
.start-reading { display: inline-flex; margin-top: 24px; padding: 12px 18px; background: var(--text); color: var(--bg); border-radius: 999px; font-weight: 650; }
.start-reading:hover { background: var(--accent); color: white; }

.toc { max-width: 820px; margin: 0 auto 90px; border-top: 1px solid var(--line); }
.toc-title { font-family: Georgia, serif; font-size: 1.8rem; margin: 36px 0 18px; }
.toc-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.toc-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-item strong { font-family: Georgia, serif; font-size: 1.08rem; }
.toc-arrow { color: var(--muted); }

.reader-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 80px; }
.reader-topbar { position: sticky; top: 14px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.reader-book-link { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reader-controls { display: flex; gap: 7px; }
.reader-controls button { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; min-width: 38px; height: 38px; cursor: pointer; font-weight: 700; }
.reader-controls button:hover { border-color: var(--accent); color: var(--accent); }
.chapter-head { max-width: 720px; margin: 80px auto 46px; }
.chapter-label { color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.chapter-title { font-size: clamp(2.7rem, 7vw, 5.3rem); font-weight: 500; }
.reader-content { max-width: 720px; margin: 0 auto; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: var(--reader-size); line-height: 1.85; }
.reader-content p { margin: 0 0 1.35em; }
.reader-content h2, .reader-content h3 { line-height: 1.2; margin-top: 2em; }
.reader-content blockquote { margin: 2em 0; padding-left: 1.2em; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.reader-content img { margin: 2em auto; border-radius: 4px; }

.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 99; }
.chapter-nav { max-width: 720px; margin: 70px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chapter-nav a { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.chapter-nav a:last-child { text-align: right; }
.chapter-nav small { display: block; color: var(--muted); margin-bottom: 4px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 30px 0 44px; font-size: .9rem; }
.empty-state { padding: 50px 0 100px; color: var(--muted); }

@media (max-width: 800px) {
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .book-hero { grid-template-columns: 1fr; }
  .book-hero .book-cover-wrap { max-width: 290px; }
  .header-nav { display: flex; }
}

@media (max-width: 520px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 45px; }
  .books-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .book-card h3 { font-size: 1.05rem; margin-top: 12px; }
  .book-card p { font-size: .88rem; }
  .reader-topbar { top: 8px; border-radius: 18px; }
  .reader-book-link { max-width: 42vw; font-size: .88rem; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a:last-child { text-align: left; }
}

/* Galería de pinturas: presenta las fotografías sin recortarlas. */
.section-link { color: var(--accent); white-space: nowrap; font-size: .94rem; font-weight: 700; }
.section-head-art { border-top: 1px solid var(--line); padding-top: 62px; margin-top: 0; }
.section-head-art .eyebrow { margin-bottom: 5px; }
.paintings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; padding-bottom: 90px; }
.painting-card { min-width: 0; display: block; }
.painting-image-wrap { aspect-ratio: 5 / 4; background: var(--surface); padding: 14px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.painting-card:hover .painting-image-wrap { transform: translateY(-4px); box-shadow: var(--shadow); }
.painting-image-wrap .painting-image { height: 100%; width: 100%; object-fit: contain; display: block; }
.painting-image-placeholder { min-height: 200px; height: 100%; width: 100%; display: grid; place-items: center; padding: 25px; font-family: Georgia, serif; color: var(--muted); text-align: center; background: repeating-linear-gradient(130deg, var(--surface), var(--surface) 16px, var(--bg) 16px, var(--bg) 32px); }
.painting-card h2, .painting-card h3 { margin: 15px 0 3px; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.25; font-weight: 500; }
.painting-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.paintings-archive { padding-bottom: 25px; }
.navigation.pagination { margin-bottom: 70px; }
.nav-links { display: flex; gap: 15px; flex-wrap: wrap; }
.nav-links .current { color: var(--accent); font-weight: 700; }
.painting-breadcrumb { margin-top: 32px; color: var(--muted); font-size: .95rem; }
.painting-detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .8fr); gap: clamp(32px, 5vw, 90px); padding: 32px 0 100px; align-items: start; }
.painting-feature { min-width: 0; }
.painting-feature-button { display: block; width: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; cursor: zoom-in; }
.painting-feature-image { display: block; width: 100%; max-height: min(75vh, 900px); height: auto; object-fit: contain; }
.painting-zoom-hint { color: var(--muted); font-size: .84rem; text-align: center; margin-top: 11px; }
.painting-info { min-width: 0; padding-top: 15px; }
.painting-title { font-family: Georgia, serif; font-size: clamp(2.3rem, 4.5vw, 4.5rem); line-height: 1.12; font-weight: 500; margin: 14px 0 23px; }
.painting-series { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; }
.painting-series span { padding: 3px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: .83rem; color: var(--muted); }
.painting-metadata { border-block: 1px solid var(--line); padding: 12px 0; margin: 20px 0 32px; }
.painting-metadata:empty { display: none; }
.painting-metadata > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 7px 0; }
.painting-metadata dt { color: var(--muted); }
.painting-metadata dd { margin: 0; }
.painting-detail-content { color: var(--text); font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.75; }
.painting-detail-content .wp-block-gallery { margin: 30px 0; }
.painting-detail-content figure img { height: auto; }
.art-lightbox { position: fixed; inset: 0; width: min(96vw, 1600px); max-width: none; height: min(94vh, 1100px); max-height: none; padding: 40px 16px 16px; margin: auto; border: none; border-radius: 6px; background: var(--surface); color: var(--text); box-shadow: 0 22px 70px rgba(0,0,0,.38); }
.art-lightbox::backdrop { background: rgba(0,0,0,.84); }
.art-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.art-lightbox img { max-width: 100%; min-height: 0; max-height: calc(100% - 35px); object-fit: contain; }
.art-lightbox figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.art-lightbox-close { position: absolute; right: 10px; top: 8px; width: 34px; height: 32px; border: none; border-radius: 99px; background: var(--bg); color: var(--text); cursor: pointer; }
@media (max-width: 800px) {
  .paintings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
  .painting-detail-layout { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-nav { display: flex; gap: 18px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .paintings-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .painting-image-wrap { padding: 7px; }
  .painting-card h2, .painting-card h3 { font-size: 1.1rem; }
  .painting-card p { font-size: .8rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-head-art { padding-top: 40px; }
  .painting-feature-button { padding: 10px; }
  .art-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* v1.2: acciones para leer online o descargar el libro completo */
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.book-actions .start-reading { margin-top: 0; }
.book-pdf-download { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: transparent; font-weight: 700; transition: background .15s ease, color .15s ease; }
.book-pdf-download:hover, .book-pdf-download:focus-visible { background: var(--accent); color: var(--surface); }
.book-pdf-download > span { font-size: 1.26em; line-height: 1; }
.pdf-hint { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
@media (max-width: 520px) { .book-actions { align-items: stretch; } .book-actions > a { width: 100%; justify-content: center; } }

/* v1.3 — Portada editorial: presentación, retrato e índice visual */
:root { --ink-soft: #988a79; --panel-warm: #eee4d7; }
html[data-theme="dark"] { --ink-soft: #a69b8b; --panel-warm: #332b25; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.author-hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(290px, .86fr); gap: clamp(35px, 6.5vw, 94px); align-items: center; padding: 65px 0 104px; }
.author-hero-text { min-width: 0; }
.hero-pretitle { margin: 30px 0 0; color: var(--muted); font-size: 1.1rem; font-family: Georgia, serif; font-style: italic; }
.author-hero h1 { max-width: 620px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(3.5rem, 6.1vw, 6.2rem); font-weight: 500; line-height: .99; letter-spacing: -.055em; margin: 9px 0 29px; overflow-wrap: anywhere; }
.author-hero-intro { max-width: 535px; font-size: clamp(1.09rem, 1.5vw, 1.25rem); line-height: 1.85; color: var(--muted); white-space: pre-line; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.hero-primary-action { background: var(--accent-strong); color: var(--surface); border: 1px solid var(--accent-strong); padding: 14px 23px; border-radius: 3px; display: inline-flex; align-items: center; gap: 22px; font-weight: 650; }
.hero-primary-action:hover { color: white; background: var(--accent); border-color: var(--accent); }
.hero-secondary-action { color: var(--text); border-bottom: 1px solid var(--text); padding: 9px 0 5px; display: inline-flex; align-items: center; gap: 15px; font-weight: 600; }
.hero-secondary-action:hover { color: var(--accent); border-color: var(--accent); }
.hero-bottom-note { display: flex; align-items: center; gap: 13px; font-size: .8rem; color: var(--muted); margin-top: 58px; letter-spacing: .075em; text-transform: uppercase; }
.hero-bottom-line { height: 1px; width: 35px; background: var(--accent); display: inline-block; }
.author-hero-portrait { margin: 0; padding: 12px 12px 17px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 35px 72px rgba(65, 49, 36, .12); transform: rotate(1deg); }
.author-portrait-inner { height: auto; aspect-ratio: 4 / 4.9; overflow: hidden; background: #d8c5ae; }
.author-portrait-image { display: block; height: 100%; width: 100%; object-fit: cover; object-position: center 30%; }
.author-hero-portrait figcaption { display: flex; align-items: center; gap: 9px; padding: 14px 10px 1px; font-size: .76rem; color: var(--muted); letter-spacing: .02em; }
.portrait-caption-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.author-portrait-placeholder { width: 100%; height: 100%; min-height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; background: radial-gradient(circle at 75% 25%, rgba(255,255,255,.32), transparent 35%), linear-gradient(140deg,#bda68d,#826d5b 68%,#685547); color: #fff7e8; }
.placeholder-monogram { font-family: Georgia, serif; font-size: clamp(6rem, 13vw, 10rem); font-style: italic; line-height: 1; opacity: .8; }
.placeholder-caption { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.gateway-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 52%, var(--bg)); padding: 71px 0 90px; scroll-margin-top: 24px; }
.gateway-section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin: 0 0 33px; }
.gateway-section-head h2 { font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.35rem); line-height: 1.1; font-weight: 500; margin: 12px 0 0; letter-spacing: -.025em; }
.gateway-section-head > p { color: var(--muted); max-width: 335px; line-height: 1.7; margin: 0; }
.gateway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gateway-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.gateway-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gateway-visual { position: relative; width: 100%; aspect-ratio: 1.35; overflow: hidden; display: grid; place-items: center; }
.gateway-visual-count { position: absolute; top: 16px; left: 19px; font-size: .7rem; letter-spacing: .17em; font-weight: 750; z-index: 2; }
.gateway-visual-literature { background: #d4bca2; color: #62472e; }
.gateway-visual-art { background: #b5c5b7; color: #3b554b; }
.gateway-visual-author { background: #d7c5b3; color: #63452f; }
.gateway-book-stack { display: flex; align-items: end; justify-content: center; width: 66%; height: 75%; margin-top: 32px; transform: rotate(-7deg); filter: drop-shadow(8px 16px 13px rgba(52,35,20,.17)); }
.gateway-book-stack span { display: block; height: 83%; width: 29%; border-radius: 3px 7px 3px 3px; border-left: 4px solid rgba(0,0,0,.1); border-right: 3px solid rgba(255,255,255,.17); margin-right: 4px; background: #8e4c3c; }
.gateway-book-stack span:nth-child(2) { height: 97%; background: #e9dfcd; border-bottom: 10px solid #615c50; }
.gateway-book-stack span:nth-child(3) { height: 76%; background: #54635a; }
.gateway-book-cover { display: grid; place-items: center; width: 59%; height: 84%; margin-top: 28px; filter: drop-shadow(9px 14px 9px rgba(0,0,0,.18)); transform: rotate(-4deg); }
.gateway-book-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gateway-art-frame { width: 65%; height: 76%; margin-top: 23px; background: #f9f3e6; border: 9px solid #eadcc6; outline: 1px solid rgba(55,60,45,.25); display: grid; place-items: center; box-shadow: 11px 15px 15px rgba(43,63,52,.17); transform: rotate(3deg); overflow: hidden; }
.gateway-art-frame img { max-width: 100%; max-height: 100%; height: auto; width: auto; object-fit: contain; }
.gateway-art-abstract { position: relative; background: #e7d3b4; overflow: hidden; }
.art-sun { display: block; width: 31%; aspect-ratio: 1; background: #ce9270; border-radius: 50%; position: absolute; left: 45%; top: 19%; }
.art-hill { display: block; width: 120%; height: 60%; position: absolute; bottom: -23%; transform: rotate(-12deg); border-radius: 40% 60% 0 0; }
.art-hill-one { background: #a2a892; left: -30%; bottom: -10%; }
.art-hill-two { background: #5e7f76; left: 19%; bottom: -35%; transform: rotate(16deg); }
.gateway-author-portrait { overflow: hidden; width: 56%; height: 74%; margin-top: 30px; border: 7px solid #ede1d0; box-shadow: 12px 14px 14px rgba(52,35,20,.15); transform: rotate(5deg); }
.gateway-author-image { display: block; height: 100%; width: 100%; object-fit: cover; }
.gateway-author-portrait .author-portrait-placeholder { min-height: 100%; }
.gateway-author-portrait .placeholder-monogram { font-size: clamp(4rem, 8vw, 7rem); }
.gateway-author-portrait .placeholder-caption { font-size: .55rem; }
.gateway-handwriting { position: absolute; bottom: 12px; right: 13px; font-style: italic; font-family: Georgia, serif; font-size: 1rem; transform: rotate(-6deg); }
.gateway-card-copy { display: flex; flex: 1; flex-direction: column; padding: 24px 25px 27px; }
.gateway-category { font-size: .71rem; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; color: var(--accent); }
.gateway-card h3 { margin: 7px 0 10px; font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.18; font-weight: 500; font-family: Georgia, serif; }
.gateway-card p { color: var(--muted); font-size: .91rem; line-height: 1.7; margin: 0 0 27px; }
.gateway-link { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; font-weight: 750; color: var(--accent); }
.gateway-link span { font-size: 1.2rem; }
.home-collection { padding-top: 70px; }
.home-collection .section-head { margin-top: 0; }
.home-collection .books-grid { padding-bottom: 70px; }
.home-collection-paintings { padding-top: 0; }
.home-collection-paintings .paintings-grid { padding-bottom: 78px; }
.author-about-teaser { scroll-margin-top: 30px; border-top: 1px solid var(--line); padding: 75px 0 100px; text-align: center; display: flex; align-items: center; flex-direction: column; }
.author-about-teaser h2 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.2; max-width: 650px; margin: 13px 0 17px; }
.author-about-teaser p { max-width: 670px; color: var(--muted); white-space: pre-line; font-size: 1.04rem; margin: 0 0 22px; line-height: 1.8; }
.page-shell { min-height: 60vh; padding-top: 65px; padding-bottom: 100px; }
.about-page { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 95px); align-items: start; }
.about-page-portrait { background: var(--surface); padding: 12px; border: 1px solid var(--line); aspect-ratio: 4/5; }
.about-page-copy h1, .regular-page h1 { font-family: Georgia,serif; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1.08; font-weight: 500; margin: 13px 0 25px; }
.page-content { font-family: Georgia,serif; font-size: clamp(1.1rem, 1.6vw, 1.27rem); line-height: 1.85; }
.page-content p { margin-top: 0; margin-bottom: 1.15em; }
.page-content figure { margin-inline: 0; }
.page-content img { max-width: 100%; height: auto; }
.about-page-copy .section-link { display: inline-flex; margin-top: 26px; }
.regular-page { max-width: 820px; margin: 0 auto; }
.header-nav-links { display: flex; gap: 22px; align-items: center; padding: 0; margin: 0; list-style: none; }
.header-nav-links li { list-style: none; }
@media (max-width: 900px) {
  .author-hero { grid-template-columns: minmax(0,1fr) minmax(230px,.78fr); gap: 35px; padding: 50px 0 75px; }
  .author-hero h1 { font-size: clamp(3rem, 6vw, 5rem); }
  .gateway-grid { gap: 12px; }
  .gateway-card-copy { padding: 20px 18px 22px; }
  .gateway-section-head { align-items: start; }
  .gateway-section-head > p { max-width: 240px; }
}
@media (max-width: 720px) {
  .author-hero { grid-template-columns: 1fr; padding: 34px 0 72px; gap: 34px; }
  .author-hero-portrait { width: min(100%, 425px); margin: 0 auto; transform: rotate(.5deg); }
  .author-hero h1 { max-width: 600px; font-size: clamp(3.2rem, 12vw, 5.6rem); }
  .hero-pretitle { margin-top: 22px; }
  .hero-bottom-note { margin-top: 35px; }
  .gateway-section { padding: 54px 0 65px; }
  .gateway-section-head { flex-direction: column; gap: 13px; }
  .gateway-section-head > p { max-width: 100%; }
  .gateway-grid { grid-template-columns: 1fr; gap: 18px; }
  .gateway-card { display: grid; grid-template-columns: minmax(115px, .75fr) minmax(0, 1.25fr); }
  .gateway-visual { height: 100%; min-height: 205px; aspect-ratio: auto; }
  .gateway-card-copy { padding: 18px 19px; }
  .gateway-card p { font-size: .88rem; margin-bottom: 13px; }
  .gateway-visual-count { top: 12px; left: 10px; font-size: .63rem; }
  .gateway-card h3 { font-size: 1.6rem; }
  .gateway-handwriting { display: none; }
  .about-page { grid-template-columns: 1fr; }
  .about-page-portrait { width: min(100%, 430px); }
}
@media (max-width: 430px) {
  .author-hero h1 { font-size: clamp(2.85rem, 13vw, 4.3rem); }
  .author-hero-intro { font-size: 1.04rem; }
  .hero-actions { gap: 15px; }
  .hero-primary-action { padding: 12px 15px; }
  .gateway-card { grid-template-columns: 38% 62%; }
  .gateway-visual { min-height: 215px; }
  .gateway-book-stack { width: 76%; }
  .gateway-book-cover { width: 80%; }
  .gateway-art-frame { width: 77%; border-width: 5px; }
  .gateway-author-portrait { width: 77%; border-width: 4px; }
  .gateway-card-copy { padding: 15px; }
  .gateway-card h3 { font-size: 1.43rem; }
  .gateway-card p { font-size: .82rem; }
  .gateway-link { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) { .gateway-card, .book-cover-wrap, .painting-image-wrap { transition: none; } }
