/*
Theme Name: Best Book Review Guide Editorial
Theme URI: https://bestbookreviewguide.com/
Author: Best Book Review Guide
Description: A warm editorial WordPress theme for independent book reviews, reading guides and literary discovery. Built for clear navigation, accessible reading and publication trust signals.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: bbrg-editorial
*/

:root {
  --ink: #1f2420;
  --ink-soft: #505751;
  --paper: #f7f2e8;
  --paper-2: #fffdf8;
  --line: #ded5c6;
  --forest: #284b3e;
  --forest-dark: #17362d;
  --rust: #a44f38;
  --gold: #b78d42;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(31,36,32,.08);
  --content: 760px;
  --wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: .82rem 1.15rem;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
button:hover, .button:hover, input[type="submit"]:hover { background: var(--forest-dark); color: #fff; }
input[type="text"], input[type="search"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: .82rem .95rem;
}
textarea { min-height: 160px; resize: vertical; }
label { font-weight: 650; display: block; margin-bottom: .35rem; }


.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: #fff; color: #000; padding: .75rem 1rem; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wide); min-height: 74px; margin: 0 auto; padding: .72rem 1.2rem; display: flex; align-items: center; gap: 1.35rem; }
.brand { min-width: 0; flex: 1 1 auto; }
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand .custom-logo { display: block; width: auto; max-width: min(300px, 30vw); max-height: 48px; }
.brand-copy { min-width: 0; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; }
.site-title a { text-decoration: none; color: var(--ink); }
.site-tagline { margin: .16rem 0 0; max-width: 390px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .73rem; line-height: 1.2; color: var(--ink-soft); letter-spacing: .015em; }
.primary-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .18rem; }
.nav-item { position: relative; }
.nav-item > a, .browse-toggle { min-height: 42px; display: inline-flex; align-items: center; gap: .35rem; padding: .62rem .72rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-decoration: none; font: inherit; font-size: .88rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.nav-item > a:hover, .nav-item > a:focus-visible, .browse-toggle:hover, .browse-toggle:focus-visible, .nav-item.is-current > a, .nav-item.is-current > .browse-toggle { color: var(--rust); background: rgba(164,79,56,.07); outline: none; }
.browse-toggle svg { transition: transform .18s ease; }
.nav-item--browse.is-open .browse-toggle svg { transform: rotate(180deg); }
.browse-menu-panel { position: absolute; top: calc(100% + .55rem); right: 0; width: min(520px, calc(100vw - 2rem)); padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; visibility: hidden; opacity: 0; transform: translateY(-5px); pointer-events: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 45px rgba(36,39,34,.13); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.nav-item--browse.is-open .browse-menu-panel, .nav-item--browse:focus-within .browse-menu-panel { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.browse-menu-column { min-width: 0; }
.browse-menu-label { margin: 0 0 .38rem; padding: 0 .5rem; color: var(--ink-soft); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.browse-menu-column a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .58rem .5rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 650; line-height: 1.25; }
.browse-menu-column a:hover, .browse-menu-column a:focus-visible { background: var(--paper); color: var(--rust); outline: none; }
.browse-menu-column a span { color: var(--ink-soft); font-size: .69rem; font-weight: 500; }
.browse-menu-column .browse-menu-all { margin-top: .25rem; color: var(--forest); font-weight: 750; }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .42rem; }
.header-search-toggle, .menu-toggle { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--ink); }
.header-search-toggle:hover, .header-search-toggle:focus-visible, .menu-toggle:hover, .menu-toggle:focus-visible { background: var(--paper); border-color: #cfc3b2; outline: none; }
.menu-toggle { display: none; }
.menu-toggle-lines { width: 17px; height: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-toggle-lines span { width: 100%; height: 1.5px; display: block; background: currentColor; border-radius: 999px; transform-origin: center; transition: transform .18s ease, translate .18s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { translate: 0 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { translate: 0 -5.25px; transform: rotate(-45deg); }
.header-search { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.header-search.is-open { display: block; }
.header-search-inner { max-width: 760px; margin: 0 auto; padding: 1.05rem 1.2rem 1.15rem; }
.header-search-label { margin: 0 0 .55rem; color: var(--ink-soft); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.header-search .search-form { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.search-form label { margin: 0; }
.search-form .search-field { height: 48px; }
.search-form .search-submit { border-radius: 12px; min-width: 100px; }

.site-main { min-height: 60vh; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.2rem; }
.content-wrap { max-width: var(--content); margin: 0 auto; padding: 0 1.2rem; }
.section { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.section-sm { padding: 2.3rem 0; }
.section-kicker { margin: 0 0 .55rem; color: var(--rust); text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; font-weight: 800; }
.section-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.06; margin: 0 0 1rem; }
.section-intro { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.7rem; }
.section-head .section-title { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.text-link { font-weight: 750; text-decoration: none; white-space: nowrap; }

.home-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.6rem, 6vw, 5.4rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.035em; margin: .5rem 0 1rem; max-width: 850px; }
.hero-copy p { max-width: 680px; font-size: clamp(1.03rem, 1.5vw, 1.2rem); color: var(--ink-soft); margin-bottom: 1.5rem; }
.hero-search { display: grid; grid-template-columns: 1fr auto; gap: .55rem; max-width: 640px; margin: 1.35rem 0 0; }
.hero-search .search-field { min-height: 54px; box-shadow: 0 6px 18px rgba(31,36,32,.05); }
.hero-search .search-submit { min-width: 120px; border-radius: 12px; }
.hero-feature { position: relative; }
.hero-feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.hero-cover { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 13px; background: #ebe4d7; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-cover-placeholder { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-family: Georgia, serif; font-size: 1.4rem; padding: 1.5rem; }
.hero-feature-body { padding: 1rem .15rem .15rem; }
.hero-feature-body .eyebrow { color: var(--rust); font-size: .72rem; text-transform: uppercase; font-weight: 800; letter-spacing: .13em; }
.hero-feature-body h2 { font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.15; margin: .4rem 0 .55rem; }
.hero-feature-body h2 a { color: var(--ink); text-decoration: none; }
.hero-feature-body p { color: var(--ink-soft); margin: 0; font-size: .95rem; line-height: 1.55; }

.editorial-strip { background: var(--forest); color: #fff; }
.editorial-strip .wrap { display: grid; grid-template-columns: .7fr 1.3fr auto; gap: 1.5rem; align-items: center; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.editorial-strip strong { font-family: Georgia, serif; font-size: 1.15rem; }
.editorial-strip p { margin: 0; color: rgba(255,255,255,.82); font-size: .93rem; }
.editorial-strip a { color: #fff; font-weight: 750; white-space: nowrap; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.35rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-media { aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; display: block; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 1.2rem; text-align: center; font-family: Georgia, serif; color: var(--ink-soft); }
.post-card-body { padding: 1.15rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem .65rem; align-items: center; color: var(--ink-soft); font-size: .77rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.card-meta a { color: var(--rust); text-decoration: none; }
.post-card h3 { font-family: Georgia, serif; margin: .45rem 0 .55rem; font-size: 1.4rem; line-height: 1.18; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--ink-soft); margin: 0 0 .9rem; font-size: .94rem; line-height: 1.58; }
.card-link { margin-top: auto; font-weight: 750; text-decoration: none; }

.featured-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.4rem; }
.featured-primary { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.featured-primary .media { aspect-ratio: 16 / 8.8; overflow: hidden; }
.featured-primary .media img { width: 100%; height: 100%; object-fit: cover; }
.featured-primary .body { padding: 1.45rem; }
.featured-primary h3 { font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.08; margin: .5rem 0 .7rem; }
.featured-primary h3 a { text-decoration: none; color: var(--ink); }
.featured-stack { display: grid; gap: 1rem; }
.featured-mini { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; background: var(--white); }
.featured-mini .media { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; background: var(--paper); }
.featured-mini .media img { width: 100%; height: 100%; object-fit: cover; }
.featured-mini h4 { font-family: Georgia, serif; margin: .28rem 0; font-size: 1.08rem; line-height: 1.25; }
.featured-mini h4 a { color: var(--ink); text-decoration: none; }

.browse-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .9rem; }
.browse-card { min-height: 155px; padding: 1.2rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); }
.browse-card:hover { background: #f0e8da; color: var(--ink); }
.browse-card span { color: var(--rust); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.browse-card strong { font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.15; }
.browse-card small { color: var(--ink-soft); }

.newsletter-panel { background: var(--forest-dark); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3.2rem); display: grid; grid-template-columns: 1fr .9fr; gap: 2rem; align-items: center; }
.newsletter-panel h2 { font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0 0 .7rem; line-height: 1.05; }
.newsletter-panel p { color: rgba(255,255,255,.8); margin: 0; }
.newsletter-note { font-size: .82rem; margin-top: .7rem !important; }

.archive-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: 3.5rem 0 2.8rem; }
.archive-header h1 { font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; margin: 0 0 .7rem; }
.archive-description { max-width: 760px; color: var(--ink-soft); }
.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.page-numbers.current { background: var(--forest); color: #fff; border-color: var(--forest); }

.article-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.3rem, 6vw, 5rem) 0 2.4rem; }
.article-header-inner { max-width: 960px; margin: 0 auto; padding: 0 1.2rem; text-align: center; }
.article-kicker { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: .8rem; }
.pill { display: inline-flex; align-items: center; padding: .35rem .65rem; background: rgba(40,75,62,.08); border: 1px solid rgba(40,75,62,.13); color: var(--forest); border-radius: 999px; font-size: .76rem; font-weight: 750; text-decoration: none; }
.article-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5.7vw, 5.2rem); line-height: .98; letter-spacing: -.035em; margin: .6rem 0 1rem; }
.article-dek { max-width: 760px; margin: 0 auto 1rem; color: var(--ink-soft); font-size: 1.12rem; }
.article-byline { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--ink-soft); font-size: .86rem; }
.article-byline a { font-weight: 750; text-decoration: none; }

.book-review-panel { max-width: 960px; margin: -1px auto 2.3rem; padding: 1.2rem; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.book-review-top { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; }
.book-cover-small { aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: 0 10px 25px rgba(31,36,32,.09); }
.book-cover-small img { width: 100%; height: 100%; object-fit: cover; }
.book-panel-heading { margin: 0 0 .75rem; font-family: Georgia, serif; font-weight: 700; font-size: 1.08rem; }
.book-panel-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem 1rem; }
.book-panel-meta div { padding-bottom: .55rem; border-bottom: 1px solid var(--line); min-width: 0; }
.book-panel-meta span, .book-synopsis > span, .book-experience-item > span { display: block; text-transform: uppercase; color: var(--ink-soft); font-size: .69rem; letter-spacing: .08em; font-weight: 750; }
.book-panel-meta strong { display: block; font-size: .95rem; margin-top: .12rem; overflow-wrap: anywhere; }
.book-synopsis { margin-top: 1.15rem; padding: 1rem 1.05rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.book-synopsis p { margin: .35rem 0 0; line-height: 1.62; color: var(--ink); }
.book-experience { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.book-experience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1rem; }
.book-experience-item { padding: .75rem .8rem; background: #faf8f3; border-radius: 10px; }
.book-experience-item--wide { grid-column: 1 / -1; }
.book-experience-item p { margin: .25rem 0 0; font-size: .92rem; line-height: 1.5; }
.book-take { margin-top: 1rem; padding: 1rem 1.05rem; background: var(--paper); border-left: 3px solid var(--rust); border-radius: 0 10px 10px 0; }
.book-take span { display: block; color: var(--rust); text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; font-weight: 800; }
.book-take p { margin: .25rem 0 0; font-family: Georgia, serif; font-size: 1.06rem; line-height: 1.5; }
.book-disclosure { margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--content)) 240px; gap: 3rem; justify-content: center; align-items: start; padding: 2.6rem 1.2rem 5rem; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: Georgia, serif; color: var(--ink); line-height: 1.15; scroll-margin-top: 100px; }
.entry-content h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin: 2.6rem 0 .9rem; }
.entry-content h3 { font-size: 1.45rem; margin: 2rem 0 .7rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin: 0 0 1.35rem; }
.entry-content li { margin: .4rem 0; }
.entry-content blockquote { margin: 2rem 0; padding: 1.1rem 1.25rem; background: var(--paper); border-left: 4px solid var(--gold); font-family: Georgia, serif; font-size: 1.1rem; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { color: var(--ink-soft); font-size: .82rem; text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .7rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper); }
.article-rail { position: sticky; top: 100px; }
.rail-box { border-top: 3px solid var(--ink); padding-top: .8rem; margin-bottom: 1.4rem; }
.rail-box h3 { font-family: Georgia, serif; margin: 0 0 .5rem; font-size: 1.05rem; }
.rail-box p, .rail-box li { color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.rail-box ul { list-style: none; padding: 0; margin: 0; }
.rail-box li { padding: .43rem 0; border-bottom: 1px solid var(--line); }
.rail-box a { text-decoration: none; font-weight: 650; }

.ad-slot { border: 1px dashed #c8c0b4; background: #faf8f3; min-height: 90px; display: grid; place-items: center; color: #8a847c; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.5rem 0; text-align: center; padding: 1rem; }
.ad-slot:empty { display: none; }

.author-box { margin-top: 3rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: start; }
.author-avatar img { border-radius: 50%; display: block; }
.author-box h3 { font-family: Georgia, serif; margin: 0 0 .35rem; font-size: 1.25rem; }
.author-box p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.related-posts { border-top: 1px solid var(--line); padding: 3.5rem 0; }
.related-posts h2 { font-family: Georgia, serif; font-size: 2rem; }

.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 3.6rem 0 2.8rem; }
.page-hero h1 { font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; margin: 0 0 .8rem; }
.page-hero p { max-width: 760px; color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.page-content { max-width: 820px; margin: 0 auto; padding: 3rem 1.2rem 5rem; }
.page-content h2, .page-content h3 { font-family: Georgia, serif; line-height: 1.15; }
.page-content h2 { font-size: 2rem; margin-top: 2.4rem; }
.page-content h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.page-content p, .page-content li { color: #343a35; }
.policy-note { background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.1rem; border-radius: 12px; }

.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.form-status.success { background: #e7f3ec; color: #24533e; }
.form-status.error { background: #fbe9e5; color: #7b3424; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { background: #17251f; color: #f3efe7; padding-top: 3.3rem; }
.footer-grid { max-width: var(--wide); margin: 0 auto; padding: 0 1.2rem 2.5rem; display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 2rem; }
.footer-brand h2 { font-family: Georgia, serif; margin: 0 0 .7rem; font-size: 1.55rem; }
.footer-brand p { max-width: 390px; color: #c8d0cb; font-size: .91rem; }
.site-footer h3 { font-size: .77rem; text-transform: uppercase; letter-spacing: .11em; margin: 0 0 .85rem; color: #aebbb4; }
.footer-menu, .footer-list { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-list li { margin: .42rem 0; }
.site-footer a { color: #f4efe8; text-decoration: none; }
.site-footer a:hover { color: #ffdca3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom .wrap { padding-top: 1.1rem; padding-bottom: 1.1rem; display: flex; gap: 1rem; justify-content: space-between; color: #aebbb4; font-size: .78rem; }

.empty-state { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 2rem; text-align: center; }
.empty-state h2 { font-family: Georgia, serif; }

@media (max-width: 1040px) {
  .site-tagline { display: none; }
  .header-inner { flex-wrap: wrap; min-height: 68px; gap: .65rem; }
  .brand .custom-logo { max-width: min(270px, 55vw); max-height: 44px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; order: 3; flex: 0 0 100%; margin-top: .1rem; border-top: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .35rem 0 .55rem; }
  .nav-item { border-bottom: 1px solid rgba(222,213,198,.72); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-item > a, .browse-toggle { width: 100%; min-height: 47px; justify-content: space-between; padding: .72rem .25rem; border-radius: 0; font-size: .96rem; text-align: left; }
  .nav-item > a:hover, .nav-item > a:focus-visible, .browse-toggle:hover, .browse-toggle:focus-visible, .nav-item.is-current > a, .nav-item.is-current > .browse-toggle { background: transparent; }
  .browse-menu-panel { position: static; width: 100%; padding: .2rem 0 .8rem; grid-template-columns: 1fr 1fr; gap: .75rem; display: none; visibility: visible; opacity: 1; transform: none; pointer-events: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; transition: none; }
  .nav-item--browse.is-open .browse-menu-panel, .nav-item--browse:focus-within .browse-menu-panel { display: grid; }
  .browse-menu-label { padding-left: .25rem; }
  .browse-menu-column a { padding: .5rem .25rem; }
  .hero-grid, .featured-grid, .newsletter-panel { grid-template-columns: 1fr; }
  .hero-feature { max-width: 620px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .browse-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .editorial-strip .wrap { grid-template-columns: 1fr; gap: .5rem; }
  .article-layout { grid-template-columns: minmax(0, var(--content)); }
  .article-rail { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { padding: .62rem 1rem; }
  .brand .custom-logo { max-width: min(220px, 57vw); max-height: 40px; }
  .site-title { font-size: 1.13rem; }
  .header-actions { gap: .3rem; }
  .header-search-toggle, .menu-toggle { width: 38px; height: 38px; }
  .browse-menu-panel { grid-template-columns: 1fr; gap: .55rem; }
  .browse-menu-column + .browse-menu-column { padding-top: .55rem; border-top: 1px solid var(--line); }
  .post-grid, .browse-grid { grid-template-columns: 1fr; }
  .featured-mini { grid-template-columns: 92px 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: .3rem; }
  .hero-search, .header-search .search-form { grid-template-columns: 1fr; }
  .hero-search .search-submit, .header-search .search-submit { width: 100%; }
  .book-review-panel { padding: .85rem; }
  .book-review-top { grid-template-columns: 105px 1fr; gap: .9rem; }
  .book-panel-meta { grid-template-columns: 1fr; }
  .book-experience-grid { grid-template-columns: 1fr; }
  .book-experience-item--wide { grid-column: auto; }
  .book-take { grid-column: 1 / -1; }
  .article-layout { padding-left: 1rem; padding-right: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .wrap { flex-direction: column; }
}

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