/*
Theme Name: TheQuoteGenerator
Theme URI: https://thequotegenerator.com/
Author: TheQuoteGenerator
Description: A clean, responsive WordPress theme with a server-cached quote library, author profiles, editorial pages and an integrated journal.
Version: 2.0.0
Text Domain: thequotegenerator
Requires at least: 6.2
Requires PHP: 7.4
*/
:root {
  --ink: #1e2925;
  --ink-soft: #52605a;
  --paper: #f5f2eb;
  --paper-deep: #ece7dc;
  --white: #fffdf8;
  --accent: #c76442;
  --accent-dark: #a84c31;
  --line: rgba(30, 41, 37, .16);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 12px 18px; color: white; background: var(--ink); transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1440px; height: 92px; margin: auto; padding: 0 5vw; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: -.5px; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--paper); background: var(--ink); border-radius: 50% 50% 50% 8px; font-size: 16px; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a { position: relative; color: #66716c; font-size: 13px; font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; width: 4px; height: 4px; margin: auto; background: var(--accent); border-radius: 50%; }
.header-cta { justify-self: end; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.header-cta span { margin-left: 8px; color: var(--accent); }
.nav-toggle { display: none; }

.hero { max-width: 980px; margin: 0 auto; padding: 110px 30px 125px; text-align: center; }
.hero__eyebrow { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 26px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.hero__eyebrow span { width: 26px; height: 1px; background: var(--accent); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(60px, 7vw, 100px); font-weight: 400; line-height: .94; letter-spacing: -5px; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero > p { max-width: 590px; margin: 32px auto 28px; color: var(--ink-soft); font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 5px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.text-link--dark { color: var(--ink); border-color: var(--ink); }

.generator-section { padding: 80px 5vw 100px; color: var(--paper); background: var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: end; max-width: 1200px; margin: 0 auto 40px; }
.section-heading h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(37px, 4vw, 54px); font-weight: 400; letter-spacing: -2px; }
.section-heading > p { max-width: 360px; margin: 0; color: #b6bcb8; font-family: var(--serif); font-size: 16px; line-height: 1.55; }
.kicker { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.generator-shell { max-width: 1200px; margin: 0 auto; }
.tqg-generator .filters { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: end; border: 1px solid rgba(255,255,255,.16); border-bottom: 0; }
.tqg-generator .filters label { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 20px; border-right: 1px solid rgba(255,255,255,.16); }
.tqg-generator .filters label > span { color: #929d98; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.tqg-generator .filters select { width: 100%; padding: 0 24px 0 0; border: 0; border-radius: 0; outline: 0; color: var(--paper); background: transparent; font-size: 13px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aeb5b1 50%), linear-gradient(135deg, #aeb5b1 50%, transparent 50%); background-position: calc(100% - 5px) 6px, 100% 6px; background-size: 5px 5px; background-repeat: no-repeat; }
.tqg-generator .filters select option { color: var(--ink); }
.tqg-generator .filters select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tqg-generator .reset-filters { height: 100%; padding: 0 22px; border: 0; color: #aeb5b1; background: transparent; cursor: pointer; font-size: 11px; }
.tqg-generator .reset-filters:hover { color: white; }
.tqg-generator .quote-stage { position: relative; min-height: 450px; display: grid; place-items: center; padding: 80px 13%; overflow: hidden; color: var(--ink); background: var(--white); }
.tqg-generator .quote-stage::before, .tqg-generator .quote-stage::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(199,100,66,.16); border-radius: 50%; }
.tqg-generator .quote-stage::before { left: -105px; top: -105px; box-shadow: 0 0 0 28px rgba(199,100,66,.045), 0 0 0 57px rgba(199,100,66,.025); }
.tqg-generator .quote-stage::after { right: -110px; bottom: -115px; }
.tqg-generator .quote-stage__number { position: absolute; left: 30px; top: 28px; color: #a7ada9; font-family: var(--serif); font-size: 12px; }
.tqg-generator .quote-stage__content { display: flex; gap: 24px; max-width: 800px; }
.tqg-generator .quote-mark { margin-top: -18px; color: var(--accent); font-family: var(--serif); font-size: 78px; line-height: 1; }
.tqg-generator .quote-stage blockquote { margin: 0; }
.tqg-generator .quote-stage blockquote > p { min-height: 100px; margin: 0 0 38px; font-family: var(--serif); font-size: clamp(34px, 4vw, 55px); line-height: 1.15; letter-spacing: -1.8px; }
.tqg-generator .quote-stage blockquote footer { display: flex; align-items: center; gap: 15px; }
.tqg-generator .quote-stage blockquote footer::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.tqg-generator .quote-stage blockquote footer span { font-size: 12px; font-weight: 800; }
.tqg-generator .quote-stage blockquote footer small { padding-left: 15px; border-left: 1px solid var(--line); color: #87908c; font-size: 10px; letter-spacing: .4px; }
.tqg-generator .quote-stage__hint { position: absolute; right: 26px; bottom: 24px; color: #929b97; font-size: 9px; }
.tqg-generator kbd { padding: 3px 6px; border: 1px solid #d7d8d4; border-radius: 2px; background: #f2f0eb; font-family: inherit; }
.tqg-generator .quote-stage.is-changing .quote-stage__content { animation: quoteChange .42s ease; }
@keyframes quoteChange { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
.tqg-generator .generator-actions { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.2fr; }
.tqg-generator .button { min-height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border: 0; border-right: 1px solid rgba(255,255,255,.13); color: var(--paper); background: #34403c; cursor: pointer; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; transition: background .2s, color .2s; }
.tqg-generator .button:hover { background: #3f4c47; }
.tqg-generator .button--primary { background: var(--accent); }
.tqg-generator .button--primary:hover { background: var(--accent-dark); }
.tqg-generator .button--outline { border: 1px solid rgba(255,255,255,.2); border-top: 0; background: transparent; }
.tqg-generator .button__icon { font-size: 19px; font-weight: 400; }
.tqg-generator .share-wrap { position: relative; }
.tqg-generator .share-wrap > .button { width: 100%; height: 100%; }
.tqg-generator .share-menu { position: absolute; z-index: 10; right: 10px; bottom: 70px; min-width: 160px; padding: 7px; border: 1px solid var(--line); color: var(--ink); background: var(--white); box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.tqg-generator .share-menu a { display: block; padding: 10px 12px; font-size: 12px; }
.tqg-generator .share-menu a:hover { background: var(--paper); }
.tqg-generator .status-message { min-height: 18px; margin: 12px 0 0; color: #aeb5b1; font-size: 11px; text-align: center; }

.moods-section, .authors-section, .journal-section { padding: 110px 5vw; }
.moods-section .section-heading, .authors-section .section-heading, .journal-section .section-heading { color: var(--ink); }
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: auto; }
.mood-card { min-height: 280px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; padding: 28px; border: 0; color: var(--ink); text-align: left; cursor: pointer; transition: transform .25s, filter .25s; }
.mood-card:hover { z-index: 2; transform: translateY(-7px); filter: saturate(1.12); }
.mood-card--clay { background: #d78562; }
.mood-card--sage { background: #a8b8a6; }
.mood-card--gold { background: #d8bc72; }
.mood-card--blue { background: #9daeb5; }
.mood-card__symbol { font-family: var(--serif); font-size: 38px; }
.mood-card__count { font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.mood-card strong { grid-column: 1/-1; margin-bottom: 5px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.mood-card small { grid-column: 1/-1; font-family: var(--serif); font-size: 14px; opacity: .75; }

.daily-section { padding: 0 5vw 110px; }
.daily-card { position: relative; max-width: 1200px; min-height: 360px; display: grid; grid-template-columns: 220px 1fr 80px; align-items: center; margin: auto; padding: 55px 62px; border: 1px solid var(--line); background: var(--paper-deep); }
.daily-card__label { align-self: start; }
.daily-card__label time { display: block; margin-top: 15px; color: #87908c; font-family: var(--serif); font-size: 13px; }
.daily-card__quote { max-width: 650px; }
.daily-card__quote > span { color: var(--accent); font-family: var(--serif); font-size: 54px; line-height: .5; }
.daily-card blockquote { margin: 18px 0 22px; font-family: var(--serif); font-size: clamp(31px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -1.6px; }
.daily-card__quote p { font-size: 12px; font-weight: 800; }
.round-button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 19px; }
.round-button:hover { color: white; background: var(--ink); }

.authors-section { padding-top: 20px; }
.author-list { max-width: 1200px; margin: auto; border-top: 1px solid var(--line); }
.author-list button { width: 100%; display: grid; grid-template-columns: 70px 2fr 2fr 40px; align-items: center; padding: 26px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.author-list button:hover { background: var(--paper-deep); }
.author-list span { color: #9a9f9c; font-family: var(--serif); font-size: 12px; }
.author-list strong { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.author-list small { color: var(--ink-soft); }
.author-list b { color: var(--accent); font-size: 20px; text-align: right; }

.journal-section { background: var(--white); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 1200px; margin: auto; background: var(--line); border: 1px solid var(--line); }
.article-grid article { padding: 38px; background: var(--white); }
.article-grid article > span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.article-grid h3 { min-height: 95px; margin: 22px 0 18px; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.15; }
.article-grid p { min-height: 70px; color: var(--ink-soft); font-family: var(--serif); line-height: 1.5; }
.article-grid a { display: inline-block; margin-top: 15px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 800; }

.site-footer { min-height: 260px; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: start; padding: 65px 5vw 35px; color: var(--paper); background: #17211e; }
.brand--light .brand__mark { color: var(--ink); background: var(--paper); }
.site-footer > div p { color: #8e9994; font-family: var(--serif); }
.site-footer nav { display: flex; gap: 35px; font-size: 11px; }
.site-footer nav a:hover { color: #d78562; }
.site-footer .footer-legal { grid-column: 1/-1; justify-content: flex-end; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); color: #a4ada9; }
.footer-meta { grid-column: 1/-1; align-self: end; display: flex; justify-content: space-between; gap: 30px; color: #707c77; font-size: 10px; }
.footer-meta a { color: #a4ada9; text-decoration: underline; text-underline-offset: 3px; }

.legal-header { grid-template-columns: 1fr auto; }
.legal-hero { max-width: 1200px; margin: auto; padding: 100px 5vw 80px; }
.legal-hero h1 { margin: 16px 0 26px; font-family: var(--serif); font-size: clamp(58px, 7vw, 96px); font-weight: 400; line-height: .95; letter-spacing: -4px; }
.legal-hero h1 em { color: var(--accent); font-weight: 400; }
.legal-hero > p:not(.kicker):not(.legal-updated) { max-width: 620px; color: var(--ink-soft); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.legal-updated { margin-top: 30px; color: #8d9692; font-size: 11px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 100px; max-width: 1200px; margin: auto; padding: 20px 5vw 120px; }
.legal-toc { position: sticky; top: 30px; align-self: start; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.legal-toc p { margin: 22px 0 14px; color: #8a938f; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.legal-toc a { padding: 11px 0; color: var(--ink-soft); font-size: 12px; }
.legal-toc a:hover { color: var(--accent); }
.legal-copy { min-width: 0; }
.legal-copy section { padding: 80px 0 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.legal-copy section:first-of-type { padding-top: 25px; }
.legal-copy h2 { margin: 8px 0 32px; font-family: var(--serif); font-size: clamp(38px, 4vw, 54px); font-weight: 400; letter-spacing: -1.8px; }
.legal-copy h3 { margin: 34px 0 9px; font-size: 12px; letter-spacing: .3px; }
.legal-copy p { color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 1.75; }
.legal-copy a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-copy code { padding: 2px 5px; background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.legal-copy .legal-number { margin: 0; color: var(--accent); font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.legal-note { padding: 26px 30px; border-left: 3px solid var(--accent); background: var(--paper-deep); }
.legal-note strong, .operator-placeholder > strong { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
.legal-note p { margin: 8px 0 0; font-size: 14px; }
.operator-placeholder { margin: 28px 0; padding: 28px 30px; border: 1px solid rgba(199,100,66,.35); background: #f2e8df; }
.operator-placeholder p { margin: 12px 0 0; }
.operator-placeholder span { color: var(--accent-dark); font-family: var(--sans); font-size: 12px; }
.legal-footer { margin-top: 0; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; padding: 12px 18px; color: white; background: var(--ink); border-radius: 2px; font-size: 12px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 75px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; gap: 4px; width: 38px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 1px; background: var(--ink); }
  .site-nav { position: absolute; left: 5vw; right: 5vw; top: 74px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--white); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px; }
  .site-nav a.is-active::after { display: none; }
  .hero { padding-top: 85px; }
  .hero h1 { letter-spacing: -3px; }
  .section-heading { align-items: start; gap: 25px; }
  .tqg-generator .filters { grid-template-columns: repeat(2, 1fr); }
  .tqg-generator .filters label:nth-child(2) { border-right: 0; }
  .tqg-generator .filters label { border-bottom: 1px solid rgba(255,255,255,.16); }
  .tqg-generator .reset-filters { min-height: 48px; grid-column: 1/-1; }
  .tqg-generator .quote-stage { min-height: 420px; padding: 75px 8%; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .daily-card { grid-template-columns: 150px 1fr; padding: 45px; }
  .daily-card .round-button { position: absolute; right: 30px; bottom: 30px; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 20px; }
  .hero { padding: 68px 20px 82px; }
  .hero h1 { font-size: 52px; letter-spacing: -2.7px; }
  .hero > p { font-size: 17px; }
  .generator-section, .moods-section, .authors-section, .journal-section { padding: 65px 20px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p, .section-heading > a { margin-top: 18px; }
  .section-heading h2 { font-size: 38px; letter-spacing: -1.5px; }
  .tqg-generator .filters { grid-template-columns: 1fr 1fr; }
  .tqg-generator .filters label { padding: 15px 13px; }
  .tqg-generator .filters label:nth-child(3) { border-right: 1px solid rgba(255,255,255,.16); }
  .tqg-generator .filters label:nth-child(4) { border-right: 0; }
  .tqg-generator .quote-stage { min-height: 390px; padding: 66px 26px; }
  .tqg-generator .quote-stage__content { gap: 9px; }
  .tqg-generator .quote-mark { font-size: 49px; }
  .tqg-generator .quote-stage blockquote > p { min-height: 120px; margin-bottom: 30px; font-size: 32px; letter-spacing: -1.1px; }
  .tqg-generator .quote-stage blockquote footer { flex-wrap: wrap; gap: 9px; }
  .tqg-generator .quote-stage blockquote footer small { width: 100%; margin-left: 38px; padding: 0; border: 0; }
  .tqg-generator .quote-stage__hint { display: none; }
  .tqg-generator .generator-actions { grid-template-columns: 1fr 1fr; }
  .tqg-generator .button { min-height: 58px; padding: 0 15px; }
  .tqg-generator .button--primary { grid-column: 1/-1; }
  .tqg-generator .button--outline { grid-column: 1/-1; }
  .mood-grid { grid-template-columns: 1fr; }
  .mood-card { min-height: 220px; }
  .daily-section { padding: 0 20px 70px; }
  .daily-card { display: block; min-height: 400px; padding: 38px 28px 80px; }
  .daily-card__quote { margin-top: 55px; }
  .author-list button { grid-template-columns: 42px 1fr 25px; }
  .author-list small { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid h3, .article-grid p { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; padding: 55px 20px 30px; }
  .site-footer nav { flex-wrap: wrap; gap: 18px 28px; }
  .site-footer .footer-legal { grid-column: 1; justify-content: flex-start; }
  .footer-meta { grid-column: 1; }
  .footer-meta { display: block; }
  .footer-meta span { display: block; margin-top: 10px; }
  .legal-header .header-cta { display: block; font-size: 10px; }
  .legal-header { grid-template-columns: 1fr auto; }
  .legal-header .brand { font-size: 19px; }
  .legal-hero { padding: 70px 20px 50px; }
  .legal-hero h1 { font-size: 53px; letter-spacing: -2.5px; }
  .legal-layout { display: block; padding: 0 20px 80px; }
  .legal-toc { position: static; margin-bottom: 25px; }
  .legal-copy section { padding-top: 60px; }
}

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

/* WordPress content templates */
.content-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 120px; }
.archive-hero { max-width: 820px; margin-bottom: 55px; }
.archive-hero h1, .entry-header h1, .error-page h1 { margin: 12px 0 22px; font-family: var(--serif); font-size: clamp(48px, 7vw, 86px); font-weight: 400; line-height: 1; letter-spacing: -3px; }
.archive-hero > p:last-child, .entry-meta, .error-page > p { color: var(--ink-soft); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.post-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.post-card__body { padding: 34px; }
.post-card__meta { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.post-card__meta a { color: inherit; }
.post-card h2 { margin: 18px 0; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; }
.post-card__body > p:not(.post-card__meta) { color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.pagination { margin-top: 55px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); }
.pagination .current, .pagination a:hover { color: var(--paper); background: var(--ink); }
.single-entry { max-width: 900px; }
.entry-header { max-width: 830px; margin: 0 auto 55px; text-align: center; }
.entry-header .kicker a { color: inherit; }
.entry-featured { margin: 0 0 55px; }
.entry-featured img { display: block; width: 100%; height: auto; }
.entry-content { max-width: 740px; margin: 0 auto; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.78; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .65em; font-family: var(--serif); line-height: 1.15; }
.entry-content h2 { font-size: 40px; font-weight: 400; }
.entry-content h3 { font-size: 28px; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content blockquote { margin: 2em 0; padding: 20px 0 20px 30px; border-left: 3px solid var(--accent); font-size: 1.35em; line-height: 1.45; }
.entry-content pre { overflow: auto; padding: 20px; background: var(--ink); color: var(--paper); }
.entry-footer { max-width: 740px; margin: 55px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.page-entry .entry-header { text-align: left; }
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.button-link { display: inline-flex; margin-top: 22px; padding: 15px 20px; color: var(--paper); background: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-bar .legal-toc { top: 62px; }

@media (max-width: 760px) {
  .content-shell { padding: 65px 0 85px; }
  .post-grid { grid-template-columns: 1fr; }
  .archive-hero h1, .entry-header h1, .error-page h1 { font-size: 52px; letter-spacing: -2px; }
  .post-card__body { padding: 26px; }
  .entry-content { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Version 2 refinements
   -------------------------------------------------------------------------- */

.tqg-generator .quote-stage blockquote footer a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.tqg-generator .quote-stage blockquote footer a:hover { color: var(--accent-dark); }
.daily-card__quote a { text-decoration: underline; text-decoration-color: rgba(30,41,37,.28); text-underline-offset: 4px; }

.author-list a {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 2fr 2fr 40px;
  align-items: center;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: background .2s, transform .2s;
}
.author-list a:hover { background: var(--paper-deep); transform: translateX(4px); }
.author-list a:focus-visible { position: relative; z-index: 2; }

.site-footer { min-height: 0; }
.site-footer .footer-meta { margin: 0; }

/* Empty ad placements are part of the layout architecture but remain invisible
   until trusted ad HTML is supplied through the tqg_ad_slot_html PHP filter. */
.ad-slot.is-empty { display: none; }
.ad-slot:not(.is-empty) {
  width: min(1120px, calc(100% - 40px));
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 40px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

/* Journal archive */
.archive-hero--centered { max-width: 940px; margin: 0 auto 70px; text-align: center; }
.archive-hero--centered > p { max-width: 680px; margin-left: auto; margin-right: auto; }
.journal-archive .post-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card__body { flex: 1; display: flex; flex-direction: column; }
.post-card__body .text-link { margin-top: auto; align-self: flex-start; }
.post-card h2 { overflow-wrap: anywhere; }

/* Single article layout */
.article-layout {
  width: min(1360px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(45px, 6vw, 90px);
  align-items: start;
  margin: 0 auto;
  padding: 90px 0 120px;
}
.article-layout .single-entry { max-width: none; min-width: 0; }
.entry-header--article {
  max-width: 1050px;
  margin: 0 auto 62px;
  text-align: center;
}
.entry-header--article h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.7vw, 96px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -4px;
  overflow-wrap: anywhere;
}
.entry-deck {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}
.article-layout .entry-featured { max-width: 1040px; margin: 0 auto 65px; }
.article-layout .entry-featured img { width: 100%; max-height: 650px; object-fit: cover; }
.article-sidebar { position: sticky; top: 40px; padding-top: 150px; }
.admin-bar .article-sidebar { top: 72px; }
.sidebar-card { padding: 30px; border: 1px solid var(--line); background: var(--paper-deep); }
.sidebar-card h2 { margin: 10px 0 15px; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.08; }
.sidebar-card > p:not(.kicker) { color: var(--ink-soft); font-family: var(--serif); line-height: 1.6; }

/* Reset legacy WordPress article markup so old posts inherit the new theme. */
.article-layout .entry-content {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.78;
}
.article-layout .entry-content > * {
  width: auto;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.article-layout .entry-content > .alignwide,
.article-layout .entry-content > .wp-block-media-text,
.article-layout .entry-content > .wp-block-columns,
.article-layout .entry-content > .wp-block-gallery,
.article-layout .entry-content > figure.alignwide {
  max-width: 1040px;
}
.article-layout .entry-content > .alignfull { max-width: none; }
.article-layout .entry-content p,
.article-layout .entry-content li {
  font-family: var(--serif) !important;
  font-size: 19px !important;
  line-height: 1.78 !important;
}
.article-layout .entry-content p { margin-top: 0; margin-bottom: 1.35em; }
.article-layout .entry-content ul,
.article-layout .entry-content ol { padding-left: 1.35em; }
.article-layout .entry-content li { margin-bottom: .55em; }
.article-layout .entry-content h1,
.article-layout .entry-content h2,
.article-layout .entry-content h3,
.article-layout .entry-content h4 {
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
}
.article-layout .entry-content h1 { font-size: 48px !important; }
.article-layout .entry-content h2 { font-size: 42px !important; }
.article-layout .entry-content h3 { font-size: 31px !important; }
.article-layout .entry-content h4 { font-size: 24px !important; }
.article-layout .entry-content > h1:first-child { display: none; }
.article-layout .entry-content .wp-block-navigation,
.article-layout .entry-content nav.wp-block-navigation,
.article-layout .entry-content .legacy-navigation { display: none !important; }
.article-layout .entry-content .wp-block-media-text {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr) !important;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: 55px;
  margin-bottom: 55px;
}
.article-layout .entry-content .wp-block-media-text.has-media-on-the-right {
  grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr) !important;
}
.article-layout .entry-content .wp-block-media-text__media { margin: 0; }
.article-layout .entry-content .wp-block-media-text__media img { display: block; width: 100%; height: auto; }
.article-layout .entry-content .wp-block-media-text__content { padding: 0 !important; }
.article-layout .entry-content .wp-block-columns { gap: clamp(28px, 4vw, 55px); }
.article-layout .entry-content figure { margin-top: 2em; margin-bottom: 2em; }
.article-layout .entry-content figcaption { margin-top: 10px; color: var(--ink-soft); font-family: var(--sans); font-size: 12px; line-height: 1.5; }
.article-layout .entry-content blockquote {
  margin-top: 2.2em;
  margin-bottom: 2.2em;
  padding: 26px 0 26px 35px;
  border-left: 3px solid var(--accent);
  font-size: 1.35em;
  line-height: 1.45;
}
.article-layout .entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.article-layout .entry-content th,
.article-layout .entry-content td { padding: 13px; border: 1px solid var(--line); text-align: left; }
.article-layout .entry-footer { max-width: 760px; margin: 65px auto 0; }

/* Supporting and legal pages */
.support-page,
.authors-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 95px 0 125px; }
.support-hero { max-width: 930px; margin-bottom: 80px; }
.support-hero h1,
.author-profile__header h1 {
  margin: 14px 0 25px;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -4px;
  overflow-wrap: anywhere;
}
.support-hero > p:not(.kicker):not(.legal-updated) {
  max-width: 700px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
.support-copy { max-width: 800px; margin-left: auto; margin-right: auto; }
.support-copy section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.support-copy section:first-of-type { padding-top: 0; }
.support-copy h2 { margin: 0 0 20px; font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1.12; letter-spacing: -1.2px; }
.support-copy h3 { margin: 30px 0 10px; font-size: 14px; }
.support-copy p,
.support-copy li { color: var(--ink-soft); font-family: var(--serif); font-size: 17px; line-height: 1.78; }
.support-copy a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.support-copy code { padding: 2px 6px; background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.legal-document .support-hero { margin-bottom: 55px; }
.legal-note { max-width: 800px; margin: 0 auto 55px; }
.operator-card { margin-top: 25px; padding: 25px 28px; border: 1px solid var(--line); background: var(--white); }
.operator-card p { margin: 8px 0; }

/* Authors directory */
.authors-directory .archive-hero { max-width: 900px; }
.author-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.author-directory-card { min-height: 280px; display: flex; flex-direction: column; padding: 38px; background: var(--white); transition: background .2s, transform .2s; }
.author-directory-card:hover { z-index: 1; background: var(--paper-deep); transform: translateY(-3px); }
.author-directory-card > span { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.author-directory-card h2 { margin: 35px 0 12px; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.05; }
.author-directory-card p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 1.55; }
.author-directory-card b { margin-top: auto; padding-top: 30px; color: var(--accent-dark); font-size: 11px; }
.author-profile { max-width: 1040px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 60px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.author-profile__header { max-width: 900px; }
.author-profile__role { color: var(--ink-soft); font-family: var(--serif); font-size: 20px; }
.author-profile__body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; align-items: start; margin-top: 70px; padding-top: 55px; border-top: 1px solid var(--line); }
.author-profile__body p { margin-top: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 20px; line-height: 1.75; }
.author-profile__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

@media (max-width: 1050px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .article-sidebar .sidebar-card { max-width: 760px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .author-list a { grid-template-columns: 42px 1fr 25px; padding: 23px 8px; }
  .author-list a small { display: none; }
  .article-layout { width: min(100% - 32px, 1360px); padding: 62px 0 85px; }
  .entry-header--article { margin-bottom: 42px; }
  .entry-header--article h1 { font-size: 50px; letter-spacing: -2.5px; }
  .entry-deck { font-size: 18px; }
  .article-layout .entry-featured { margin-bottom: 42px; }
  .article-layout .entry-content p,
  .article-layout .entry-content li { font-size: 17px !important; }
  .article-layout .entry-content h1 { font-size: 39px !important; }
  .article-layout .entry-content h2 { font-size: 34px !important; }
  .article-layout .entry-content h3 { font-size: 27px !important; }
  .article-layout .entry-content .wp-block-media-text,
  .article-layout .entry-content .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .article-layout .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { grid-row: 1; }
  .support-page,
  .authors-page { padding: 65px 0 90px; }
  .support-hero { margin-bottom: 55px; }
  .support-hero h1,
  .author-profile__header h1 { font-size: 52px; letter-spacing: -2.5px; }
  .support-copy h2 { font-size: 34px; }
  .support-copy section { padding: 45px 0; }
  .author-directory-grid { grid-template-columns: 1fr; }
  .author-directory-card { min-height: 235px; padding: 30px; }
  .author-profile__body { grid-template-columns: 1fr; gap: 35px; margin-top: 45px; padding-top: 40px; }
  .author-profile__body p { font-size: 18px; }
}

/* Final article scale: intentionally calmer than the original oversized post layout. */
.entry-header--article h1 {
  font-size: clamp(46px, 5.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -3px;
}
@media (max-width: 760px) {
  .entry-header--article h1 { font-size: 44px; letter-spacing: -2px; }
}
