/*
Theme Name: Cocomation
Theme URI: https://cocomation.com
Author: Cocomation
Author URI: https://cocomation.com
Description: Half the Work design system — off-white background, Nunito font, terra cotta accent, fixed nav, full-screen hero, card grid. Warm. Clear. No fluff.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cocomation
*/

/* ============================================================
   DESIGN TOKENS — Half the Work
   ============================================================ */
:root {
  --espresso:        #2D2926;
  --espresso-90:     rgba(45, 41, 38, 0.90);
  --espresso-60:     rgba(45, 41, 38, 0.60);
  --espresso-30:     rgba(45, 41, 38, 0.30);
  --espresso-10:     rgba(45, 41, 38, 0.10);
  --espresso-05:     rgba(45, 41, 38, 0.05);

  --terra:           #D4785C;
  --terra-hover:     #C96B4F;
  --terra-light:     #E8A48E;
  --terra-10:        rgba(212, 120, 92, 0.10);
  --terra-05:        rgba(212, 120, 92, 0.05);

  --warm-gray:       #A8A092;
  --warm-gray-light: #C4BEB5;
  --parchment:       #F5F0EB;
  --off-white:       #FAF7F3;
  --white:           #FFFFFF;
  --sage:            #8B9A82;
  --sage-light:      #B5C1AD;
  --success:         #5A8A6A;
  --warning:         #D4A85C;
  --error:           #C45C5C;

  --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Source Serif 4', Georgia, serif;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 140px;

  --radius-sm:   8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(45, 41, 38, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 41, 38, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 41, 38, 0.10);
  --shadow-xl: 0 16px 60px rgba(45, 41, 38, 0.12);

  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;

  --nav-height: 60px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body) !important;
  font-size: 17px;
  line-height: 1.7;
  color: var(--espresso) !important;
  background-color: var(--off-white) !important;
  background: var(--off-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--terra);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--terra-hover); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--espresso);
}

ul, ol { list-style: none; }

/* ============================================================
   WORDPRESS OVERRIDES — kill default WP styles
   ============================================================ */
.wp-block-post-template,
.wp-block-query,
.wp-block-group { all: unset; display: block; }

/* Make WP admin bar not break fixed nav */
body.admin-bar { --admin-bar: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar { --admin-bar: 46px; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-top: var(--nav-height);
}

body.admin-bar .site-main {
  padding-top: calc(var(--nav-height) + var(--admin-bar, 32px));
}

body.admin-bar #masthead.site-header {
  top: var(--admin-bar, 32px);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding-left: var(--space-lg); padding-right: var(--space-lg); }
}

/* ============================================================
   FIXED NAV — position: fixed, blur, warm
   ============================================================ */
#masthead.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 243, 0.90) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--espresso-05);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

#masthead.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: 100%;
}

.site-branding {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.site-branding a {
  color: var(--espresso) !important;
  font-weight: 800;
  text-decoration: none;
}
.site-branding a:hover { color: var(--terra) !important; }
.site-branding .site-title-accent { color: var(--terra); }
.site-description { display: none; }

/* Nav menu */
#site-navigation .main-navigation,
.main-navigation {
  display: flex;
  align-items: center;
}

#primary-menu,
.main-navigation ul,
.main-navigation > ul {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

#primary-menu li,
.main-navigation ul li,
.main-navigation > ul > li { position: static; }

#primary-menu li a,
.main-navigation ul li a,
.main-navigation a {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--espresso-60) !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  transition: color var(--duration-fast) var(--ease-out) !important;
}

#primary-menu li a:hover,
.main-navigation a:hover {
  color: var(--terra) !important;
  background: none !important;
}

/* ============================================================
   HERO — full-screen, centred, fade-up animations
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, var(--terra-05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 154, 130, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section > * { position: relative; z-index: 1; }

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0 0 var(--space-lg);
  max-width: 700px;
}

.hero-title .accent { color: var(--terra); }

.hero-subtitle {
  font-size: 17px;
  color: var(--espresso-60);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 0 var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.content-section {
  padding: var(--space-3xl) 0;
  background: var(--off-white);
}

.content-section--white {
  background: var(--white);
  border-top: 1px solid var(--espresso-05);
}

.content-section--parchment {
  background: var(--parchment);
  border-top: 1px solid var(--espresso-05);
}

.content-section--dark {
  background: var(--espresso);
  color: var(--off-white);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 17px;
  color: var(--espresso-60);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--espresso-05);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--dark {
  background: var(--espresso);
  color: var(--off-white);
  border: none;
}

.card--parchment {
  background: var(--parchment);
  border: 1px solid var(--espresso-05);
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--espresso);
}

.card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--espresso-60);
}

/* ============================================================
   POST GRID (blog index)
   ============================================================ */
.posts-section {
  padding: var(--space-3xl) 0;
  background: var(--white);
  border-top: 1px solid var(--espresso-05);
}

.posts-section-header {
  margin-bottom: var(--space-2xl);
}

.posts-section-header .section-subtitle {
  margin-bottom: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--espresso-05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-card-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.04);
}

.post-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-category {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--terra-10);
  color: var(--terra);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  text-decoration: none;
  width: fit-content;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 var(--space-sm);
  color: var(--espresso);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}
.post-card-title a:hover { color: var(--terra); }

.post-card-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.3px;
  margin-bottom: var(--space-md);
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--espresso-60);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-md);
}

.post-card-excerpt p { margin: 0; }

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--terra);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--duration-fast) var(--ease-out);
}
.post-card-link:hover { gap: 10px; color: var(--terra-hover); }
.post-card-link::after { content: '→'; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terra-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--espresso);
  color: var(--off-white);
}
.btn-secondary:hover {
  background: #3A3330;
  color: var(--off-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--espresso-30);
}
.btn-outline:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.btn-ghost {
  background: transparent;
  color: var(--terra);
  padding: 14px 16px;
}
.btn-ghost:hover { background: var(--terra-05); }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--terra-10);
  color: var(--terra);
  text-decoration: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
.posts-navigation,
.nav-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  justify-content: center;
  align-items: center;
}

.pagination a,
.pagination span,
.page-numbers {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--espresso-10);
  background: var(--white);
  color: var(--espresso);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover,
.page-numbers:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: var(--terra-05);
}

.pagination .current,
.page-numbers.current {
  background: var(--espresso);
  color: var(--off-white);
  border-color: var(--espresso);
}

/* ============================================================
   SINGLE POST & PAGES
   ============================================================ */
.article-wrap {
  padding: var(--space-3xl) 0;
  background: var(--off-white);
}

.article-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.article-header { margin-bottom: var(--space-2xl); }

.article-category {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--terra-10);
  color: var(--terra);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

.article-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.3px;
}

.article-thumbnail {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-thumbnail img {
  width: 100%;
  height: auto;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--espresso);
}

.article-content p {
  margin: 0 0 1.4em;
  color: var(--espresso-90);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2em 0 0.6em;
  color: var(--espresso);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
}

.article-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.4em 0 0.4em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.6em;
  margin: 1em 0 1.4em;
  list-style: revert;
}

.article-content li { margin-bottom: 0.5em; }

.article-content strong { font-weight: 700; }

.article-content em { font-style: italic; }

.article-content a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { color: var(--terra-hover); }

.article-content blockquote {
  border-left: 3px solid var(--terra);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: var(--terra-05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--espresso-60);
}

.article-content img {
  margin: 1.5em 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-content figure { margin: 1.5em 0; }

.article-content figcaption {
  font-size: 13px;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.article-content code {
  background: var(--parchment);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--espresso);
}

.article-content pre {
  background: var(--espresso);
  color: var(--off-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 14px;
  line-height: 1.6;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--espresso-10);
  margin: var(--space-xl) 0;
}

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--espresso-10);
  font-size: 14px;
  color: var(--espresso-60);
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
  color: var(--terra);
  font-weight: 600;
}

/* Post navigation */
.post-nav-section {
  padding: var(--space-2xl) 0;
  background: var(--parchment);
  border-top: 1px solid var(--espresso-05);
}

.post-nav-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: 0;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: block;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--espresso-05);
  color: var(--espresso);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  border-color: var(--terra-10);
  box-shadow: var(--shadow-md);
  color: var(--terra);
}
.post-navigation .nav-next { text-align: right; }
.post-navigation .meta-nav {
  display: block;
  font-size: 11px;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ============================================================
   PAGE
   ============================================================ */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--parchment);
  border-bottom: 1px solid var(--espresso-05);
  text-align: center;
}

.page-hero .section-label { margin-bottom: var(--space-sm); }

.page-title-main {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0;
}

.page-content-section {
  padding: var(--space-3xl) 0;
}

.page-content-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================================
   ARCHIVE / BLOG INDEX
   ============================================================ */
.archive-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  background: var(--off-white);
}

/* ============================================================
   404 & NO RESULTS
   ============================================================ */
.error-section {
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}
.error-section .hero-title { margin-bottom: var(--space-md); }
.error-section .hero-subtitle { margin: 0 auto var(--space-xl); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.search-form .search-field {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--espresso-10);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--espresso);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.search-form .search-field:focus { border-color: var(--terra); }
.search-form .search-field::placeholder { color: var(--warm-gray-light); }

.search-form .search-submit {
  padding: 14px 24px;
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.search-form .search-submit:hover { background: var(--terra-hover); }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon.site-footer {
  background: var(--espresso) !important;
  color: var(--off-white);
  padding: var(--space-2xl) 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-footer .footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--off-white);
  letter-spacing: 0.5px;
}

.site-footer .footer-brand .accent { color: var(--terra-light); }

.site-footer .site-info {
  font-size: 14px;
  font-weight: 600;
  color: rgba(250, 247, 243, 0.5);
}

.site-footer a {
  color: var(--terra-light) !important;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.site-footer a:hover { color: var(--white) !important; }

#footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

#footer-menu a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   UTILITY
   ============================================================ */
.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;
}

.text-terra  { color: var(--terra); }
.text-muted  { color: var(--espresso-60); }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-height: 56px; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 120px var(--space-lg) var(--space-2xl); }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .post-navigation { grid-template-columns: 1fr; }
  #primary-menu,
  .main-navigation ul { gap: 20px !important; }
}
