/*
Theme Name: Agraphos Publishing
Theme URI: https://agraphospublishing.com
Author: Agraphos Publishing
Author URI: https://agraphospublishing.com
Description: The official theme of Agraphos Publishing, an independent press in Iowa City, Iowa. Inspired by 19th-century French Realism: warm ivory parchment, deep charcoal, antique gold, and burgundy — classical serif typography (Cinzel, Cormorant Garamond, Lora), gold rules and fleurons, and gallery-style book presentation with direct Stripe checkout links. Includes a newsletter bar, featured releases, author galleries, and AJAX forms wired to the press inbox.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agraphos-publishing
Tags: custom-background, custom-logo, custom-menu, featured-images, blog, portfolio, e-commerce, literary, publishing
*/

/* ==========================================================================
   Agraphos Publishing — 19th-c. French Realism design system
   ========================================================================== */

:root {
  --ag-ivory: #f5f0e8;
  --ag-parchment: #efe7d6;
  --ag-linen: #e6dcc6;
  --ag-taupe: #d1c7b7;
  --ag-smoke: #6b5e50;
  --ag-ink: #2b2118;
  --ag-charcoal: #1a1a1a;
  --ag-coal: #2c2c2c;
  --ag-gold: #c9a84c;
  --ag-brass: #b8962e;
  --ag-goldsoft: #e4d3a2;
  --ag-burgundy: #722f37;
  --ag-wine: #572329;

  --ag-wordmark: "Cinzel", Georgia, serif;
  --ag-display: "Cormorant Garamond", Georgia, serif;
  --ag-body: "Lora", Georgia, serif;

  --ag-shadow-book: 0 1px 2px rgba(10, 7, 4, 0.35), 0 10px 24px -6px rgba(43, 33, 24, 0.45), 0 28px 60px -18px rgba(20, 14, 8, 0.5);
  --ag-shadow-book-lift: 0 2px 3px rgba(10, 7, 4, 0.3), 0 22px 38px -8px rgba(43, 33, 24, 0.5), 0 48px 90px -20px rgba(20, 14, 8, 0.55);
  --ag-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ag-ivory);
  color: var(--ag-ink);
  font-family: var(--ag-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Printed-paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--ag-gold); color: var(--ag-charcoal); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ag-burgundy); text-decoration: none; }
a:hover { color: var(--ag-brass); }

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

.ag-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ag-charcoal);
  color: var(--ag-gold);
  padding: 12px 22px;
  font-family: var(--ag-wordmark);
  font-size: 11px;
  letter-spacing: 0.3em;
}
.ag-skip:focus { left: 12px; top: 12px; }

.ag-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Shared typographic helpers ------------------------------------------------ */
.ag-eyebrow {
  font-family: var(--ag-wordmark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ag-brass);
}
.ag-eyebrow--light { color: var(--ag-gold); }

.ag-h1, .ag-h2 {
  font-family: var(--ag-display);
  font-weight: 600;
  color: var(--ag-ink);
  line-height: 1.1;
  margin: 0;
}
.ag-h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.ag-h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.ag-h2 em { color: var(--ag-burgundy); font-weight: 500; }

.ag-h2--light { color: var(--ag-ivory); }
.ag-h2--light em { color: var(--ag-gold); }

.ag-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 26px auto 0;
}
.ag-ornament::before, .ag-ornament::after {
  content: "";
  height: 1px;
  width: 130px;
  max-width: 28vw;
}
.ag-ornament::before { background: linear-gradient(to right, transparent, rgba(201,168,76,0.6), var(--ag-gold)); }
.ag-ornament::after { background: linear-gradient(to left, transparent, rgba(201,168,76,0.6), var(--ag-gold)); }
.ag-ornament svg { width: 20px; height: 20px; fill: var(--ag-gold); flex: none; }

.ag-dropcap::first-letter {
  font-family: var(--ag-display);
  font-weight: 600;
  font-size: 3.35em;
  float: left;
  line-height: 0.82;
  padding: 0.05em 0.16em 0 0;
  color: var(--ag-burgundy);
}

/* Buttons -------------------------------------------------------------------- */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--ag-wordmark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  transition: transform 0.35s var(--ag-ease), box-shadow 0.35s var(--ag-ease), filter 0.35s, background 0.35s, color 0.35s, border-color 0.35s;
}
.ag-btn svg { width: 14px; height: 14px; }

.ag-btn--gold {
  background: linear-gradient(160deg, var(--ag-gold), var(--ag-brass));
  color: var(--ag-charcoal);
  box-shadow: 0 10px 26px -10px rgba(184, 150, 46, 0.65), inset 0 1px 0 rgba(255, 246, 214, 0.55);
}
.ag-btn--gold:hover {
  color: var(--ag-charcoal);
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px -10px rgba(184, 150, 46, 0.75), inset 0 1px 0 rgba(255, 246, 214, 0.65);
}

.ag-btn--ghost {
  border: 1px solid rgba(245, 240, 232, 0.65);
  color: var(--ag-ivory);
  background: transparent;
}
.ag-btn--ghost:hover {
  border-color: var(--ag-gold);
  color: var(--ag-goldsoft);
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-2px);
}

.ag-btn--ink {
  border: 1px solid rgba(43, 33, 24, 0.45);
  color: var(--ag-ink);
  background: transparent;
}
.ag-btn--ink:hover { border-color: var(--ag-burgundy); color: var(--ag-burgundy); background: rgba(114, 47, 55, 0.05); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.ag-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 20px 0;
  transition: all 0.5s var(--ag-ease);
}
.ag-header.is-scrolled {
  padding: 12px 0;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 199, 183, 0.6);
  box-shadow: 0 10px 30px -18px rgba(43, 33, 24, 0.35);
}
.ag-header__inner { display: flex; align-items: center; justify-content: space-between; }

.ag-brand { display: flex; align-items: center; gap: 12px; }
.ag-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.7);
  color: var(--ag-gold);
  font-family: var(--ag-wordmark);
  font-size: 18px;
  text-decoration: none;
}
.ag-header.is-scrolled .ag-brand__mark { border-color: rgba(114, 47, 55, 0.7); color: var(--ag-burgundy); }
.ag-brand__word { line-height: 1; }
.ag-brand__word strong {
  display: block;
  font-family: var(--ag-wordmark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ag-ivory);
}
.ag-brand__word span {
  display: block;
  margin-top: 4px;
  font-family: var(--ag-wordmark);
  font-size: 8.5px;
  letter-spacing: 0.5em;
  color: rgba(228, 211, 162, 0.8);
}
.ag-header.is-scrolled .ag-brand__word strong { color: var(--ag-ink); }
.ag-header.is-scrolled .ag-brand__word span { color: var(--ag-smoke); }
.ag-brand__logo { max-height: 44px; width: auto; }

.ag-nav { display: flex; align-items: center; gap: 30px; }
.ag-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.ag-nav a {
  font-family: var(--ag-wordmark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
  position: relative;
}
.ag-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ag-ease);
}
.ag-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.ag-nav a:hover { color: var(--ag-goldsoft); }
.ag-header.is-scrolled .ag-nav a { color: rgba(43, 33, 24, 0.8); }
.ag-header.is-scrolled .ag-nav a:hover { color: var(--ag-burgundy); }
.ag-nav .ag-btn { padding: 11px 20px; }

.ag-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.4);
  color: var(--ag-ivory);
  cursor: pointer;
}
.ag-header.is-scrolled .ag-toggle { border-color: rgba(43, 33, 24, 0.25); color: var(--ag-ink); }
.ag-toggle svg { width: 20px; height: 20px; }

.ag-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--ag-charcoal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ag-ease);
}
.ag-mobile.is-open { opacity: 1; pointer-events: auto; }
.ag-mobile__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.ag-mobile__bar span { font-family: var(--ag-wordmark); font-size: 13px; letter-spacing: 0.3em; color: var(--ag-gold); }
.ag-mobile__close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(245,240,232,0.3); color: var(--ag-ivory); cursor: pointer;
}
.ag-mobile ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.ag-mobile a { font-family: var(--ag-display); font-size: 36px; font-weight: 500; color: var(--ag-ivory); }
.ag-mobile a:hover { color: var(--ag-goldsoft); font-style: italic; }
.ag-mobile__foot { padding-bottom: 30px; text-align: center; font-family: var(--ag-display); font-style: italic; font-size: 14px; color: rgba(245,240,232,0.4); }

/* ==========================================================================
   Hero
   ========================================================================== */
.ag-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ag-charcoal);
  text-align: center;
}
.ag-hero__bg { position: absolute; inset: 0; will-change: transform; }
.ag-hero__bg img { width: 108%; height: 112%; object-fit: cover; filter: sepia(0.18) saturate(0.92); }
.ag-hero__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,26,26,0.8), rgba(26,26,26,0.45), var(--ag-charcoal)); }
.ag-hero__veil::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(16,13,10,0.55) 100%); }

.ag-hero__content { position: relative; z-index: 2; padding: 60px 24px 100px; }
.ag-hero__eyebrow { color: rgba(228,211,162,0.9); letter-spacing: 0.42em; }
.ag-hero__title {
  margin: 28px 0 0;
  font-family: var(--ag-wordmark);
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ag-ivory);
  text-shadow: 0 2px 30px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.8);
  animation: agWordmark 1.9s cubic-bezier(0.19, 1, 0.22, 1) 0.25s both;
}
@keyframes agWordmark {
  0% { opacity: 0; letter-spacing: 0.55em; filter: blur(8px); }
  100% { opacity: 1; letter-spacing: 0.22em; filter: blur(0); }
}
.ag-hero__sub {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: agRise 1.15s var(--ag-ease) 0.9s both;
}
.ag-hero__sub::before, .ag-hero__sub::after { content: ""; height: 1px; width: 90px; background: rgba(201,168,76,0.8); }
.ag-hero__sub span { font-family: var(--ag-wordmark); font-size: 12px; font-weight: 500; letter-spacing: 0.65em; color: var(--ag-gold); }
.ag-hero__tag {
  margin: 30px auto 0;
  max-width: 560px;
  font-family: var(--ag-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: rgba(245, 240, 232, 0.85);
  animation: agRise 1.15s var(--ag-ease) 1.15s both;
}
.ag-hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; animation: agRise 1.15s var(--ag-ease) 1.45s both; }
@keyframes agRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.ag-hero__cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(201,168,76,0.8); animation: agPulse 2.4s ease-in-out infinite; }
.ag-hero__cue svg { width: 24px; height: 24px; }
@keyframes agPulse { 0%,100% { opacity: 0.35; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(8px); } }

/* ==========================================================================
   Newsletter bar
   ========================================================================== */
.ag-bar { background: var(--ag-burgundy); border-top: 1px solid rgba(201,168,76,0.25); border-bottom: 1px solid rgba(201,168,76,0.25); }
.ag-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 24px; max-width: 1200px; margin: 0 auto; }
.ag-bar__copy { flex: 1 1 320px; margin: 0; font-family: var(--ag-display); font-size: 18px; font-style: italic; line-height: 1.4; color: rgba(228,211,162,0.95); }
.ag-bar form { display: flex; flex: 1 1 420px; max-width: 560px; flex-wrap: wrap; gap: 10px; }

/* Forms --------------------------------------------------------------------- */
.ag-field {
  flex: 1 1 200px;
  width: 100%;
  background: rgba(255, 252, 244, 0.7);
  border: 1px solid var(--ag-taupe);
  color: var(--ag-ink);
  font-family: var(--ag-body);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.ag-field::placeholder { color: rgba(107, 94, 80, 0.75); font-style: italic; }
.ag-field:focus { outline: none; border-color: var(--ag-brass); box-shadow: 0 0 0 3px rgba(201,168,76,0.18); background: #fffcf4; }

.ag-field--dark { background: rgba(255, 252, 244, 0.06); border-color: rgba(209, 199, 183, 0.35); color: var(--ag-ivory); }
.ag-field--dark:focus { background: rgba(255,252,244,0.1); border-color: var(--ag-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.22); }

.ag-consent { display: flex; align-items: flex-start; gap: 10px; flex-basis: 100%; font-size: 12px; line-height: 1.6; color: rgba(245,240,232,0.55); cursor: pointer; }
.ag-consent--light { color: var(--ag-smoke); }
.ag-consent input { margin-top: 3px; accent-color: var(--ag-brass); }
.ag-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ag-consent a:hover { color: var(--ag-gold); }

.ag-form-note { display: none; align-items: center; gap: 10px; font-size: 14px; }
.ag-form-note.is-visible { display: flex; }
.ag-form-note--ok { color: var(--ag-goldsoft); }
.ag-form-note--ok.ag-form-note--light { color: var(--ag-brass); }
.ag-form-note--err { color: #d98c8c; font-style: italic; }

/* ==========================================================================
   Sections
   ========================================================================== */
.ag-section { padding: 96px 0; }
.ag-section--parchment { background: var(--ag-parchment); }
.ag-section--dark { background: var(--ag-charcoal); color: rgba(245,240,232,0.72); }
.ag-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ag-section__head p.lede { font-family: var(--ag-display); font-style: italic; font-size: 18px; color: var(--ag-smoke); margin-top: 22px; }

/* Books --------------------------------------------------------------------- */
.ag-books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 30px; }
.ag-book__scene { position: relative; display: block; perspective: 1200px; }
.ag-book__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  box-shadow: var(--ag-shadow-book);
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ag-ease), box-shadow 0.65s var(--ag-ease);
}
.ag-book__cover::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,250,235,0.22), rgba(255,250,235,0.02) 4%, rgba(0,0,0,0.18) 7%, transparent 10%);
  pointer-events: none;
  z-index: 1;
}
.ag-book__cover img { width: 100%; height: 100%; object-fit: cover; }
.ag-book__scene::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -18px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(20,14,8,0.42), transparent 68%);
  filter: blur(4px);
  transition: all 0.65s var(--ag-ease);
}
.ag-book__scene:hover .ag-book__cover { transform: translateY(-12px) rotateY(-7deg) rotateX(2deg) scale(1.02); box-shadow: var(--ag-shadow-book-lift); }
.ag-book__scene:hover::after { left: 2%; right: 2%; bottom: -26px; opacity: 0.7; }

.ag-book__badge {
  position: absolute;
  top: 16px; right: 0;
  z-index: 2;
  background: var(--ag-burgundy);
  color: var(--ag-ivory);
  font-family: var(--ag-wordmark);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ag-book__meta { margin-top: 30px; }
.ag-book__genre { font-family: var(--ag-wordmark); font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ag-brass); }
.ag-book__title { font-family: var(--ag-display); font-size: 26px; font-weight: 600; line-height: 1.15; margin: 8px 0 0; }
.ag-book__title a { color: var(--ag-ink); }
.ag-book__title a:hover { color: var(--ag-burgundy); }
.ag-book__author { font-family: var(--ag-display); font-style: italic; font-size: 15px; color: var(--ag-smoke); margin-top: 4px; }
.ag-book__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ag-taupe); }
.ag-book__price { font-family: var(--ag-display); font-size: 21px; font-weight: 600; color: var(--ag-ink); }
.ag-book__buy {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(160deg, var(--ag-gold), var(--ag-brass));
  color: var(--ag-charcoal);
  font-family: var(--ag-wordmark); font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 11px 16px;
  box-shadow: 0 10px 26px -10px rgba(184,150,46,0.65), inset 0 1px 0 rgba(255,246,214,0.55);
  transition: transform 0.35s var(--ag-ease), filter 0.35s;
}
.ag-book__buy:hover { color: var(--ag-charcoal); transform: translateY(-2px); filter: brightness(1.06); }
.ag-book__buy svg { width: 13px; height: 13px; }

.ag-section__more { text-align: center; margin-top: 64px; }

/* Quote interlude ------------------------------------------------------------ */
.ag-quote { position: relative; overflow: hidden; background: var(--ag-charcoal); padding: 110px 0; text-align: center; }
.ag-quote__bg { position: absolute; inset: 0; opacity: 0.14; background-size: cover; background-position: center 70%; }
.ag-quote blockquote { position: relative; margin: 26px auto 0; max-width: 850px; padding: 0 24px; font-family: var(--ag-display); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.28; color: var(--ag-ivory); }
.ag-quote blockquote em { color: var(--ag-gold); font-style: normal; }
.ag-quote cite { position: relative; display: block; margin-top: 30px; font-family: var(--ag-wordmark); font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-style: normal; color: rgba(228,211,162,0.7); }
.ag-quote__fl { position: relative; width: 20px; height: 20px; fill: var(--ag-gold); }

/* Authors ------------------------------------------------------------------- */
.ag-authors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ag-author {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--ag-ivory);
  border: 1px solid rgba(209, 199, 183, 0.8);
  padding: 40px 26px;
  transition: transform 0.5s var(--ag-ease), border-color 0.5s, box-shadow 0.5s;
}
.ag-author:hover { transform: translateY(-8px); border-color: rgba(201,168,76,0.7); box-shadow: 0 28px 50px -24px rgba(43,33,24,0.4); }
.ag-medallion {
  position: relative;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(184,150,46,0.6);
  border-radius: 50%;
}
.ag-medallion::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(184,150,46,0.3); border-radius: 50%; }
.ag-medallion span { font-family: var(--ag-wordmark); font-size: 20px; font-weight: 600; letter-spacing: 0.18em; color: var(--ag-brass); }
.ag-author h3 { font-family: var(--ag-display); font-size: 25px; font-weight: 600; line-height: 1.2; margin: 22px 0 0; color: var(--ag-ink); }
.ag-author__genres { font-family: var(--ag-wordmark); font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ag-smoke); margin-top: 12px; }
.ag-author__tag { font-family: var(--ag-display); font-style: italic; font-size: 15px; line-height: 1.6; color: var(--ag-smoke); margin: 14px 0 0; }
.ag-author__more {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--ag-wordmark);
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ag-burgundy);
  display: inline-flex; align-items: center; gap: 8px;
}
.ag-author__more svg { width: 13px; height: 13px; transition: transform 0.35s var(--ag-ease); }
.ag-author:hover .ag-author__more { color: var(--ag-brass); }
.ag-author:hover .ag-author__more svg { transform: translateX(4px); }

/* About brief ---------------------------------------------------------------- */
.ag-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ag-about__text p { line-height: 1.85; color: rgba(43,33,24,0.85); }
.ag-about__text p + p { color: var(--ag-smoke); margin-top: 18px; }
.ag-about__text .ag-btn { margin-top: 34px; }
.ag-about__figure {
  position: relative;
  border: 1px solid var(--ag-taupe);
  background: var(--ag-parchment);
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(43,33,24,0.45);
}
.ag-about__figure img { filter: sepia(0.18) saturate(0.92); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ag-about__figure figcaption { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 4px; font-family: var(--ag-display); font-style: italic; font-size: 14px; color: var(--ag-smoke); }
.ag-about__figure figcaption svg { width: 16px; height: 16px; fill: rgba(201,168,76,0.8); }

/* Journal (posts loop) ------------------------------------------------------- */
.ag-journal { background: var(--ag-parchment); }
.ag-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ag-post {
  background: var(--ag-ivory);
  border: 1px solid rgba(209,199,183,0.8);
  padding: 30px;
  transition: transform 0.5s var(--ag-ease), box-shadow 0.5s;
}
.ag-post:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(43,33,24,0.4); }
.ag-post__date { font-family: var(--ag-wordmark); font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ag-brass); }
.ag-post h3 { font-family: var(--ag-display); font-size: 26px; font-weight: 600; line-height: 1.2; margin: 12px 0 0; }
.ag-post h3 a { color: var(--ag-ink); }
.ag-post h3 a:hover { color: var(--ag-burgundy); }
.ag-post p { font-size: 14px; color: var(--ag-smoke); margin-top: 10px; }

/* Newsletter section (dark) --------------------------------------------------- */
.ag-letters { position: relative; overflow: hidden; background: var(--ag-charcoal); padding: 110px 0; }
.ag-letters__bg { position: absolute; inset: 0; opacity: 0.16; background-size: cover; background-position: center 30%; }
.ag-letters__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ag-charcoal), rgba(26,26,26,0.7), var(--ag-charcoal)); }
.ag-letters__inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; text-align: center; }
.ag-letters h2 { color: var(--ag-ivory); }
.ag-letters h2 em { color: var(--ag-gold); font-weight: 500; }
.ag-letters .lede { font-family: var(--ag-display); font-style: italic; font-size: 18px; line-height: 1.7; color: rgba(245,240,232,0.65); margin-top: 18px; }
.ag-letters form { margin: 40px auto 0; max-width: 520px; background: rgba(245,240,232,0.04); padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.ag-letters form .row { display: flex; gap: 16px; flex-wrap: wrap; }
.ag-letters .ag-btn { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ag-footer { background: var(--ag-charcoal); color: rgba(245,240,232,0.72); }
.ag-footer__fl { display: flex; justify-content: center; padding-top: 40px; }
.ag-footer__fl div { display: flex; align-items: center; gap: 16px; }
.ag-footer__fl span.rule { height: 1px; width: 180px; max-width: 24vw; }
.ag-footer__fl span.rule:first-child { background: linear-gradient(to right, transparent, rgba(201,168,76,0.5)); }
.ag-footer__fl span.rule:last-child { background: linear-gradient(to left, transparent, rgba(201,168,76,0.5)); }
.ag-footer__fl svg { width: 20px; height: 20px; fill: var(--ag-gold); }

.ag-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 60px 0 70px; }
.ag-footer h3 { font-family: var(--ag-wordmark); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ag-gold); margin: 0 0 20px; }
.ag-footer__word strong { font-family: var(--ag-wordmark); font-size: 20px; font-weight: 600; letter-spacing: 0.3em; color: var(--ag-gold); }
.ag-footer__word span { display: block; margin-top: 4px; font-family: var(--ag-wordmark); font-size: 10px; letter-spacing: 0.55em; color: rgba(245,240,232,0.5); }
.ag-footer__tag { font-family: var(--ag-display); font-style: italic; font-size: 18px; color: rgba(245,240,232,0.7); margin-top: 20px; }
.ag-footer__blurb { font-size: 13px; line-height: 1.8; color: rgba(245,240,232,0.5); margin-top: 14px; }

.ag-footer address { font-style: normal; font-size: 13.5px; line-height: 1.9; color: rgba(245,240,232,0.65); }
.ag-footer address a { color: rgba(245,240,232,0.8); }
.ag-footer address a:hover { color: var(--ag-gold); }

.ag-footer ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.ag-footer ul li + li { margin-top: 10px; }
.ag-footer ul a { color: rgba(245,240,232,0.7); }
.ag-footer ul a:hover { color: var(--ag-goldsoft); }

.ag-footer__socials { display: flex; gap: 12px; margin-top: 24px; }
.ag-footer__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(245,240,232,0.2);
  color: rgba(245,240,232,0.6);
  transition: all 0.35s var(--ag-ease);
}
.ag-footer__socials a:hover { transform: translateY(-2px); border-color: var(--ag-gold); color: var(--ag-gold); }
.ag-footer__socials svg { width: 15px; height: 15px; }

.ag-footer__bottom { border-top: 1px solid rgba(245,240,232,0.1); padding: 22px 0; }
.ag-footer__bottom div { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(245,240,232,0.4); }
.ag-footer__bottom a { color: rgba(245,240,232,0.4); }
.ag-footer__bottom a:hover { color: var(--ag-goldsoft); }

/* ==========================================================================
   404
   ========================================================================== */
.ag-404 { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: var(--ag-charcoal); text-align: center; padding: 40px 24px; }
.ag-404__bg { position: absolute; inset: 0; opacity: 0.1; background-size: cover; background-position: center; }
.ag-404 > * { position: relative; }
.ag-404__fl { width: 20px; height: 20px; fill: var(--ag-gold); }
.ag-404__code { margin: 34px 0 0; font-family: var(--ag-wordmark); font-size: clamp(6rem, 20vw, 10rem); font-weight: 600; letter-spacing: 0.18em; line-height: 1; color: var(--ag-gold); }
.ag-404__label { font-family: var(--ag-wordmark); font-size: 11px; font-weight: 600; letter-spacing: 0.45em; text-transform: uppercase; color: rgba(228,211,162,0.8); margin-top: 22px; }
.ag-404 blockquote { margin: 36px auto 0; max-width: 560px; font-family: var(--ag-display); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2rem); color: rgba(245,240,232,0.85); }
.ag-404__ctas { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Single posts / pages -------------------------------------------------------- */
.ag-single { max-width: 760px; margin: 0 auto; padding: 150px 24px 100px; }
.ag-single h1, .ag-single h2, .ag-single h3 { font-family: var(--ag-display); color: var(--ag-ink); }
.ag-single h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0 0 20px; font-weight: 600; }
.ag-single .entry-content { font-size: 17px; line-height: 1.9; color: rgba(43,33,24,0.88); }
.ag-single .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.ag-single .entry-content > p:first-of-type::first-letter {
  font-family: var(--ag-display); font-weight: 600; font-size: 3.35em;
  float: left; line-height: 0.82; padding: 0.05em 0.16em 0 0; color: var(--ag-burgundy);
}
.ag-single .entry-date { font-family: var(--ag-wordmark); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ag-brass); margin-bottom: 14px; }

/* Scroll reveal --------------------------------------------------------------- */
.ag-reveal { opacity: 0; transform: translateY(28px); filter: blur(5px); transition: opacity 0.95s var(--ag-ease), transform 0.95s var(--ag-ease), filter 0.95s var(--ag-ease); }
.ag-reveal.in-view { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .ag-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .ag-hero__title, .ag-hero__sub, .ag-hero__tag, .ag-hero__ctas { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .ag-books { grid-template-columns: repeat(2, 1fr); }
  .ag-authors { grid-template-columns: repeat(2, 1fr); }
  .ag-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ag-nav { display: none; }
  .ag-toggle { display: flex; }
  .ag-about { grid-template-columns: 1fr; gap: 44px; }
  .ag-posts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ag-section { padding: 72px 0; }
  .ag-books { grid-template-columns: 1fr; gap: 64px; }
  .ag-authors { grid-template-columns: 1fr; }
  .ag-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .ag-hero__sub::before, .ag-hero__sub::after { width: 44px; }
  .ag-letters form { padding: 26px 20px; }
}
