/*
Theme Name: ARTESIAN - Child Theme
Template: twentytwentyfive
Description: Custom child theme for Artesian
Author: Milo de Prieto
Version: 2.0.0
Text Domain: artesian-child
*/

/* ================================================================
   ROOT VARIABLES - Design System Foundation
   ================================================================ */

:root {
  /* Logo & Navigation Sizing */
  --logo-h-desktop: 104px;
  --logo-h-tablet: 64px;
  --logo-h-mobile: 48px;
  --logo-h: var(--logo-h-desktop);
  
  --nav-font-desktop: 76px;
  --nav-font-tablet: 38px;
  --nav-font-mobile: 24px;
  --nav-font: var(--nav-font-desktop);
  
  --nav-gap-desktop: clamp(40px, 5vw, 90px);
  --nav-gap-tablet: clamp(24px, 4vw, 56px);
  --nav-gap-mobile: clamp(14px, 3.5vw, 28px);
  
  /* Header Layout */
  --header-pad-y: clamp(8px, 1.2vw, 16px);
  --header-pad-x: clamp(16px, 3vw, 48px);
  --header-peek: 12px;
  --header-max: 1720px;
  --adminbar: 0px;
  --header-h: calc(max(var(--logo-h), var(--nav-font)) + (var(--header-pad-y) * 2));
  
  /* Typography Scale - Elegant Progression */
  --hero-size-min: 2.125rem;
  --hero-size-max: 7rem;
  --hero-lh-desktop: 1.02;
  --hero-lh-mobile: 1.08;
  --hero-track-desktop: -0.008em;
  --hero-track-mobile: -0.004em;
  
  --font-h1: 3rem;           /* 48px */
  --font-h2: 2.15rem;        /* 34.4px */
  --font-h3: 1.55rem;        /* 24.8px */
  --font-h4: 1.25rem;        /* 20px */
  --font-body: 1.15rem;      /* 18.4px */
  --font-small: 0.95rem;     /* 15.2px */
  
  --weight-h1: 800;
  --weight-h2: 700;
  --weight-h3: 600;
  --weight-h4: 500;
  --weight-body: 300;
  --weight-emphasis: 600;
  
  --lh-tight: 1.15;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  --lh-body: 1.8;
  
  /* Color System */
  --text-heading: #111111;
  --text-body: #333333;
  --text-bridge: #4A4A4A;
  --text-secondary: #707070;
  --text-meta: #999999;
  --text-primary: var(--text-heading);
  --border-light: #F4F4F4;
  --accent: #5E7680;
  
  /* Animation System */
  --timing-instant: 120ms;
  --timing-quick: 220ms;
  --timing-smooth: 350ms;
  --timing-elegant: 500ms;
  --timing-contemplative: 700ms;
  
  --ease-natural: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-subtle: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-museum: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Responsive Variable Updates */
@media (max-width: 1024px) {
  :root {
    --logo-h: var(--logo-h-tablet);
    --nav-font: var(--nav-font-tablet);
  }
}

@media (max-width: 768px) {
  :root {
    --logo-h: var(--logo-h-mobile);
    --nav-font: var(--nav-font-mobile);
  }
}

html.admin-bar {
  --adminbar: 32px;
}

html {
  scroll-padding-top: calc(var(--header-h) + var(--adminbar) + 16px);
}

/* ================================================================
   HEADER - FIXED NAVIGATION
   ================================================================ */

#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  width: 100%;
  padding: var(--header-pad-y) var(--header-pad-x);
  background: transparent;
  pointer-events: none;
  isolation: auto;
  transition: transform var(--timing-quick) ease;
  transform: translateY(0);
}

#site-header > * {
  pointer-events: auto;
}

.site-header,
.kadence-header,
.header-wrap,
.site-branding,
#site-header.wp-block-group {
  background: transparent;
  box-shadow: none;
}

#site-header .kb-row-layout-wrap,
#site-header .kt-row-layout,
#site-header .wp-block-kadence-rowlayout {
  width: 100%;
  background: transparent;
}

#site-header .kt-row-layout-inner,
#site-header .kt-row-column-wrap {
  display: flex;
  width: min(var(--header-max), 100%);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.6vw, 24px);
}

#site-header .wp-block-kadence-column {
  min-width: 0;
  display: flex;
  align-items: center;
}

#site-header .kadence-columntwentytwentyfive__header_8d0bd7-f2 {
  flex: 0 0 auto;
}

#site-header .kadence-columntwentytwentyfive__header_df6e0e-95 {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Logo Styling */
#site-header .wp-block-kadence-image img {
  height: var(--logo-h);
  max-height: var(--logo-h);
  width: auto;
  max-width: none;
  display: block;
  filter: invert(1) brightness(1);
  mix-blend-mode: difference;
  transition: opacity 0.2s ease;
}

/* Navigation Typography & Blend Mode */
#site-header,
#site-header .wp-block-navigation {
  mix-blend-mode: difference;
  color: #fff;
}

#site-header .wp-block-navigation a {
  mix-blend-mode: difference;
  color: #fff;
}

#site-header .wp-block-navigation,
#site-header .wp-block-navigation__container,
#site-header .wp-block-navigation a,
#site-header .wp-block-navigation .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container-content {
  font-family: "Libre Baskerville", serif;
}

#site-header .wp-block-navigation {
  font-weight: 700;
  font-size: var(--nav-font);
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  transform: none;
}

#site-header .wp-block-navigation__container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--nav-gap-desktop);
}

#site-header .wp-block-navigation .wp-block-navigation-item,
#site-header .wp-block-navigation .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-block: 0;
  white-space: nowrap;
}

#site-header .wp-block-navigation a {
  text-decoration: none;
  transition: opacity var(--timing-smooth) var(--ease-elegant);
}

/* Outline Navigation Style */
#site-header .wp-block-navigation .nav-outline > a {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.75px currentColor;
  font-weight: 800;
  letter-spacing: calc(0.1em + 0.015em);
}

#site-header .wp-block-navigation .nav-outline > a:hover {
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0 transparent;
}

#site-header .wp-block-navigation .wp-block-navigation-item:not(.nav-outline) > a {
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  transition: -webkit-text-fill-color 0.2s ease, -webkit-text-stroke 0.2s ease;
}

#site-header .wp-block-navigation .wp-block-navigation-item:not(.nav-outline) > a:hover {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.75px currentColor;
  font-weight: 800;
  letter-spacing: calc(0.1em + 0.015em);
}

/* Header States */
#site-header.header--peek {
  transform: translateY(calc(-100% + var(--header-peek)));
  pointer-events: none;
}

#site-header.header--show {
  transform: translateY(0);
  pointer-events: auto;
}

html.admin-bar #site-header {
  top: 32px;
}

/* Focus States */
#site-header .wp-block-navigation a:focus,
#site-header .wp-block-navigation a:focus-visible {
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* Browser Fallbacks */
@supports not (mix-blend-mode: difference) {
  #site-header {
    background: rgba(0, 0, 0, 0.82);
  }
  #site-header .wp-block-navigation,
  #site-header .wp-block-navigation a {
    color: #fff;
    mix-blend-mode: normal;
  }
  #site-header .wp-block-kadence-image img {
    mix-blend-mode: normal;
    filter: none;
  }
}

@supports not (-webkit-text-stroke: 1px currentColor) {
  #site-header .wp-block-navigation .nav-outline > a {
    text-shadow: 0 1px 0 currentColor, 0 -1px 0 currentColor,
      1px 0 0 currentColor, -1px 0 0 currentColor;
  }
  #site-header .wp-block-navigation .nav-outline > a:hover {
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-header {
    transition: none;
  }
}

/* ================================================================
   BASE TYPOGRAPHY - Consistent Foundation
   ================================================================ */

p {
  font-family: "Montserrat", sans-serif;
  font-weight: var(--weight-body);
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

ul, ol {
  font-family: "Montserrat", sans-serif;
  font-weight: var(--weight-body);
  font-size: var(--font-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-body);
}

strong, b {
  font-weight: var(--weight-emphasis);
  color: var(--text-heading);
  letter-spacing: 0.005em;
}

/* ================================================================
   HEADINGS - Unified Typography System
   ================================================================ */

/* H1 - Main Titles (Same for Pages & Posts) */
.entry-title,
.page-title,
h1:not(.hero-title) {
  font-family: "Libre Baskerville", serif;
  font-size: var(--font-h1);
  font-weight: var(--weight-h1);
  letter-spacing: 0.05em;
  color: var(--text-heading);
  line-height: var(--lh-tight);
  margin-bottom: 1.5rem;
}

/* H2 - Chapter Titles */
/* PAGES: Centered */
body.page .entry-content h2,
body.page .wp-block-post-content h2 {
  font-family: "Libre Baskerville", serif;
  font-size: var(--font-h2);
  font-weight: var(--weight-h2);
  line-height: 1.25;
  color: var(--text-heading);
  letter-spacing: 0.02em;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* POSTS: Normal Case + Left Aligned */
body.single-post .entry-content h2,
body.single-post .wp-block-post-content h2,
body.single .entry-content h2,
body.single .wp-block-post-content h2 {
  font-family: "Libre Baskerville", serif;
  font-size: var(--font-h2);
  font-weight: var(--weight-h2);
  line-height: 1.25;
  color: var(--text-heading);
  letter-spacing: 0.02em;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* H3 - Section Headings */
h3 {
  font-family: "Montserrat", sans-serif;
  font-size: var(--font-h3);
  font-weight: var(--weight-h3);
  line-height: var(--lh-normal);
  color: var(--text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* H4 - Subsection Headings */
h4 {
  font-family: "Montserrat", sans-serif;
  font-size: var(--font-h4);
  font-weight: var(--weight-h4);
  line-height: var(--lh-normal);
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Hero Title (Homepage) */
.hero-title {
  font-size: clamp(var(--hero-size-min), 8vw, var(--hero-size-max));
  line-height: var(--hero-lh-desktop);
  letter-spacing: var(--hero-track-desktop);
  text-align: center;
  max-width: 20ch;
  margin: 0 auto;
  font-weight: 800;
  color: var(--text-heading);
}

/* ================================================================
   LINKS & BUTTONS
   ================================================================ */

a {
  transition: color var(--timing-smooth) var(--ease-natural);
}

/* Content Links */
p a,
.entry-content a:not(.wp-block-button__link):not(.essay-author a):not(.essay-meta-line a),
.wp-block-post-content a:not(.wp-block-button__link):not(.essay-author a):not(.essay-meta-line a) {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--timing-smooth) var(--ease-natural);
}

p a:hover,
.entry-content a:not(.wp-block-button__link):not(.essay-author a):not(.essay-meta-line a):hover,
.wp-block-post-content a:not(.wp-block-button__link):not(.essay-author a):not(.essay-meta-line a):hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Italic Links */
em a {
  font-style: italic;
  color: var(--text-secondary);
}

em a:hover {
  color: var(--accent);
}

/* Post Title Links */
.wp-block-post-title a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color var(--timing-smooth) var(--ease-natural);
}

.wp-block-post-title a:hover {
  color: var(--accent);
}

/* Buttons */
.kb-buttons-wrap .kb-button,
.wp-block-button .wp-block-button__link {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.65rem 1.15rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color var(--timing-quick) ease, 
              background-color var(--timing-quick) ease,
              border-color var(--timing-quick) ease, 
              box-shadow var(--timing-smooth) ease;
}

.kb-buttons-wrap .kb-button:hover,
.wp-block-button .wp-block-button__link:hover {
  color: #ffffff;
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0.35rem 1rem rgba(94, 118, 128, 0.18);
}

/* ================================================================
   ESSAYS ARCHIVE PAGE
   ================================================================ */

.essays-intro {
  text-align: center;
}

.essays-intro h1 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.essays-intro p.tagline {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: var(--font-body);
  color: var(--text-secondary);
  font-style: italic;
}

/* Featured Post */
.latest-post-query .wp-block-post-title {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

/* ================================================================
   QUERY LOOPS - POST GRIDS
   ================================================================ */

.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-post {
  border: none;
  transition: transform 0.2s ease;
  padding: 0;
}

.wp-block-post:hover {
  transform: translateY(-4px);
}

.wp-block-query .wp-block-post-template .wp-block-post-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.wp-block-post-featured-image {
  margin-bottom: 1rem;
}

.wp-block-post-featured-image img {
  border-radius: 4px;
  display: block;
  width: 100%;
  height: auto;
}

/* Excerpts in Loops */
.wp-block-query .wp-block-post-template .wp-block-post-excerpt,
.wp-block-query .wp-block-post-template .wp-block-post-excerpt__excerpt,
.wp-block-query .wp-block-post-template .wp-block-post-excerpt p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.wp-block-post-excerpt__more-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-meta);
}

.wp-block-post-excerpt__more-link:hover {
  color: var(--accent);
}

/* ================================================================
   SUBTITLES - PHP Injected Content
   ================================================================ */

/* Single Post Subtitle (Main Post Header) */
.essay-subtitle,
p.essay-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
  display: block;
}

/* Query Loop Subtitle (Archives, Related Posts) */
.query-subtitle,
p.query-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0;
  display: block;
}

/* ================================================================
   META LINE - AUTHOR & DATE
   ================================================================ */

.essay-meta-line,
.wp-block-group.essay-meta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0;
}

.essay-meta-line p,
.essay-meta-line .essay-author,
.essay-meta-line .essay-dot,
.essay-meta-line .wp-block-post-date {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: var(--text-meta);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 300;
}

.essay-meta-line .essay-dot {
  opacity: 0.8;
  user-select: none;
}

.essay-meta-line a {
  color: var(--text-meta);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 300;
}

.essay-meta-line a:hover {
  color: var(--accent);
}

/* ================================================================
   SINGLE POST PAGE
   ================================================================ */

.essay-header-section,
.essay-content-section,
.essay-related-section {
  margin-top: 0;
  margin-bottom: 0;
}

body.single-post .essay-title,
body.single-post .wp-block-post-title,
body.single .essay-title,
body.single .wp-block-post-title {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: var(--font-h1);
  line-height: var(--lh-tight);
  color: var(--text-heading);
  text-align: center;
  text-decoration: none;
  margin-top: 0;
  margin-bottom: 1rem;
}

body.single-post .entry-content,
body.single-post .wp-block-post-content,
body.single .entry-content,
body.single .wp-block-post-content {
  max-width: 680px;
  margin: 0 auto;
}

body.single-post .entry-content h3,
body.single-post .wp-block-post-content h3,
body.single .entry-content h3,
body.single .wp-block-post-content h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: var(--font-h3);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

body.single-post .entry-content h4,
body.single-post .wp-block-post-content h4,
body.single .entry-content h4,
body.single .wp-block-post-content h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: var(--font-h4);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

body.single-post .entry-content p,
body.single-post .wp-block-post-content p,
body.single .entry-content p,
body.single .wp-block-post-content p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

body.single-post figure,
body.single-post .entry-content figure,
body.single-post .wp-block-post-content figure,
body.single figure,
body.single .entry-content figure,
body.single .wp-block-post-content figure {
  margin: 3rem auto;
  max-width: 100%;
}

body.single-post figure img,
body.single figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

body.single-post figcaption,
body.single-post .wp-element-caption,
body.single figcaption,
body.single .wp-element-caption {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--font-small);
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* Related Essays Section */
.essay-related-section .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.essay-related-section .wp-block-post-featured-image {
  display: block;
  margin-bottom: 1rem;
}

.related-heading,
h4.related-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1.4px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* ================================================================
   HOMEPAGE ELEMENTS
   ================================================================ */

.front-subhead {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.005em;
  margin-top: clamp(2rem, 4vh, 3rem);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
  max-width: 48em;
  margin-inline: auto;
  color: var(--text-bridge);
  padding: 0 2rem;
}

.front-logo {
  padding-block: clamp(8px, 1.8vw, 28px);
}

.front-logo img {
  display: block;
  width: min(96vw, 1600px);
  height: auto;
  margin-inline: auto;
  margin-block: 0;
  mix-blend-mode: normal;
}

.front-logo .wp-block-image,
.front-logo figure {
  margin: 0;
}

/* ================================================================
   INFO BOXES (KADENCE)
   ================================================================ */

.kt-blocks-info-box-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.kt-blocks-info-box-text,
.kt-blocks-info-box-text p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: var(--font-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

.wp-block-kadence-infobox {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.06);
  transition: all var(--timing-elegant) var(--ease-museum);
}

.wp-block-kadence-infobox:hover {
  border-color: var(--accent);
  box-shadow: 0 0.5rem 1.5rem rgba(94, 118, 128, 0.12);
  transform: translateY(-2px);
}

/* ================================================================
   FOOTER
   ================================================================ */

/* Footer headings */
footer h3.projects-footer-nav,
.projects-footer-nav h3 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  color: #F4F4F4;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  margin-top: 0;
}

/* Navigation links - ONE RULE that works */
.has-contrast-background-color .wp-block-navigation a,
.has-contrast-background-color .wp-block-navigation a:visited {
  font-family: "Libre Baskerville", serif;
  font-weight: 600;
  color: #F4F4F4 !important;
  font-size: var(--font-small);
  line-height: 1.5;
  text-decoration: none;
  display: block;
}

.has-contrast-background-color .wp-block-navigation a:hover {
  color: var(--accent) !important;
}

.projects-footer-nav .wp-block-navigation-item {
  margin-bottom: 0.5rem;
  padding: 0;
}

/* Footer links (ESSAYS, etc.) */
footer .kt-adv-heading a,
footer h2 a {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  color: #F4F4F4;
  text-decoration: none;
}

footer .kt-adv-heading a:hover,
footer h2 a:hover {
  color: var(--accent);
}

/* Footer tagline */
.footer-tagline,
footer p.is-style-text-display {
  color: #F4F4F4;
  font-size: var(--font-small);
  max-width: 300px;
  margin-inline: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05rem;
}

/* Footer copyright */
.footer-copyright {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #F4F4F4;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ================================================================
   RESPONSIVE - UNIFIED BREAKPOINTS
   ================================================================ */

/* Large Desktop Navigation (1280px and below) */
@media (max-width: 1280px) {
  :root {
    --logo-h: clamp(64px, 6vw, 104px);
  }
  
  #site-header .wp-block-navigation {
    font-size: clamp(48px, 5vw, 76px);
  }
  
  #site-header .wp-block-navigation__container {
    gap: clamp(28px, 3.5vw, 60px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  #site-header .wp-block-navigation__container::-webkit-scrollbar {
    display: none;
  }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  #site-header .wp-block-navigation .nav-outline > a {
    -webkit-text-stroke: 1.4px currentColor;
  }
  
  .hero-title {
    font-size: clamp(2rem, 7vw, 5rem);
    line-height: 1.06;
  }
  
  .entry-title,
  .page-title,
  h1:not(.hero-title) {
    font-size: 2.25rem;
  }
}

/* Mobile (768px and below) - UNIFIED BREAKPOINT */
@media (max-width: 768px) {
  #site-header .wp-block-navigation .nav-outline > a {
    -webkit-text-stroke: 1.2px currentColor;
    font-weight: 750;
  }
  
  /* Grid to single column */
  .wp-block-query .wp-block-post-template,
  .essay-related-section .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Typography adjustments */
  .essays-intro h1 {
    font-size: 2rem;
  }
  
  .latest-post-query .wp-block-post-title {
    font-size: 1.75rem;
  }
  
  body.single-post .essay-title,
  body.single-post .wp-block-post-title,
  body.single .essay-title,
  body.single .wp-block-post-title {
    font-size: 2.25rem;
  }
  
  .essay-subtitle,
  p.essay-subtitle {
    font-size: 1.15rem;
    padding: 0 1rem;
  }
  
  body.single-post .entry-content h2,
  body.single-post .wp-block-post-content h2,
  body.single .entry-content h2,
  body.single .wp-block-post-content h2 {
    font-size: 1.85rem;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.001em;
    padding: 0 5vw;
  }
  
  .front-subhead {
    font-size: 1.35rem;
    padding: 0 1rem;
  }
  
  .front-logo {
    padding-block: clamp(12px, 3vh, 48px);
  }
  
  .essay-header-section,
  .essay-content-section,
  .essay-related-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .wp-block-kadence-infobox {
    box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.06);
  }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.push-under-header {
  padding-top: calc(var(--header-h) + var(--adminbar));
}

main > *:first-child {
  margin-top: max(0px, env(safe-area-inset-top));
}

