/*
Theme Name: Adam Bicknell Almanac
Theme URI: https://adam.bicknell.uk
Author: Adam Bicknell
Author URI: https://adam.bicknell.uk
Description: WordPress conversion of the Adam Bicknell personal almanac site, preserving the archive layout, content types, JSON-LD, SEO metadata, navigation, dark mode, and reading preferences from the current Next.js build.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: adam-bicknell
*/

/* Design CSS mirrored from `adam.bicknell.uk/styles/globals.css`. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Inter:wght@400;500;600&display=swap");
:root {
  --ivory: #f8f3ea;
  --parchment: #f1e7d8;
  --blush: #f6e5e7;
  --sage: #eaf1e8;
  --sky: #eaf1f7;
  --ink: #182033;
  --charcoal: #2b2523;
  --stone: #6f665f;
  --dusty: #7da6b8;
  --dusty-deep: #4f7f94;
  --gold: #c9a85e;
  --gold-border: #ad9050;
  --taupe: #d9c8b3;
  --paper: rgba(255, 252, 246, 0.82);
  --glass: rgba(255, 255, 255, 0.56);
  --hero-button-text: #545653;
  --reminder-text: #ab7350;
  --text-scale: 1;
}
:root[data-theme="dark"] {
  --ivory: #101522;
  --parchment: #181e2c;
  --blush: rgba(197, 145, 151, 0.16);
  --sage: rgba(143, 169, 130, 0.16);
  --sky: rgba(142, 184, 202, 0.16);
  --paper: rgba(24, 30, 44, 0.72);
  --glass: rgba(24, 30, 44, 0.78);
  --ink: #f5ebdd;
  --charcoal: #e9dcc8;
  --stone: #b8aa96;
  --taupe: rgba(245, 235, 221, 0.16);
  --dusty: #8eb8ca;
  --dusty-deep: #a9cfdb;
  --gold: #d1b46f;
  --hero-button-text: #f5ebdd;
  --reminder-text: #d8a17b;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: calc(1rem * var(--text-scale));
  line-height: 1.75;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 85% 8%, #f7ecd8 0%, transparent 28%),
    radial-gradient(circle at 20% 30%, #f8e8ea 0%, transparent 35%),
    radial-gradient(circle at 75% 90%, #e8f1ec 0%, transparent 30%),
    var(--ivory);
}
:root[data-font="serif"] body {
  font-family: Georgia, serif;
}
.container-archive {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}
.site-main {
  padding: 1rem 0 2rem;
  padding-top: 0;
}
.utility-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 0.8rem 48px;
}
.theme-pill,
.btn-almanac-secondary,
.btn-almanac-primary {
  border-radius: 999px;
  border: 1px solid var(--taupe);
  padding: 0.72rem 1.2rem;
  background: var(--paper);
}
.btn-almanac-primary {
  background: linear-gradient(135deg, var(--dusty-deep), #1d2b4f);
  color: #fdf5e8;
  text-decoration: none;
}
.btn-almanac-secondary {
  text-decoration: none;
  color: var(--ink);
}
.entry-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
}
.entry-card img {
  width: 160px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #d9d9d9;
}
.pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--sage);
  font-size: 0.8rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.book-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
}
.book-cover {
  height: 260px;
  border-radius: 12px;
  background: linear-gradient(#7f1f15, #9b2516);
  color: #e5bb47;
  padding: 1rem;
  font:
    500 2rem/1.1 Fraunces,
    serif;
}
.btn-text-link {
  color: var(--dusty-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0 1px;
  background-repeat: no-repeat;
  transition:
    background-size 0.22s ease,
    color 0.22s ease;
}
.btn-text-link:hover {
  background-size: 100% 1px;
}
.btn-text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2rem 48px;
  border-top: 1px solid var(--taupe);
}
.footer-mark {
  margin: 0;
  text-align: center;
}
.meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.5rem;
}
.reading-wrap {
  position: relative;
}
.reading-panel {
  position: absolute;
  right: 0;
  top: 120%;
  width: 320px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 16px;
}
.segmented {
  display: flex;
}
.segmented button {
  flex: 1;
  padding: 0.45rem;
  border: 1px solid var(--taupe);
  background: #fff;
}

@media (max-width: 960px) {
  body.home .hero-copy {
    max-width: 34ch;
    text-wrap: balance;
  }
}

@media (max-width: 865px) {
  .home-hero-band:before {
    background-size: cover !important;
  }
}

@media (max-width: 545px) {
  .hero-copy {
    max-width: 320px;
    width: 100%;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 12px;
    margin: 0 auto;
  }

  .hero-links a,
  .hero-links button,
  .hero-links .hero-link {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

  .home-hero-band:before {
    background-size: cover !important;
  }

  :root[data-theme="dark"] body.home .hero-copy {
    color: var(--text-strong);
    background: rgba(16, 21, 34, 0.78);
    border: 1px solid var(--border-soft);
  }
}
@media (max-width: 640px) {
  .container-archive {
    padding: 0 20px;
  }
  .glance-grid,
  .entry-card,
  .book-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.about-flow {
  display: grid;
  gap: 1.5rem;
}
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.about-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.about-hero h1 {
  font:
    400 clamp(3rem, 8vw, 5rem)/1 Fraunces,
    serif;
  margin: 0.2rem 0 0;
  color: #101522;
}
.about-image-frame {
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 28px;
  padding: 0.5rem;
  box-shadow: 0 16px 30px rgba(17, 19, 30, 0.06);
}
.about-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 540px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}
.about-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 22px;
  padding: 1.2rem;
  margin: 1.2rem 0 0;
}
.about-quote p {
  margin: 0;
  font:
    italic 600 1.65rem/1.3 Fraunces,
    serif;
}
.about-quote cite {
  color: var(--stone);
}
.quote-leaf {
  font-size: 2rem;
  color: var(--gold);
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-value-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 14px 24px rgba(17, 19, 30, 0.04);
}
.about-value-card h2 {
  margin: 0 0 0.4rem;
  font:
    500 2rem/1.1 Fraunces,
    serif;
}
.about-value-card p {
  margin: 0;
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}
.badge-sage {
  background: #eaf1e8;
  color: #4f7f94;
}
.badge-blush {
  background: #f6e5e7;
  color: #9d6f66;
}
.badge-sky {
  background: #eaf1f7;
}
.badge-peach {
  background: #f6e5cf;
  color: #b1884e;
}
.badge-olive {
  background: #edf2e5;
  color: #74844f;
}
.badge-stone {
  background: #eee8de;
  color: #76695e;
}

:root[data-theme="dark"] .about-value-card span:first-child {
  filter: invert(1) hue-rotate(180deg);
}

.about-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
}
.about-cta h2 {
  margin: 0 0 0.25rem;
  font:
    500 2rem/1.1 Fraunces,
    serif;
}
.about-cta p {
  margin: 0;
}
.about-cta .hero-links {
  margin-top: 0;
  align-self: center;
}
.cta-sprig {
  font-size: 2.2rem;
  color: var(--gold);
}
.footer-side {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.footer-side a {
  color: var(--charcoal);
  text-decoration: none;
}
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.95rem;
}
.footer-socials a {
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.footer-socials a:hover {
  color: var(--accent-gold);
  transform: translateY(-1px);
}
.footer-socials a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 999px;
}
.footer-socials svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 1024px) {
  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-image {
    min-height: 280px;
  }
  .about-cta {
    grid-template-columns: 1fr;
  }
  .about-quote p {
    font-size: 1.35rem;
  }
}
@media (max-width: 640px) {
  .about-values {
    grid-template-columns: 1fr;
  }
  .about-value-card h2 {
    font-size: 1.8rem;
  }
}

.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;
}
.writing-page {
  display: grid;
  gap: 1.5rem;
}
.writing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}
.writing-hero h1 {
  font:
    400 clamp(3rem, 8vw, 5rem)/1 Fraunces,
    serif;
  margin: 0;
  color: #101522;
}
.writing-subtitle {
  font-size: clamp(1.2rem, 2vw, 2rem);
  max-width: 36ch;
  margin: 0;
}
.writing-hero-art img {
  width: 100%;
  max-width: 360px;
  display: block;
  margin-left: auto;
  object-fit: contain;
}
.writing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.2rem;
  align-items: start;
}
.writing-list-card,
.sidebar-panel {
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 18px;
}
.writing-row {
  padding: 1rem 1.2rem;
}
.writing-row + .writing-row {
  border-top: 1px solid var(--taupe);
}
.writing-row-link {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.writing-thumb {
  width: 230px;
  height: 130px;
  border-radius: 14px;
  object-fit: cover;
  background: #d9d9d9;
}
.writing-category {
  font-size: 0.64rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.2rem;
}
:root[data-theme="dark"] .writing-category {
  color: var(--accent-gold);
}
.writing-row h2 {
  margin: 0 0 0.2rem;
  font:
    500 clamp(1.8rem, 3vw, 2.2rem)/1.15 Fraunces,
    serif;
  color: var(--ink);
}
.writing-excerpt {
  margin: 0.2rem 0;
  color: var(--charcoal);
}
.writing-meta {
  margin: 0;
  color: var(--stone);
}
.writing-row-link:hover {
  background: rgba(125, 166, 184, 0.08);
  border-radius: 14px;
}
.writing-active-filter {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--taupe);
  border-radius: 18px;
  background: var(--paper);
}
.writing-active-filter p {
  margin: 0;
  color: var(--stone);
}
.writing-active-filter a {
  color: var(--gold);
  text-decoration: none;
}

.writing-sidebar,
.writing-detail-sidebar,
.videos-detail-sidebar,
.books-detail-sidebar {
  position: sticky;
  top: 3rem;
  margin-top: 20px;
}

.books-sidebar,
.videos-sidebar {
  margin-top: 0;
}

.writing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.writing-sidebar .quote-panel {
  position: static;
}
.sidebar-panel {
  padding: 1.2rem;
}
.sidebar-panel h2 {
  margin: 0 0 1rem;
  font:
    500 2rem/1.1 Fraunces,
    serif;
  color: var(--ink);
}
.sidebar-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.sidebar-list li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}
.sidebar-list li a:hover,
.sidebar-list li a:focus-visible,
.writing-active-filter a:hover,
.writing-active-filter a:focus-visible,
.writing-taxonomy-link:hover,
.writing-taxonomy-link:focus-visible,
.writing-taxonomy-list a:hover,
.writing-taxonomy-list a:focus-visible {
  color: var(--gold);
}
.sidebar-link {
  color: var(--gold);
  text-decoration: none;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.tag-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--taupe);
  background: rgba(255, 255, 255, 0.45);
}
.quote-panel blockquote {
  margin: 0 0 0.6rem;
  font:
    500 2rem/1.45 Fraunces,
    serif;
}
.quote-panel cite {
  color: var(--stone);
}
.quote-mark {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--gold);
  margin: 0;
}
.quote-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.quote-botanical {
  display: block;
  text-align: right;
  font-size: 2rem;
  color: var(--gold);
}
@media (max-width: 1100px) {
  .writing-layout {
    grid-template-columns: 1fr;
  }
  .writing-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  .quote-panel {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .writing-hero {
    grid-template-columns: 1fr;
  }
  .writing-row-link {
    grid-template-columns: 180px 1fr;
  }
  .writing-thumb {
    width: 180px;
    height: 112px;
  }
}
@media (max-width: 640px) {
  .writing-row-link {
    grid-template-columns: 1fr;
  }
  .writing-thumb {
    width: 100%;
    height: 180px;
  }
  .writing-sidebar {
    grid-template-columns: 1fr;
  }
  .writing-sidebar .quote-panel {
    position: static;
  }
}

.writing-detail-page {
  display: grid;
}
.writing-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}
.writing-article h1 {
  font:
    500 clamp(2.8rem, 6vw, 4.4rem)/1.05 Fraunces,
    serif;
  margin: 0.4rem 0 1rem;
  color: var(--ink);
}
.writing-detail-subtitle {
  font:
    400 clamp(1.4rem, 2vw, 2.1rem)/1.4 Fraunces,
    serif;
  margin: 0 0 1rem;
}
.writing-back-link {
  display: inline-block;
  color: #b0894a;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.writing-back-link:focus-visible,
.related-item:focus-visible,
.sidebar-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}
.writing-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  color: var(--stone);
  margin: 1rem 0 1.4rem;
}
.writing-detail-meta .pill {
  background: var(--paper);
  border: 1px solid var(--taupe);
  font-size: 1rem;
  padding: 0.35rem 0.85rem;
}
.writing-taxonomy-link,
.writing-taxonomy-list a {
  color: inherit;
  text-decoration: none;
}
.writing-taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.writing-detail-hero {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--taupe);
  box-shadow: 0 20px 34px rgba(17, 19, 30, 0.08);
}
.writing-body {
  margin-top: 1.4rem;
  font:
    400 clamp(1.22rem, 1.7vw, 1.85rem)/1.85 Fraunces,
    serif;
}
.writing-body p {
  margin: 0 0 1rem;
}
#content
  > div
  > div
  > article
  > div.writing-body
  > p:nth-child(1)::first-letter,
.dropcap::first-letter {
  float: left;
  font-size: 6.5rem;
  line-height: 0.82;
  padding: 0.25rem 0.5rem 0 0;
}
.writing-body blockquote {
  margin: 1.4rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid var(--gold);
}
.writing-body blockquote p {
  margin: 0 0 0.3rem;
}
.writing-body cite {
  color: var(--stone);
}
.writing-detail-divider {
  max-width: 320px;
  margin: 2rem auto 0;
}
.writing-detail-sidebar {
  display: grid;
  gap: 1rem;
}
.writing-detail-card {
  padding: 1.4rem;
  border-radius: 20px;
}
.writing-detail-card h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font:
    500 2rem/1.2 Fraunces,
    serif;
  margin: 0 0 0.7rem;
}
.writing-detail-card h2 span {
  color: var(--gold);
}
.writing-detail-card hr {
  border: 0;
  border-top: 1px solid var(--taupe);
  margin: 1rem 0;
}
.writing-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--stone);
}
.related-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}
.related-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  padding: 0.2rem;
  border-radius: 12px;
}
.related-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--taupe);
}
.related-category {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--stone);
}
.related-item h3 {
  margin: 0rem 0;
  font:
    500 1rem/1.2 Fraunces,
    serif;
}
.related-date {
  margin: 0;
  color: var(--stone);
}
@media (max-width: 1100px) {
  .writing-detail-layout {
    grid-template-columns: 1fr;
  }
  .writing-detail-sidebar,
  .videos-detail-sidebar,
  .books-detail-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  .writing-body {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .writing-article h1 {
    font-size: 2.5rem;
  }
  .writing-body {
    font-size: 1.26rem;
  }
  .related-item {
    grid-template-columns: 74px 1fr;
  }
  .related-item img {
    width: 74px;
    height: 74px;
  }
}

.videos-page {
  display: grid;
  gap: 1.4rem;
}
.videos-hero {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.videos-hero h1 {
  font:
    400 clamp(3rem, 8vw, 5rem)/1 Fraunces,
    serif;
  margin: 0;
  color: #101522;
}
.videos-subtitle {
  font-size: clamp(1.1rem, 1.7vw, 1.95rem);
  max-width: 30ch;
  margin: 0 0 1rem;
}
.videos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.videos-hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.videos-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 440px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--taupe);
  box-shadow: 0 18px 32px rgba(17, 19, 30, 0.08);
}
.videos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}
.videos-section-title {
  font:
    500 2.5rem/1.1 Fraunces,
    serif;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.videos-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.video-card {
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(17, 19, 30, 0.05);
}
.video-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.video-card-link:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
.video-thumb-wrap,
.video-related-thumb-wrap,
.video-player-card {
  position: relative;
}
.video-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(248, 243, 234, 0.85);
  color: #3a3a3a;
  font-size: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.video-duration-badge {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.22rem 0.5rem;
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(20, 21, 25, 0.8);
  color: #fff;
}

.video-status-badge {
  background: rgba(128, 94, 42, 0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-planned-overlay {
  color: var(--gold);
}
:root[data-theme="dark"] .video-play-overlay {
  background: rgba(16, 21, 34, 0.88);
  color: #f0e2c8;
  border-color: rgba(245, 235, 221, 0.24);
}
:root[data-theme="dark"] .video-planned-overlay {
  color: #d9bd7c;
}
.video-play-overlay::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid currentColor;
  margin-left: 5px;
}
.video-card-body {
  padding: 0.95rem 1rem 1rem;
}
.video-card-body h3 {
  margin: 0 0 0.15rem;
  font:
    500 2rem/1.2 Fraunces,
    serif;
}
.video-card-body p {
  margin: 0;
  color: var(--charcoal);
}
.video-meta {
  margin-top: 0.45rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.videos-subscribe-panel {
  margin-top: 1rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.videos-subscribe-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 2rem;
}
.videos-subscribe-panel h2 {
  margin: 0 0 0.2rem;
  font:
    500 2rem/1.2 Fraunces,
    serif;
}
.videos-subscribe-panel p {
  margin: 0;
}
.videos-subscribe-form {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.videos-subscribe-form input {
  min-width: 270px;
  border: 1px solid var(--taupe);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--charcoal);
  max-width: 400px;
  width: 400px;
}
.video-related-item h3 {
  margin: 0 0 0.35rem;
  font:
    500 1rem/1.2 Fraunces,
    serif;
}
.video-related-thumb-wrap img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--taupe);
}
.video-related-thumb-wrap .video-duration-badge {
  font-size: 0.86rem;
}
.video-detail-page .writing-detail-layout {
  grid-template-columns: minmax(0, 1fr) 350px;
}
.video-player-card .writing-detail-hero {
  display: block;
}
.video-player-overlay {
  border: 0;
  width: 92px;
  height: 92px;
  font-size: 2rem;
  backdrop-filter: blur(4px);
}
.video-summary {
  margin-top: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 20px;
  padding: 1.2rem;
}
.video-summary h2 {
  margin: 0 0 0.8rem;
  font:
    500 2.15rem/1.15 Fraunces,
    serif;
}
.video-summary p {
  margin: 0 0 0.9rem;
  font:
    400 1.08rem/1.85 Inter,
    sans-serif;
}
.video-summary blockquote {
  margin: 1rem 0;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 2px solid var(--gold);
}
.video-summary cite {
  color: var(--stone);
}
@media (max-width: 1250px) {
  .videos-hero {
    grid-template-columns: 1fr 1fr;
  }
  .videos-browse-panel {
    grid-column: 1/-1;
  }
  .videos-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .videos-layout,
  .video-detail-page .writing-detail-layout {
    grid-template-columns: 1fr;
  }
  .videos-sidebar,
  .videos-detail-sidebar,
  .books-sidebar,
  .books-detail-sidebar {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  .videos-subscribe-panel {
    grid-template-columns: 1fr;
  }
  .videos-subscribe-form {
    flex-wrap: wrap;
  }
  .videos-subscribe-form input {
    min-width: 0;
    flex: 1;
  }
}
@media (max-width: 700px) {
  .videos-hero {
    grid-template-columns: 1fr;
  }
  .videos-hero-art img {
    min-height: 220px;
  }
  .videos-featured-grid {
    grid-template-columns: 1fr;
  }
  .video-thumb {
    height: 220px;
  }
}

.notes-hero-art img {
  max-width: 320px;
  border-radius: 20px;
  border: 1px solid var(--taupe);
  padding: 0.5rem;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(17, 19, 30, 0.05);
}
.notes-list-card {
  background: linear-gradient(
    180deg,
    rgba(255, 252, 246, 0.85),
    rgba(250, 245, 238, 0.8)
  );
}
.notes-row-link {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}
.notes-thumb {
  width: 120px;
  height: 95px;
  border-radius: 12px;
}
.notes-row h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}
.notes-row .writing-category {
  font-size: 0.8rem;
  text-transform: uppercase;
}
.notes-row-link:hover {
  background: rgba(234, 241, 232, 0.45);
}
.notes-detail-hero {
  aspect-ratio: 16/7.5;
  max-width: 920px;
}
.notes-body {
  max-width: 38ch;
  font-size: clamp(1.1rem, 1.3vw, 1.42rem);
}
.notes-body .dropcap::first-letter {
  font-size: 3.8rem;
}
@media (max-width: 900px) {
  .notes-row-link {
    grid-template-columns: 1fr;
  }
  .notes-thumb {
    width: 100%;
    height: 165px;
  }
  .notes-body {
    max-width: none;
  }
}

.books-page,
.book-storefront {
  display: grid;
  gap: 1.3rem;
}
.books-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}
.books-hero h1,
.storefront-panel h1 {
  font:
    400 clamp(3rem, 8vw, 5rem)/1 Fraunces,
    serif;
  margin: 0;
  color: #101522;
}
.books-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  max-width: 36ch;
}
.books-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.books-hero-art img {
  width: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--taupe);
  background: linear-gradient(135deg, #efe2cd, #d6c2a5);
}
.books-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 24px;
  padding: 1.2rem;
}
.books-feature-cover,
.storefront-cover {
  width: 280px;
  height: 360px;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--taupe);
  background: linear-gradient(180deg, #81261f, #952a22);
  object-fit: cover;
}
.books-feature h2,
.books-section-title,
.storefront-section h2 {
  font:
    500 clamp(2rem, 3vw, 2.8rem)/1.1 Fraunces,
    serif;
  margin: 0.2rem 0 0.4rem;
  color: var(--ink);
}
.books-feature-subtitle {
  font:
    400 1.3rem/1.45 Fraunces,
    serif;
  margin: 0.1rem 0 0.6rem;
}
.books-meta-grid {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.books-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.book-card-shelf {
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 18px;
  padding: 1rem;
}
.book-card-shelf h3 {
  margin: 0 0 0.3rem;
  font:
    500 1.55rem/1.2 Fraunces,
    serif;
}
.books-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.storefront-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.storefront-panel,
.storefront-section,
.storefront-cta {
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 22px;
  padding: 1.2rem;
}
.format-toggle {
  display: inline-flex;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 0.9rem;
}
.format-toggle button {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.95rem;
  font: inherit;
}
.format-toggle .is-active {
  background: var(--dusty-deep);
  color: #fff;
}
.storefront-helper {
  color: var(--stone);
  margin: 0.6rem 0;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.preview-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--taupe);
  background: linear-gradient(135deg, #efe2cd, #d7c4a8);
}
.book-archive-thumb {
  object-fit: cover;
  background: linear-gradient(180deg, #81261f, #952a22);
}
.books-archive-layout {
  align-items: start;
}
.hero-link.primary {
  background: var(--accent-blue-strong);
  border-color: var(--accent-blue-strong);
  color: #f8f3ea;
}
button.hero-link {
  cursor: pointer;
  font: inherit;
}
:root[data-theme="dark"] .hero-link.primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #101522;
}

@media (max-width: 900px) {
  .books-hero,
  .books-feature,
  .storefront-hero {
    grid-template-columns: 1fr;
  }
  .books-feature-cover {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 7 / 9;
  }
  .books-shelf-grid,
  .books-support-grid {
    grid-template-columns: 1fr 1fr;
  }
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .books-meta-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .books-shelf-grid,
  .books-support-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* v2 fidelity pass */
:root {
  --page-bg: #f8f3ea;
  --surface-main: rgba(255, 252, 246, 0.78);
  --surface-soft: rgba(241, 231, 216, 0.62);
  --surface-sage: rgba(234, 241, 232, 0.72);
  --surface-sky: rgba(234, 241, 247, 0.72);
  --surface-blush: rgba(246, 229, 231, 0.72);
  --surface-gold: rgba(246, 236, 207, 0.72);
  --text-strong: #182033;
  --text-body: #3d4658;
  --text-muted: #6f665f;
  --text-faint: #8b8177;
  --accent-blue: #7da6b8;
  --accent-blue-strong: #4f7f94;
  --accent-sage: #a8be9b;
  --accent-rose: #d7a6a8;
  --accent-gold: #c9a85e;
  --gold-text: #857564;
  --border-soft: rgba(217, 200, 179, 0.78);
}
:root[data-theme="dark"] {
  --page-bg: #101522;
  --surface-main: rgba(24, 30, 44, 0.72);
  --surface-soft: rgba(245, 235, 221, 0.06);
  --surface-sage: rgba(143, 169, 130, 0.14);
  --surface-sky: rgba(142, 184, 202, 0.14);
  --surface-blush: rgba(197, 145, 151, 0.14);
  --surface-gold: rgba(209, 180, 111, 0.12);
  --text-strong: #f5ebdd;
  --text-body: #e9dcc8;
  --text-muted: #b8aa96;
  --text-faint: #918674;
  --accent-blue: #8eb8ca;
  --accent-blue-strong: #a9cfdb;
  --accent-sage: #8fa982;
  --accent-rose: #c59197;
  --accent-gold: #d1b46f;
  --gold-text: #d1b46f;
  --border-soft: rgba(245, 235, 221, 0.16);
}
body {
  color: var(--text-body);
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(246, 229, 231, 0.72),
      transparent 32rem
    ),
    radial-gradient(
      circle at 82% 28%,
      rgba(234, 241, 247, 0.78),
      transparent 34rem
    ),
    radial-gradient(
      circle at 70% 90%,
      rgba(234, 241, 232, 0.8),
      transparent 38rem
    ),
    #f8f3ea;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(
      circle at 18% 16%,
      rgba(142, 184, 202, 0.14),
      transparent 30rem
    ),
    radial-gradient(
      circle at 72% 20%,
      rgba(209, 180, 111, 0.1),
      transparent 30rem
    ),
    radial-gradient(
      circle at 68% 90%,
      rgba(143, 169, 130, 0.1),
      transparent 36rem
    ),
    #101522;
}
.container-archive {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}
.top-nav {
  background: rgba(248, 243, 234, 0.86);
  min-height: 72px;
  border-bottom: 1px solid var(--border-soft);
}
:root[data-theme="dark"] .top-nav {
  background: rgba(16, 21, 34, 0.86);
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
  font:
    500 1.35rem/1 Fraunces,
    serif;
  color: var(--text-strong);
  text-decoration: none;
}
.wordmark-glyph {
  color: var(--accent-gold);
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  vertical-align: -0.18em;
}
.wordmark-glyph svg {
  width: 100%;
  height: 100%;
}
.desktop-nav {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.desktop-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  position: relative;
  text-decoration: none;
  transition: all 0.3s;
}
.desktop-nav a.active {
  color: var(--text-strong);
}
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.05rem;
  width: 36px;
  height: 2px;
  background: var(--accent-gold);
}
.desktop-nav a:hover {
  color: var(--text-strong);
  transition: all 0.3s;
}
.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.mobile-menu-button {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-main);
  color: var(--text-strong);
  cursor: pointer;
}
.mobile-panel {
  display: none;
}

.mobile-menu-button .icon[hidden] {
  display: none;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-main);
}
.theme-toggle button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
}
.theme-toggle button.is-active {
  background: var(--surface-soft);
  color: var(--accent-gold);
}
.icon {
  width: 18px;
  height: 18px;
}
.theme-toggle .sun-icon {
  display: block;
}
.home-hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.home-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  background-color: #fbf6f0;
}

body.home .home-hero-band::before {
  background-image: url("assets/images/Hero-Large.jpg");
}

:root[data-theme="dark"] .home-hero-band {
  background-color: #0d0802;
}

:root[data-theme="dark"] .home-hero-band::before {
  filter: invert(1) hue-rotate(180deg);
}

:root[data-theme="dark"] .glance-card div:first-child {
  filter: invert(1) hue-rotate(180deg);
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: clamp(25rem, 34vw, 28rem);
  padding-block: clamp(2rem, 8vw, 3rem);
}

.home-hero-grid {
  display: grid;
  width: 100%;
  gap: 2rem;
  align-items: center;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.home-flow {
  display: grid;
  gap: 1.4rem;
}
.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.home-main-grid {
  --home-top-row-height: 475px;
  --home-bottom-row-height: 138px;
  --home-grid-gap: 20px;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 30fr) minmax(0, 26fr);
  gap: var(--home-grid-gap);
  align-items: stretch;
}
.home-feature-column {
  display: grid;
  grid-template-rows: var(--home-top-row-height) var(--home-bottom-row-height);
  gap: var(--home-grid-gap);
  min-width: 0;
}
.home-sidebar-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 0.5fr));
  gap: var(--home-grid-gap);
  min-width: 0;
}
.notes-card .section-kicker {
  font-size: 0.74rem;
}
@media (max-width: 1529px) {
  body.home .home-main-grid {
    --home-top-row-height: auto;
    --home-bottom-row-height: auto;
    grid-template-columns: 1fr 1fr;
  }
  body.home .home-sidebar-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}
@media (max-width: 900px) {
  body.home .home-hero {
    min-height: clamp(23rem, 62vw, 26rem);
  }

  body.home .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home .home-main-grid {
    grid-template-columns: 1fr;
  }
  body.home .home-sidebar-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body.home .glance-grid {
    grid-template-columns: 1fr;
  }
  body.home .home-hero {
    min-height: 24rem;
  }

  .hero-links {
    gap: 0.6rem;
  }
}
.hero-title {
  font:
    400 clamp(4.5rem, 7vw, 7.2rem)/1.05 Fraunces,
    serif;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  margin: 0 0 1.25rem;
}
.punctuation {
  color: var(--accent-gold);
}
.symbol-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent-gold);
  max-width: 438px;
  margin: 1rem 0 1.5rem;
}
.symbol-divider span {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
}
.symbol-divider svg {
  width: 100%;
  height: 100%;
}
.symbol-divider::before,
.symbol-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--accent-gold) 45%, transparent);
}
.small-star-divider,
.botanical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin: 1rem 0;
}
.small-star-divider::before,
.small-star-divider::after,
.botanical-divider::before,
.botanical-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 180px;
  background: color-mix(in srgb, var(--accent-gold) 40%, transparent);
}
.small-star-divider svg,
.botanical-divider svg {
  margin-inline: 0.8rem;
}
.botanical-divider {
  margin-top: 1.25rem;
}

.hero-copy {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  line-height: 1.7;
  color: var(--hero-button-text);
  font-family: "Fraunces";
}
.hero-link {
  min-height: 44px;
  padding: 0.66rem 1.4rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border-soft);
  background: var(--surface-main);
  color: var(--hero-button-text);
  text-decoration: none;
  transition: all 0.3s;
}
.hero-link:hover {
  background: var(--accent-blue-strong);
  border-color: var(--accent-blue-strong);
  color: #f8f3ea;
  transition: all 0.3s;
}

.hero-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hero-link .icon,
.hero-link-icon .icon {
  width: 1em;
  height: 1em;
  color: currentColor;
}
:root[data-theme="dark"] .hero-link:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #101522;
  transition: all 0.3s;
}
.almanac-landscape {
  min-height: 330px;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 62% 28%,
      rgba(241, 231, 216, 0.95),
      transparent 5rem
    ),
    radial-gradient(
      120% 60% at 50% 95%,
      rgba(130, 144, 130, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(234, 241, 247, 0.8), rgba(234, 241, 232, 0.7));
}
.home-page .almanac-landscape {
  display: none;
}
.section-kicker {
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.section-kicker.accent {
  color: var(--gold-text);
}
.almanac-card {
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background: var(--surface-main);
  box-shadow: none;
  padding: 1.45rem;
  min-width: 0;
}
.glance-card {
  min-height: 142px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: var(--surface-main);
}
.glance-card h3 {
  font:
    500 1.25rem/1.35 Fraunces,
    serif;
  color: var(--text-strong);
  margin: 0 0 0.25rem;
}
.glance-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}
.glance-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--glance-icon-bg, #eef6fb);
  border: 1px solid var(--glance-icon-colour, #5d8192);
  color: var(--glance-icon-colour, #5d8192);
}
.glance-icon-sky {
  --glance-icon-bg: #eef6fb;
  --glance-icon-colour: #5d8192;
}
.glance-icon-sage {
  --glance-icon-bg: #edf3e6;
  --glance-icon-colour: #64745f;
}
.glance-icon-clay {
  --glance-icon-bg: #f8e9e3;
  --glance-icon-colour: #9a5a49;
}
.glance-icon-gold {
  --glance-icon-bg: #f7eddc;
  --glance-icon-colour: #b28b4d;
}
.recent-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.entry-list {
  display: grid;
  flex: 1;
  min-height: 0;
}
.entry-list-item {
  min-height: 0;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.entry-list-item:first-child {
  padding-top: 0;
}
.entry-list-item:last-child {
  padding-bottom: 0;
  border: 0;
}
.entry-link {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.entry-thumb {
  width: 170px;
  height: 104px;
  border-radius: 10px;
  background: var(--surface-sage);
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
}
.entry-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-block: 0.1rem;
}
.forest-path-thumbnail {
  background: linear-gradient(135deg, #dce5d8, #b6c4ad);
}
.library-window-thumbnail {
  background: linear-gradient(135deg, #d9d0bc, #b8ab8f);
}
.mountain-lake-thumbnail {
  background: linear-gradient(135deg, #c7d9e6, #a8be9b);
}
.entry-category {
  font-size: 0.64rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0;
}
:root[data-theme="dark"] .entry-category {
  color: var(--accent-gold);
}
.entry-title {
  font:
    500 1.1rem/1.22 Fraunces,
    serif;
  color: var(--text-strong);
  margin: 0;
}
.entry-excerpt {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-body);
  margin: 0;
}
.entry-meta {
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin: 0;
}
.card-header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue-strong);
  text-decoration: none;
  position: relative;
  top: -6px;
}
.card-header-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bookshelf-panel {
  overflow: hidden;
}
.bookshelf-card-inner {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  height: calc(100% - 2.7rem);
}
.book-feature-cover {
  display: block;
  width: 100%;
  max-width: 182px;
  height: auto;
  aspect-ratio: 0.62;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(65, 31, 19, 0.16);
}
.book-feature-copy-wrap {
  padding-block: 0.7rem 1.8rem;
}
.book-feature-title {
  font:
    500 1.28rem/1.24 Fraunces,
    serif;
  color: var(--text-strong);
  margin: 0 0 1rem;
}
.book-feature-copy {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 0 1.5rem;
}
.book-entry-link {
  min-height: 36px;
  padding: 0.48rem 0.8rem;
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border-soft);
  background: var(--surface-main);
  color: var(--text-strong);
  text-decoration: none;
  transition: all 0.3s;
}
.book-entry-link:hover {
  background: var(--accent-blue-strong);
  border-color: var(--accent-blue-strong);
  color: #f8f3ea;
}
.margin-note-quote {
  font:
    500 clamp(1.35rem, 2vw, 1rem) / 1.25 Fraunces,
    serif;
  color: var(--text-strong);
  margin-top: 10px;
}
.note-date {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.video-panel {
  background: var(--surface-sky);
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
.video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  display: grid;
  place-items: center;
}
.video-title {
  font:
    500 1.2rem/1.3 Fraunces,
    serif;
  color: var(--text-strong);
  margin: 0;
}
.video-copy {
  color: var(--text-body);
  margin: 0;
}
.reminder-card {
  background: var(--surface-blush);
  height: 100%;
}
.reminder-label {
  margin-top: 0;
  color: var(--reminder-text);
}
.reminder-text {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font:
    500 1.2rem/1.45 Fraunces,
    serif;
  color: var(--text-strong);
  margin: 0;
  width: 70%;
}
.reminder-text svg {
  flex: 0 0 auto;
  color: var(--reminder-text);
}
.video-copy {
  font:
    500 1rem / 1.25 Fraunces,
    serif;
  color: var(--text-strong);
}

.new-here-card {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 1rem;
  align-items: end;
}

.new-here-card p {
  font:
    500 0.8rem/1.5 Fraunces,
    serif;
}

.arch-illustration {
  width: 96px;
  height: 132px;
  border-radius: 48px 48px 20px 20px;
  background: var(--surface-sage);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.arch-illustration-image {
  display: block;
  background-image: url("assets/images/Arch-Illustration.png");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0.8;
}
.new-here-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue-strong);
  text-decoration: none;
}

.footer-grid {
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}
.footer-mark {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  margin: 0;
}
.footer-mark-text-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.footer-mark-text {
  margin: 0;
  font:
    500 0.96rem/1.2 Fraunces,
    serif;
  color: var(--text-strong);
  text-align: center;
  white-space: nowrap;
}
.footer-mark-leaves {
  color: var(--accent-gold);
  width: clamp(70px, 8vw, 150px);
  flex: 0 1 150px;
}

.footer-mark-leaves-left {
  position: relative;
  left: 25px;
  top: 7px;
}

.footer-mark-leaves-right {
  position: relative;
  right: 25px;
  top: 7px;
}
.footer-mark-icon {
  color: var(--accent-gold);
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}
.footer-mark-icon svg {
  width: 100%;
  height: 100%;
  scale: 1.5;
}
@media (max-width: 823px) {
  .nav-shell {
    gap: 0.75rem;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-button {
    display: grid;
    flex-shrink: 0;
  }
  .mobile-panel {
    gap: 0.9rem;
    padding-block: 1rem 1.15rem;
    border-top: 1px solid var(--border-soft);
  }
  .mobile-panel.is-open {
    display: grid;
  }
  .mobile-panel[hidden] {
    display: none !important;
  }
  .mobile-panel .nav-icon-link {
    color: var(--text-strong);
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-panel .nav-icon-link.active {
    color: var(--accent-gold);
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .new-here-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
  }
  .footer-side,
  .footer-socials {
    justify-content: center;
  }
  .footer-mark-text-row {
    gap: 0.45rem;
  }
  .footer-mark-text {
    white-space: normal;
  }
  .footer-mark-leaves {
    width: 58px;
  }
}

@media (max-width: 475px) {
  .container-archive.writing-page,
  .container-archive.books-page,
  .container-archive.videos-page {
    display: block;
  }

  .entry-link,
  .bookshelf-card-inner {
    grid-template-columns: 1fr;
  }

  .entry-thumb,
  .book-feature-cover {
    width: 100%;
    max-width: none;
  }

  .entry-thumb {
    height: auto;
    aspect-ratio: 170 / 104;
  }

  .videos-subscribe-panel p {
    overflow-wrap: anywhere;
  }

  .videos-subscribe-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .videos-subscribe-form input,
  .videos-subscribe-form button {
    width: 100%;
    min-width: 0;
  }
}

.page-hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.page-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}

body.post-type-archive-ab_writing .page-hero-band,
body.tax-writing_category .page-hero-band,
body.tax-writing_tag .page-hero-band {
  --page-hero-band-image: url("assets/images/Hero-Writing.jpg");
}

body.post-type-archive-ab_video .page-hero-band,
body.tax-video_category .page-hero-band {
  --page-hero-band-image: url("assets/images/Hero-Videos.jpg");
}

body.post-type-archive-ab_book .page-hero-band,
body.tax-book_category .page-hero-band {
  --page-hero-band-image: url("assets/images/Hero-Books.jpg");
}

body.page-about .page-hero-band,
body.page-template-template-about-mirrored .page-hero-band {
  --page-hero-band-image: url("assets/images/Hero-About.jpg");
}

.page-hero-band::before {
  background-image: var(--page-hero-band-image);
}

:root[data-theme="dark"] .page-hero-band::before {
  filter: invert(1) hue-rotate(180deg);
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
}

.page-hero-image-space {
  min-height: 330px;
}

.page-hero .hero-links a {
  text-decoration: none;
}

.videos-browse-section {
  display: flex;
  justify-content: flex-end;
}

.videos-browse-section .videos-browse-panel {
  width: min(100%, 420px);
}

.page-simple-section {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-image-space {
    display: none;
  }
}

.sidebar-heading-icon {
  width: 0.82em;
  margin-right: 0.45rem;
  color: var(--gold);
}

.new-here-link.book-entry-link {
  margin-top: 0.2rem;
}

.daily-quote-card {
  background: var(--surface-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.daily-quote-label {
  margin-top: 0;
  color: var(--accent-gold);
}

.daily-quote-text {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font:
    500 1.1rem/1.45 Fraunces,
    serif;
  color: var(--text-strong);
  margin: 0 0 0.75rem;
}

.daily-quote-text svg {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  color: var(--accent-gold);
}

.daily-quote-author {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.videos-subscribe-panel-full {
  width: 100%;
}

/* Book detail storefront */
.book-page {
  min-height: 100vh;
  color: var(--ink);
  padding: clamp(3rem, 6vw, 4.5rem) 0 5rem;
}
.book-page .bp-container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.book-page .bp-breadcrumb {
  margin-bottom: 1.5rem;
}
.book-page .bp-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.book-page .bp-link:hover,
.book-page .bp-link:focus-visible {
  text-decoration: underline;
}
.book-page .bp-layout {
  display: grid;
  gap: 2.5rem;
}
.book-page .bp-media {
  position: sticky;
  top: 3rem;
}
.book-page .bp-media__inner {
  width: 418px;
  height: 645px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--taupe);
}
.book-page .bp-media__inner img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.book-page .bp-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.book-page .bp-primary-action,
.book-page .bp-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    filter 150ms ease;
}
.book-page .bp-primary-action {
  background: var(--accent-blue-strong);
  border: 1px solid var(--accent-blue-strong);
  color: var(--ivory);
}
.book-page .bp-primary-action:hover,
.book-page .bp-primary-action:focus-visible {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--ivory);
}
.book-page .bp-secondary-action {
  border: 1px solid var(--taupe);
  background: var(--paper);
  color: var(--ink);
}
.book-page .bp-secondary-action:hover,
.book-page .bp-secondary-action:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.book-page .bp-primary-action:focus-visible,
.book-page .bp-secondary-action:focus-visible,
.book-page .bp-format:focus-visible,
.book-page .bp-buy-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold), transparent 45%);
  outline-offset: 4px;
}
.book-page .bp-content {
  background: var(--paper);
  border-radius: 24px;
  border: 1px solid var(--taupe);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.book-page .bp-purchase {
  margin-top: 1.75rem;
  background: color-mix(in srgb, var(--ink), transparent 94%);
  border-radius: 20px;
  border: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.book-page .bp-purchase--content-top {
  margin-top: 0;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.book-page .bp-purchase--content-bottom {
  margin-top: clamp(2.5rem, 4vw, 3rem);
}
.book-page .bp-format-toggle {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.book-page .bp-format {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 75%);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}
.book-page .bp-format.is-active {
  background: var(--accent-blue-strong);
  border: 1px solid var(--accent-blue-strong);
  color: var(--ivory);
}

.book-page .bp-price {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.5rem 0 0;
}
.book-page .bp-stock {
  font-weight: 600;
  color: #1b6f32;
  margin-top: -0.25rem;
}
.book-page .bp-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  background: var(--gold);
  border-color: var(--gold-border);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.book-page .bp-buy-link:hover,
.book-page .bp-buy-link:focus-visible {
  background: var(--accent-blue);
}
.book-page .bp-header h1 {
  color: var(--ink);
  font:
    500 clamp(2.4rem, 5vw, 4.7rem)/0.98 Fraunces,
    serif;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
}
.book-page .bp-overview {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dusty-deep);
}
.book-page .bp-edition {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--stone);
}
.book-page .bp-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}
.book-page .bp-meta__item {
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  background: color-mix(in srgb, var(--ink), transparent 94%);
}
.book-page .bp-meta__item dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.book-page .bp-meta__item dd {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.book-page .bp-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.book-page .bp-description p {
  margin: 0 0 1.1rem;
}
.book-page .bp-description ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}
.book-page .bp-description li {
  margin-bottom: 0.45rem;
}
.book-page .bp-notfound {
  width: min(720px, 100%);
  margin: 4rem auto 0;
  text-align: center;
}
:root[data-theme="dark"] .book-page .bp-stock {
  color: #99d18f;
}
:root[data-theme="dark"] .book-page .bp-buy-link {
  color: #101522;
}

@media (min-width: 992px) {
  .book-page .bp-layout {
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 991.98px) {
  .book-page .bp-media {
    position: static;
    display: grid;
    justify-items: center;
  }
  .book-page .bp-media__inner {
    width: min(418px, 100%);
    height: auto;
    aspect-ratio: 418 / 645;
  }
  .book-page .bp-actions {
    justify-content: center;
  }
  .book-page {
    padding-top: clamp(2.5rem, 7vw, 3.5rem);
  }
  .book-page .bp-purchase {
    margin-top: 1.25rem;
  }
}
@media (max-width: 575.98px) {
  .book-page .bp-container {
    padding: 0 1rem;
  }
  .book-page .bp-meta {
    grid-template-columns: 1fr;
  }
  .book-page .bp-actions,
  .book-page .bp-primary-action,
  .book-page .bp-secondary-action {
    width: 100%;
  }
}

/*
 * WordPress compatibility layer.
 *
 * The design rules above are mirrored from `adam.bicknell.uk/styles/globals.css`.
 * Keep additions here limited to unavoidable WordPress core/runtime output and
 * do not use this section to compensate for templates that should emit the
 * canonical Next.js class contracts instead.
 */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  display: block;
  width: auto;
  height: auto;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem;
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--taupe);
  border-radius: 12px;
  z-index: 100000;
}
.wp-caption,
.aligncenter,
.alignleft,
.alignright {
  max-width: 100%;
  height: auto;
}
.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}
.alignleft {
  float: left;
  margin: 0.35rem 1.25rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.25rem;
}
.wp-caption-text {
  margin-top: 0.5rem;
  color: var(--stone);
  font-size: 0.9rem;
  text-align: center;
}
.nav-links,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.page-numbers {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.page-numbers a,
.page-numbers span {
  display: inline-flex;
  min-width: 2.25rem;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}
.page-numbers .current {
  color: #fdf5e8;
  background: var(--dusty-deep);
  border-color: var(--dusty-deep);
}
.admin-bar .top-nav {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .top-nav {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .top-nav {
    top: 0;
  }
  .alignleft,
  .alignright {
    float: none;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 355px) {
  .wordmark {
    font:
      500 1rem/1 Fraunces,
      serif;
  }
}

/* Nav and SVG parity fixes */
.nav-icon-link .icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transform: translateY(-0.02em);
}
.nav-icon-link {
  align-items: center;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.reminder-text svg,
.sidebar-panel svg {
  width: 1em;
  height: 1em;
}
.small-star-divider svg {
  width: 2em;
  height: 2em;
}
.sidebar-panel h2 .icon,
.sidebar-panel .sidebar-heading-icon {
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 auto;
}

.nav-icon-link .icon {
  color: currentColor;
}
.footer-credit a {
  color: inherit;
  text-decoration: none;
}
.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--gold);
}

.footer-mark-leaves img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-mark-leaves-right img {
  transform: scaleX(-1);
}

.content-animate-left,
.content-animate-right,
.content-animate-sidebar {
  --animate-duration: 0.55s;
}
.content-animate-left {
  animation-name: fadeInLeft;
}
.content-animate-right,
.content-animate-sidebar {
  animation-name: fadeInRight;
}

.site-main .home-hero-grid,
.site-main .page-hero-grid,
.site-main .home-flow > section:nth-of-type(1),
.site-main .home-flow > section:nth-of-type(2),
.site-main .home-flow > .small-star-divider,
.site-main .archive-grid,
.site-main .about-flow,
.site-main .writing-detail-layout,
.site-main .videos-layout,
.site-main .books-layout,
.site-main .page-shell main > * {
  animation-duration: 0.55s;
  animation-fill-mode: both;
}

.site-main .home-hero-grid,
.site-main .page-hero-grid,
.site-main .home-flow > section:nth-of-type(1),
.site-main .home-flow > section:nth-of-type(2),
.site-main .about-flow,
.site-main .archive-grid > *:not(aside),
.site-main .writing-detail-layout > *:not(aside),
.site-main .videos-layout > *:not(aside),
.site-main .books-layout > *:not(aside) {
  animation-name: fadeInLeft;
}

.site-main .home-flow > .small-star-divider,
.site-main .home-main-grid,
.site-main .home-sidebar-stack,
.site-main .writing-sidebar,
.site-main .videos-sidebar,
.site-main .books-sidebar,
.site-main .writing-detail-sidebar,
.site-main aside.sidebar,
.site-main aside[class*="sidebar"] {
  animation-name: fadeInRight;
  animation-duration: 0.55s;
  animation-fill-mode: both;
}

@media (prefers-reduced-motion: reduce) {
  .animate__animated,
  .site-main [class*="animate__"],
  .site-main .home-hero-grid,
  .site-main .page-hero-grid,
  .site-main .home-flow > *,
  .site-main .home-main-grid,
  .site-main .home-sidebar-stack,
  .site-main .writing-sidebar,
  .site-main .videos-sidebar,
  .site-main .books-sidebar,
  .site-main .writing-detail-sidebar,
  .site-main aside[class*="sidebar"] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.content-animate-row {
  --animate-duration: 0.55s;
}
.home-flow > .content-animate-row:nth-of-type(odd) {
  animation-name: fadeInRight;
}
.home-flow > .content-animate-row:nth-of-type(even) {
  animation-name: fadeInLeft;
}
