/*
Theme Name: Riley Locke — The Romance Review
Theme URI: https://rileylocke.net
Author: Riley Locke
Author URI: https://rileylocke.net
Description: A bespoke magazine theme for The Romance Review — a working novelist's take on the romance genre. Art Nouveau line-work meets Dark Romanticism: warm ivory grounds, deep aubergine, and tarnished gold. Built for owned publishing, not rented feeds.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rileylocke
Tags: blog, news, custom-menu, featured-images, threaded-comments, editor-style, one-column, two-columns, right-sidebar
*/

/* ============================================================
   DESIGN TOKENS
   Anchors locked from the publication's visual system:
   ivory #EDEAE2 · aubergine #4A2545 · Alegreya + Inter.
   Everything else is derived to hold the Art Nouveau +
   Dark Romanticism direction (tarnished gold, chiaroscuro,
   wilting botanical line-work). Standing rule: no red.
   ============================================================ */
/* ---- Self-hosted fonts (SIL OFL — see assets/fonts/) ---- */
@font-face {
  font-family: 'Alegreya';
  src: url('assets/fonts/Alegreya.ttf') format('truetype');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alegreya';
  src: url('assets/fonts/Alegreya-Italic.ttf') format('truetype');
  font-weight: 400 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter.ttf') format('truetype');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --bg:            #EDEAE2;   /* warm ivory page ground        */
  --bg-card:       #F3F0E9;   /* card / raised surface          */
  --bg-sink:       #E4DFD4;   /* recessed panels                */
  --ink:           #211A21;   /* plum-black text & dark grounds */
  --ink-90:        #2B222B;
  --aubergine:     #4A2545;   /* primary accent                 */
  --aubergine-lo:  #351A32;   /* darker plum for dark grounds   */
  --aubergine-hi:  #6A3A61;   /* lifted plum for hovers on dark */
  --gold:          #A07C3C;   /* tarnished gold                 */
  --gold-hi:       #C1A05A;   /* lit gold for fine line-work    */
  --muted:         #6E6068;   /* mauve-grey meta text           */
  --line:          #D6CDBF;   /* hairline on light ground       */
  --line-gold:     rgba(160, 124, 58, 0.38);

  --font-display: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 42rem;    /* reading width ~ 672px */
  --wrap:    75rem;    /* page width 1200px     */
  --gutter:  clamp(1.15rem, 4vw, 2.75rem);

  --step-hero:  clamp(2.6rem, 1.6rem + 4.4vw, 4.1rem);
  --step-h1:    clamp(2.05rem, 1.5rem + 2.6vw, 3.1rem);
  --step-h2:    clamp(1.5rem, 1.25rem + 1.2vw, 2.05rem);
  --step-h3:    clamp(1.2rem, 1.08rem + 0.6vw, 1.45rem);
  --step-body:  1.075rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aubergine); text-decoration-thickness: 1px; text-underline-offset: 0.14em; transition: color 0.18s var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1.25em; }

::selection { background: var(--aubergine); color: var(--bg); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--aubergine); color: #fff; padding: 0.7em 1.1em;
  font-family: var(--font-body); font-size: 0.85rem; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { width: 100%; max-width: var(--measure); margin-inline: auto; }

/* ============================================================
   ORNAMENT (the signature Art Nouveau line-work)
   ============================================================ */
.ornament { display: block; color: var(--gold); }
.ornament svg { display: block; width: 100%; height: auto; }
.ornament--divider { max-width: 190px; margin: 2.25rem auto; opacity: 0.92; }
.ornament--flourish { max-width: 120px; margin: 1rem auto 0; }
.ornament--footer { max-width: 210px; margin: 0 auto 1.75rem; color: var(--gold-hi); opacity: 0.85; }

/* ============================================================
   SITE HEADER / MASTHEAD
   ============================================================ */
.site-header {
  border-top: 3px solid var(--aubergine);
  background:
    linear-gradient(180deg, rgba(74,37,69,0.04), rgba(74,37,69,0) 70%),
    var(--bg);
}
.masthead { text-align: center; padding: 2.4rem 0 1.5rem; }
.masthead__kicker {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 0.55rem;
}
.masthead__title { margin: 0; }
.masthead__title a { color: var(--ink); text-decoration: none; }
.masthead__title a:hover { color: var(--aubergine); }
.site-title-text { font-size: var(--step-hero); font-weight: 800; letter-spacing: -0.02em; display: block; }
.masthead__tagline {
  font-family: var(--font-display); font-style: italic; color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); margin: 0.35rem 0 0;
}

/* primary nav */
.primary-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.primary-nav__inner { display: flex; justify-content: center; }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.4rem); list-style: none; margin: 0; padding: 0.85rem 0; }
.primary-nav a {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--aubergine); border-bottom-color: var(--gold); }

/* sections strip */
.section-nav { background: var(--bg-sink); border-bottom: 1px solid var(--line); }
.section-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.75rem, 2.5vw, 1.9rem); list-style: none; margin: 0; padding: 0.6rem 0; }
.section-nav a {
  font-family: var(--font-body); font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.section-nav a:hover { color: var(--aubergine); }

/* ============================================================
   HERO / HOME WELCOME
   ============================================================ */
.hero { text-align: center; padding: clamp(2.5rem, 6vw, 4.25rem) 0 1rem; }
.hero__title { font-size: var(--step-h1); max-width: 20ch; margin-inline: auto; }
.hero__lede { font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.3rem); color: var(--ink-90); max-width: 52ch; margin: 1rem auto 0; line-height: 1.65; }
.hero__meta { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 1.4rem; }

/* ============================================================
   SECTION BLOCKS + CARD GRID
   ============================================================ */
.section-block { padding: 2.5rem 0 0.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 1.6rem; }
.section-head__title { margin: 0; font-size: var(--step-h2); }
.section-head__title a { color: var(--ink); text-decoration: none; }
.section-head__title a:hover { color: var(--aubergine); }
.section-head__more { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; text-decoration: none; }
.section-head__more:hover { color: var(--aubergine); }
.section-blurb { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1.08rem; margin: -0.8rem 0 1.6rem; max-width: 60ch; }

.card-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

/* ============================================================
   CARD
   ============================================================ */
.card { display: flex; flex-direction: column; }
.card__eyebrow { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.card__eyebrow a { color: var(--gold); text-decoration: none; }
.card__eyebrow a:hover { color: var(--aubergine); }
.card__thumb { margin-bottom: 0.9rem; overflow: hidden; border: 1px solid var(--line); }
.card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.035); }
.card__title { font-size: 1.35rem; line-height: 1.18; margin: 0 0 0.5rem; }
.card__title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease), color 0.18s var(--ease); padding-bottom: 1px; }
.card__title a:hover { color: var(--aubergine); background-size: 100% 1px; }
.card__excerpt { color: var(--ink-90); font-size: 0.98rem; line-height: 1.6; margin: 0 0 0.75rem; }
.card__meta { margin-top: auto; font-family: var(--font-body); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }

.badge-members { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 999px; padding: 0.12rem 0.55rem; vertical-align: middle; }
.badge-members svg { width: 0.72em; height: 0.72em; }

/* ============================================================
   SINGLE ENTRY
   ============================================================ */
.entry { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.entry-header { text-align: center; margin-bottom: 2rem; }
.entry-eyebrow { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.entry-eyebrow a { color: var(--gold); text-decoration: none; }
.entry-eyebrow a:hover { color: var(--aubergine); }
.entry-title { font-size: var(--step-h1); max-width: 24ch; margin: 0 auto 0.9rem; }
.entry-meta { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--aubergine); }
.entry-hero-img { margin: 2rem 0; border: 1px solid var(--line); }

.entry-content { font-size: 1.14rem; line-height: 1.8; color: var(--ink-90); }
.entry-content > * { max-width: var(--measure); margin-inline: auto; }
.entry-content h2 { font-size: var(--step-h2); margin: 2.2rem auto 0.7rem; color: var(--ink); }
.entry-content h3 { font-size: var(--step-h3); margin: 1.8rem auto 0.6rem; color: var(--ink); }
.entry-content p { margin: 0 auto 1.35em; }
.entry-content a { color: var(--aubergine); text-decoration: underline; }
.entry-content a:hover { color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 auto 1.35em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { margin: 2rem auto; border: 1px solid var(--line); }
.entry-content figure { margin: 2rem auto; }
.entry-content figcaption { font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

/* drop cap — first paragraph only, that gothic editorial touch */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 800;
  font-size: 3.4em; line-height: 0.72; float: left;
  padding: 0.06em 0.1em 0 0; margin-right: 0.04em; color: var(--aubergine);
}

.entry-content blockquote {
  border: none; margin: 2rem auto; padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.32rem; line-height: 1.5; color: var(--aubergine);
}
.entry-content blockquote p { margin-bottom: 0.6em; }

.entry-footer { max-width: var(--measure); margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-tags { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); }
.entry-tags a { display: inline-block; color: var(--aubergine); text-decoration: none; margin-right: 0.5rem; }
.entry-tags a::before { content: "#"; color: var(--gold); }

/* members gate (visual only; real gating needs a membership plugin) */
.members-gate { max-width: var(--measure); margin: 2rem auto; padding: 2rem; text-align: center; background: var(--bg-card); border: 1px solid var(--line-gold); border-radius: 6px; }
.members-gate h3 { color: var(--aubergine); }
.members-gate p { color: var(--ink-90); margin-bottom: 1.3rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 0.85rem 1.7rem; border-radius: 3px; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); border: 1px solid var(--aubergine); }
.btn--primary { background: var(--aubergine); color: var(--bg); }
.btn--primary:hover { background: var(--aubergine-lo); color: #fff; border-color: var(--aubergine-lo); }
.btn--ghost { background: transparent; color: var(--aubergine); }
.btn--ghost:hover { background: var(--aubergine); color: var(--bg); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--ink); }

/* ============================================================
   BOOKS PAGE
   ============================================================ */
.books-intro { text-align: center; padding: clamp(1.5rem, 4vw, 2.5rem) 0 0.5rem; }
.book { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: none; }
.book__cover { border: 1px solid var(--line); background: var(--bg-sink); aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center; text-align: center; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover-placeholder { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 1rem; }
.book__status { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.book__title { font-size: var(--step-h2); margin: 0 0 0.2rem; }
.book__series-note { font-family: var(--font-display); font-style: italic; color: var(--muted); margin: 0 0 1rem; }
.book__desc { color: var(--ink-90); }
.book__titles { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.book__titles li { font-family: var(--font-display); font-size: 1.05rem; padding: 0.35rem 0; border-bottom: 1px dotted var(--line); }
.book__titles li::before { content: "❦"; color: var(--gold); margin-right: 0.6rem; }
.book__buy { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.book__buy .btn { padding: 0.6rem 1.15rem; font-size: 0.74rem; }

/* ============================================================
   SUBSCRIBE PAGE
   ============================================================ */
.subscribe-hero { text-align: center; padding: clamp(2rem, 5vw, 3rem) 0 1rem; }
.subscribe-tiers { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin-top: 1rem; }
.tier { background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; padding: 2rem; }
.tier--paid { border-color: var(--line-gold); }
.tier__name { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.tier__price { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 0.9rem; }
.tier__desc { color: var(--ink-90); font-size: 0.98rem; margin-bottom: 1.4rem; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.subscribe-form input[type="email"] { flex: 1 1 14rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); }
.subscribe-form input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.subscribe-note { font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }

/* ============================================================
   GENERIC PAGE / ABOUT / CONTACT
   ============================================================ */
.page-header { text-align: center; padding: clamp(2rem, 5vw, 3.25rem) 0 0.5rem; }
.page-title { font-size: var(--step-h1); }
.page-content { font-size: 1.12rem; line-height: 1.78; color: var(--ink-90); padding-bottom: 2.5rem; }
.page-content > * { max-width: var(--measure); margin-inline: auto; }
.page-content h2 { font-size: var(--step-h2); margin: 2rem auto 0.6rem; }
.page-content a { color: var(--aubergine); text-decoration: underline; }
.page-content a:hover { color: var(--gold); }
.contact-email { text-align: center; }
.contact-email a { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1.4vw, 2rem); color: var(--aubergine); text-decoration: none; border-bottom: 2px solid var(--line-gold); }
.contact-email a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============================================================
   PAGINATION / ARCHIVE HEADER
   ============================================================ */
.archive-header { text-align: center; padding: clamp(2rem, 5vw, 3rem) 0 0.5rem; }
.archive-eyebrow { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.archive-title { font-size: var(--step-h1); }
.archive-desc { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1.12rem; max-width: 56ch; margin: 0.6rem auto 0; }

.pagination { display: flex; justify-content: center; gap: 0.4rem; margin: 3rem 0 1rem; flex-wrap: wrap; }
.pagination .page-numbers { font-family: var(--font-body); font-size: 0.9rem; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 3px; color: var(--aubergine); text-decoration: none; min-width: 2.6rem; text-align: center; }
.pagination .page-numbers.current { background: var(--aubergine); color: var(--bg); border-color: var(--aubergine); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { max-width: var(--measure); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comments-title { font-size: var(--step-h3); margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 1.5rem; }
.comment-body { background: var(--bg-card); border: 1px solid var(--line); border-radius: 5px; padding: 1.1rem 1.3rem; }
.comment-author { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; }
.comment-meta { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-respond { margin-top: 2rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); margin-bottom: 0.8rem;
}
.comment-form textarea:focus, .comment-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 4rem; background: var(--ink); color: #D9CFD4; }
.site-footer a { color: var(--gold-hi); }
.site-footer a:hover { color: #fff; }
.site-footer__inner { text-align: center; padding: 3rem 0 2.5rem; }
.site-footer__brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #F4EFE8; margin-bottom: 0.3rem; }
.site-footer__line { font-family: var(--font-display); font-style: italic; color: #B7A8AE; margin-bottom: 1.6rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.3rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.footer-nav a { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #D9CFD4; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-contact { font-family: var(--font-body); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-legal { font-family: var(--font-body); font-size: 0.75rem; color: #8E8188; letter-spacing: 0.02em; }

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.footer-social { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: 1.1rem; margin: 0 0 1.5rem; }
.footer-social a { color: var(--gold-hi); display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; display: block; }

.social-links { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: 1.1rem; margin: 1.25rem 0 0; }
.social-links a { color: var(--aubergine); display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.social-links a:hover { color: var(--gold); }
.social-links svg { width: 22px; height: 22px; display: block; }
.social-lead { text-align: center; font-family: var(--font-body); font-size: 0.86rem; color: var(--muted); margin: 2.25rem auto 0; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: var(--measure); margin: 1.5rem auto 0; }
.contact-form label { display: block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); margin: 0 0 0.4rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); margin-bottom: 1.15rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.contact-form textarea { min-height: 175px; resize: vertical; }
.contact-form .btn { margin-top: 0.2rem; }

/* honeypot — visually and functionally hidden from people, visible to bots */
.rl-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-note { max-width: var(--measure); margin: 0 auto 1.5rem; padding: 1rem 1.2rem; border-radius: 5px; font-family: var(--font-body); font-size: 0.92rem; line-height: 1.5; }
.form-note.ok { background: #E5EFE7; border: 1px solid #B8D3BF; color: #2F5D40; }
.form-note.err { background: #EFE0E4; border: 1px solid #D9B8C2; color: #7A3040; }

/* ============================================================
   EMPTY STATE (home before any posts exist)
   ============================================================ */
.empty-state { text-align: center; padding: 2rem 0 1rem; }
.empty-state__text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--muted); max-width: 48ch; margin: 0 auto 1.6rem; }

/* ============================================================
   WOOCOMMERCE (on-brand baseline for shop / cart / checkout)
   ============================================================ */
.woo-content { padding-bottom: 2.5rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--aubergine); color: var(--bg); border: 1px solid var(--aubergine); border-radius: 3px; padding: 0.7rem 1.4rem;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--aubergine-lo); color: #fff; border-color: var(--aubergine-lo);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title { font-family: var(--font-display); color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce span.price {
  color: var(--aubergine); font-family: var(--font-display); font-weight: 700;
}
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--gold); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--gold); }
.woocommerce-store-notice, p.demo_store { background: var(--aubergine); }
.woocommerce .star-rating span::before, .woocommerce p.stars a::before { color: var(--gold); }
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--aubergine); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 200px; margin-inline: auto; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .entry-content { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* WP core alignment/utility classes */
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
