/*
Theme Name: GetWitty Studio
Version: 2.0.5
Author: GetWitty
Description: Editorial WordPress multisite theme for GetWitty and its topic hubs.
Text Domain: getwitty-studio
*/

:root {
  --ink: #171713;
  --ink-soft: #2b2b25;
  --paper: #f7f6f0;
  --white: #fff;
  --line: #d8d7ce;
  --muted: #65665f;
  --lime: #c8f04b;
  --coral: #ff6b4a;
  --sky: #78c8f6;
  --gold: #e8b647;
  --violet: #a895ff;
  --content: 1180px;
  --reading: 760px;
  --shadow: 0 18px 50px rgba(23, 23, 19, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-shell { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-title,
.display-title,
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}
.section-title { margin: 0; font-size: 3.5rem; line-height: 1.02; }
.section-copy { max-width: 610px; margin: 14px 0 0; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.text-link { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.text-link:hover { text-decoration-color: var(--coral); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--lime); }
.button--bright { background: var(--lime); color: var(--ink); }
.button--light { background: var(--white); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 74px;
  background: rgba(247, 246, 240, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.48rem;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: Inter, sans-serif;
  font-size: .78rem;
  font-weight: 900;
}
.topic-flag {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: .88rem; font-weight: 800; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.header-search { position: relative; }
.header-search input {
  width: 176px;
  height: 40px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header-search svg { width: 18px; height: 18px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.mobile-panel { display: none; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Homepage hero */
.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 74px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-mosaic figure { margin: 0; min-width: 0; height: 100%; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.hero-mosaic::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 12, .58); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 100px 0 64px; }
.hero-kicker { display: inline-block; margin-bottom: 22px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; background: rgba(23,23,19,.55); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.home-hero h1 { max-width: 850px; margin: 0; color: var(--white); font-size: 8.6rem; line-height: .82; }
.hero-deck { max-width: 650px; margin: 28px 0 0; font-size: 1.4rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: .83rem; font-weight: 700; }

.ticker { overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--lime); }
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker a { display: inline-flex; align-items: center; gap: 15px; min-height: 48px; padding: 0 28px; font-size: .8rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.ticker a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.home-section { padding: 86px 0; }
.home-section--white { background: var(--white); }
.home-section--ink { background: var(--ink); color: var(--white); }

/* Cards */
.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.post-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card--featured { grid-column: span 7; grid-row: span 2; }
.post-card--wide { grid-column: span 5; }
.post-card-visual { position: relative; min-height: 180px; display: grid; place-items: center; overflow: hidden; background: var(--card-color, var(--sky)); }
.post-card--featured .post-card-visual { min-height: 360px; }
.post-card-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-card-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(23,23,19,.35)); }
.topic-stamp { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 9px; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.post-card h3 { margin: 0; font-size: 1.42rem; line-height: 1.17; }
.post-card--featured h3 { font-size: 3rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.post-card-excerpt { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.post-card-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card-meta .dot::before { content: "\00b7"; margin-right: 10px; }

/* Topics */
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-card { position: relative; min-height: 224px; padding: 28px 26px 26px; border: 1px solid rgba(255,255,255,.16); border-top: 4px solid var(--topic-color, var(--lime)); border-radius: 8px; background: rgba(255,255,255,.035); text-align: left; text-decoration: none; overflow: hidden; transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.topic-card::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--topic-color, var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.topic-card:hover { background: var(--topic-color, var(--lime)); color: var(--ink); transform: translateY(-5px); border-color: var(--topic-color, var(--lime)); box-shadow: 0 14px 0 rgba(0,0,0,.2); }
.topic-card:hover::after { transform: scaleX(1); }
.topic-card-icon { display: block; width: 58px; height: 58px; object-fit: contain; filter: grayscale(1) brightness(1.25) contrast(2.8); mix-blend-mode: screen; opacity: .98; transition: transform .22s ease; }
.topic-card:hover .topic-card-icon { transform: scale(1.14) rotate(-3deg); }
.topic-card h3 { margin: 20px 0 9px; color: var(--white); font-size: 1.45rem; line-height: 1.1; }
.topic-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .82rem; }
.topic-card:hover h3, .topic-card:hover p { color: var(--ink); }

/* Voices */
.voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.voice-card { position: relative; min-height: 410px; overflow: hidden; border-radius: 8px; background: var(--ink); color: var(--white); }
.voice-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(10,10,8,.92)); }
.voice-card-copy { position: absolute; inset: auto 20px 20px; z-index: 2; }
.voice-card h3 { margin: 0; font-size: 1.7rem; }
.voice-card p { margin: 5px 0 0; color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 700; }
.voice-card a { position: absolute; inset: 0; z-index: 3; }

.trust-band { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--gold); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 34px; border-right: 1px solid var(--ink); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 8px; font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; }
.trust-item p { margin: 0; font-size: .87rem; }

/* Page and archive heroes */
.page-hero { padding: 78px 0 66px; border-bottom: 1px solid var(--ink); background: var(--hero-color, var(--sky)); }
.page-hero h1 { max-width: 930px; margin: 0; font-size: 6.8rem; line-height: .92; }
.page-hero p { max-width: 650px; margin: 22px 0 0; font-size: 1.12rem; }
.archive-wrap { padding: 70px 0 96px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.archive-grid .post-card { grid-column: auto; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 4px; background: var(--white); font-weight: 800; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); }

/* Niche hub */
.niche-hero { padding: 84px 0 68px; border-bottom: 1px solid var(--ink); background: var(--niche-color, var(--sky)); }
.niche-hero-inner { display: grid; grid-template-columns: 1fr 280px; align-items: end; gap: 60px; }
.niche-hero h1 { margin: 0; font-size: 7rem; line-height: .88; }
.niche-hero p { max-width: 650px; margin: 24px 0 0; font-size: 1.1rem; }
.niche-icon-large { width: 210px; height: 210px; justify-self: end; object-fit: contain; }
.niche-byline { margin-top: 18px; font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.empty-state { padding: 65px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-align: center; }

/* Single article */
.reading-progress { position: fixed; left: 0; top: 74px; z-index: 110; width: 0; height: 3px; background: var(--coral); }
.admin-bar .reading-progress { top: 106px; }
.article-hero { padding: 66px 0 54px; border-bottom: 1px solid var(--line); background: var(--white); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 60px; align-items: center; }
.article-topic { display: inline-flex; padding: 5px 9px; border: 1px solid var(--ink); border-radius: 4px; background: var(--topic-color, var(--lime)); font-size: .72rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.article-hero h1 { margin: 20px 0 0; font-size: 5.4rem; line-height: .98; }
.article-deck { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.article-meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.article-author-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--ink); border-radius: 8px; background: var(--topic-color, var(--sky)); box-shadow: 13px 13px 0 var(--topic-color, var(--sky)); }
.article-author-portrait img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 250px; justify-content: space-between; gap: 70px; padding: 56px 0 96px; }
.article-disclosure { margin: 0 0 34px; padding: 14px 16px; border-left: 4px solid var(--gold); background: #fff8df; color: var(--ink-soft); font-size: .82rem; }
.article-disclosure a { font-weight: 800; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.82; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { margin: 2.3em 0 .65em; font-size: 2rem; line-height: 1.15; }
.article-content h3 { margin: 1.9em 0 .55em; font-size: 1.45rem; line-height: 1.2; }
.article-content p { margin: 0 0 1.35em; }
.article-content ul, .article-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.article-content li { margin-bottom: .6em; }
.article-content blockquote { margin: 2em 0; padding: 12px 0 12px 24px; border-left: 5px solid var(--coral); font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; }
.article-content a { text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-content img { border-radius: 8px; }
.article-content .wp-block-button__link { font-family: Inter, sans-serif; }
.article-aside { position: sticky; top: 104px; align-self: start; }
.toc { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.toc-title { margin: 0 0 10px; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 8px 0; color: var(--muted); font-size: .78rem; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.author-note { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.author-note img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.author-note strong { display: block; margin-top: 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
.author-note p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.related-section { padding: 72px 0; border-top: 1px solid var(--ink); background: var(--white); }

/* Generic page content */
.page-content { width: min(calc(100% - 40px), 820px); margin-inline: auto; padding: 64px 0 96px; }
.page-content > h2 { margin-top: 2.2em; font-size: 2rem; }
.page-content a { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* Writer archives */
.writer-archive-hero { padding: 72px 0 66px; background: var(--writer-color, var(--sky)); color: var(--ink); }
.writer-archive-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 42px; align-items: end; }
.writer-archive-copy h1 { margin: 0; font-size: clamp(3.6rem, 8vw, 7.4rem); line-height: .9; }
.writer-archive-copy > p:not(.eyebrow) { max-width: 560px; margin: 22px 0; font-size: 1.1rem; }
.writer-archive-copy .text-link { color: var(--ink); }
.writer-archive-portrait { width: 190px; aspect-ratio: 4 / 5; justify-self: end; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); box-shadow: 12px 12px 0 var(--ink); }
.writer-archive-portrait img { width: 100%; height: 100%; object-fit: cover; }
.writer-archive-content { padding: 70px 0 100px; background: var(--paper); }
.gw-writer-card-small, .gwa-card { position: relative; }
.gw-writer-card--linked, .gwa-card--linked { cursor: pointer; }
.gw-writer-card-link { position: absolute; inset: 0; z-index: 2; }

/* Products */
.products-hero { padding: 72px 0 66px; background: var(--lime); color: var(--ink); }
.products-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 40px; align-items: end; }
.products-hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.8rem, 7vw, 7.2rem); line-height: .9; letter-spacing: 0; }
.products-hero p:not(.eyebrow) { max-width: 650px; margin: 24px 0 0; font-size: 1.1rem; }
.products-hero-mark { justify-self: end; font: 800 9rem/.7 Inter, sans-serif; color: var(--coral); transform: rotate(-12deg); }
.products-catalog { padding: 46px 0 100px; background: var(--paper); }
.product-disclosure { max-width: 920px; margin: 0 auto 54px; padding: 18px 20px; border-left: 5px solid var(--coral); background: var(--white); color: var(--muted); font-size: .86rem; line-height: 1.6; }
.product-disclosure strong { color: var(--ink); }
.product-group { margin-top: 58px; }
.product-group-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; border-bottom: 2px solid var(--group-color, var(--ink)); padding-bottom: 14px; }
.product-group-header h2 { margin: 0; font-size: 2.35rem; line-height: 1; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--group-color, var(--coral)); background: var(--white); display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 7px 7px 0 var(--group-color, var(--lime)); }
.product-card-mark { margin-bottom: 22px; color: var(--group-color, var(--coral)); font: 800 2rem/1 Inter, sans-serif; }
.product-card h3 { max-width: 30ch; margin: 0 0 10px; font-size: 1.35rem; line-height: 1.1; }
.product-card p { margin: 0 0 22px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.product-card p a { color: var(--ink); text-decoration-color: var(--group-color, var(--coral)); text-decoration-thickness: 2px; }
.product-card .button { margin-top: auto; }
.button--small { padding: 10px 14px; font-size: .76rem; }
.products-empty { max-width: 700px; margin: 40px auto 0; padding: 54px 36px; border: 1px solid var(--line); border-top: 6px solid var(--gold); background: var(--white); text-align: center; }
.products-empty h2 { margin: 0; font-size: 2.7rem; line-height: 1; }
.products-empty p:not(.eyebrow) { margin: 16px auto 26px; max-width: 520px; color: var(--muted); }
.page-template-page-writers .writers-content { width: 100%; max-width: none; }
.page-template-page-writers .wp-block-post-title { display: none; }
.search-form-large { display: flex; gap: 10px; max-width: 680px; margin-top: 30px; }
.search-form-large input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); }

/* Footer */
.site-footer { padding: 64px 0 28px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 46px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 330px; color: rgba(255,255,255,.62); font-size: .88rem; }
.footer-title { margin: 0 0 14px; color: var(--lime); font-family: Inter, sans-serif; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.5); font-size: .75rem; }

/* Legacy writers page: preserve all author content while integrating it visually. */
.page-id-31 .entry-content { background: var(--paper); }
.page-id-31 .writers-content > div[style*="width:100vw"] { width: 100% !important; margin-left: 0 !important; }
.page-id-31 .gw-writer-card-small { border-radius: 8px !important; box-shadow: none !important; }
.page-id-31 .gw-writer-card-small:hover { box-shadow: 7px 7px 0 var(--lime) !important; }
.page-id-31 .gw-writer-img-wrap { background: var(--ink); }
.page-id-31 .gw-writer-persona { border-radius: 4px !important; background: var(--lime) !important; color: var(--ink) !important; }

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

@media (max-width: 1020px) {
  .section-title { font-size: 2.8rem; }
  .home-hero h1 { font-size: 6rem; }
  .page-hero h1 { font-size: 4.7rem; }
  .niche-hero h1 { font-size: 5rem; }
  .article-hero h1 { font-size: 4rem; }
  .primary-nav, .header-search { display: none; }
  .menu-toggle { display: block; }
  .mobile-panel { display: none; position: absolute; top: 74px; left: 0; right: 0; height: calc(100vh - 74px); padding: 26px 20px; overflow-y: auto; background: var(--paper); }
  .menu-open .mobile-panel { display: block; }
  .mobile-panel ul { margin: 0; padding: 0; list-style: none; }
  .mobile-panel li { border-bottom: 1px solid var(--line); }
  .mobile-panel a { display: block; padding: 15px 4px; font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; font-weight: 800; text-decoration: none; }
  .mobile-panel .header-search { display: block; margin-top: 24px; }
  .mobile-panel .header-search input { width: 100%; height: 50px; }
  .mobile-panel .header-search button { top: 9px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card, .post-card--featured, .post-card--wide { grid-column: auto; grid-row: auto; }
  .post-card--featured .post-card-visual { min-height: 260px; }
  .topic-grid, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 35px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .admin-bar .site-header { top: 46px; }
  .site-shell, .reading-shell, .hero-content { width: min(calc(100% - 28px), var(--content)); }
  .topic-flag { display: none; }
  .home-hero { min-height: 620px; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); }
  .hero-mosaic figure:nth-child(n+3) { display: none; }
  .hero-content { padding: 80px 0 44px; }
  .home-hero h1 { font-size: 4rem; }
  .hero-deck { font-size: 1rem; }
  .home-section { padding: 60px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .article-grid, .archive-grid, .topic-grid, .voice-grid, .trust-grid { grid-template-columns: 1fr; }
  .products-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .products-hero-mark { justify-self: start; font-size: 6rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-group-header { align-items: start; flex-direction: column; }
  .writer-archive-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .writer-archive-portrait { justify-self: start; width: 150px; }
  .post-card, .post-card--featured, .post-card--wide { grid-column: auto; }
  .topic-card { min-height: 170px; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--ink); }
  .trust-item:last-child { border-bottom: 0; }
  .voice-card { min-height: 470px; }
  .page-hero { padding: 58px 0 50px; }
  .page-hero h1 { font-size: 3.6rem; }
  .niche-hero-inner, .article-hero-grid { grid-template-columns: 1fr; }
  .niche-icon-large { width: 120px; height: 120px; justify-self: start; order: -1; }
  .article-author-portrait { display: none; }
  .article-hero { padding: 45px 0 40px; }
  .article-hero h1 { font-size: 3rem; }
  .article-layout { padding: 42px 0 70px; }
  .article-content { font-size: 1.04rem; }
  .article-content h2 { font-size: 1.65rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}
