/*
Theme Name: GS Art Zone
Theme URI: http://localhost:10052/
Author: GS Art Zone
Author URI: http://localhost:10052/
Description: A custom, gallery-style art theme for GS Art Zone. Artsy, colorful, editorial homepage with a watercolor gallery grid, featured categories and a newsletter CTA. Content-safe: pulls all posts, images and pages dynamically from WordPress.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gsartzone
Tags: blog, art, gallery, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* Brand — pulled from the existing GS Art Zone identity (pink→purple) */
  --brand-pink:   #EC4899;
  --brand-purple: #8B5CF6;
  --brand-grad:   linear-gradient(120deg, #EC4899 0%, #A855F7 55%, #8B5CF6 100%);
  --brand-grad-soft: linear-gradient(120deg, #FDF2F8 0%, #F5F3FF 100%);

  /* Neutrals — editorial canvas */
  --ink:        #1B1523;   /* headings */
  --ink-soft:   #4B4453;   /* body */
  --muted:      #8A8394;   /* meta */
  --line:       #ECE7F0;
  --surface:    #FFFFFF;
  --bg:         #FBF9FC;
  --bg-warm:    #FDF4F9;

  /* Type */
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(27,21,35,.06);
  --shadow-md: 0 14px 40px rgba(27,21,35,.10);
  --shadow-lg: 0 24px 60px rgba(139,92,246,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   2. Base / Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-purple); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-pink); }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 44px, var(--wrap-wide)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color:#fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand-purple); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 30px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  line-height: 1;
}
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(139,92,246,.30); color:#fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand-purple); color: var(--brand-purple); }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.site-branding { flex: 0 0 auto; }
.site-branding img { max-height: 54px; width: auto; }
.site-branding .site-title-text {
  font-family: var(--font-head); font-weight: 800; font-size: 24px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.primary-nav { margin-left: 8px; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink);
  padding: 9px 15px; border-radius: 999px; position: relative; transition: background .2s var(--ease), color .2s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--bg-warm); color: var(--brand-pink); }
.header-social { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-soft); background: var(--bg-warm); transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.header-social a:hover { transform: translateY(-3px) scale(1.05); background: var(--brand-grad); color: #fff; }
.header-social svg { width: 19px; height: 19px; }
.nav-toggle { display: none; background: var(--bg-warm); border: 0; width: 46px; height: 46px; border-radius: 14px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .25s var(--ease); }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 118px) 0 clamp(48px, 7vw, 92px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0;
}
.hero::before { width: 460px; height: 460px; background: radial-gradient(circle, #FBCFE8, transparent 68%); top: -140px; right: -80px; }
.hero::after  { width: 420px; height: 420px; background: radial-gradient(circle, #DDD6FE, transparent 68%); bottom: -160px; left: -120px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-purple);
  background: #fff; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; margin-bottom: .35em; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--ink); line-height: 1; }
.hero-stats .lbl { font-size: 13.5px; color: var(--muted); }

/* Hero collage */
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.hero-collage .tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/4; background: var(--bg-warm); }
.hero-collage .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-collage .tile:hover img { transform: scale(1.06); }
.hero-collage .tile:nth-child(1) { transform: translateY(-14px) rotate(-2deg); }
.hero-collage .tile:nth-child(2) { transform: translateY(14px) rotate(2deg); }
.hero-collage .tile:nth-child(3) { transform: translateY(6px) rotate(1.5deg); }
.hero-collage .tile:nth-child(4) { transform: translateY(-6px) rotate(-1.5deg); }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--warm { background: var(--brand-grad-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-head .kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-pink); margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: .4em; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; perspective: 1000px; }
.cat-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 230px; box-shadow: var(--shadow-sm); isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,21,35,0) 30%, rgba(27,21,35,.82) 100%); }
.cat-card .cat-body { position: absolute; left: 0; bottom: 0; padding: 22px; color: #fff; }
.cat-card .cat-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; }
.cat-card .cat-count { font-size: 13.5px; opacity: .85; }
.cat-card--empty { display: grid; place-items: center; text-align: center; background: var(--brand-grad); color: #fff; padding: 22px; }
.cat-card--empty .cat-name, .cat-card--empty svg { color: #fff; }

/* Post gallery grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; perspective: 1200px; }
.post-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.post-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-warm); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-badge {
  position: absolute; top: 14px; left: 14px; font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: .03em; text-transform: uppercase; color: #fff; background: rgba(27,21,35,.55);
  backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 999px;
}
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.24rem; font-weight: 700; margin-bottom: .5em; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--brand-pink); }
.post-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.post-meta .read { margin-left: auto; font-family: var(--font-head); font-weight: 600; color: var(--brand-purple); display: inline-flex; align-items: center; gap: 6px; }
.post-card:hover .post-meta .read svg { transform: translateX(4px); }
.post-meta .read svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.grid-cta { text-align: center; margin-top: clamp(36px, 5vw, 54px); }

/* ==========================================================================
   7. Newsletter CTA
   ========================================================================== */
.newsletter { position: relative; overflow: hidden; }
.newsletter-card {
  position: relative; background: var(--brand-grad); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 68px); text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.newsletter-card::before, .newsletter-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); }
.newsletter-card::before { width: 260px; height: 260px; top: -100px; right: -60px; }
.newsletter-card::after  { width: 200px; height: 200px; bottom: -90px; left: -50px; }
.newsletter-card > * { position: relative; z-index: 1; }
.newsletter-card h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; }
.newsletter-card p { color: rgba(255,255,255,.92); max-width: 52ch; margin: 0 auto 28px; font-size: 1.08rem; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1 1 240px; min-width: 0; border: 0; border-radius: 999px; padding: 15px 22px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink); box-shadow: var(--shadow-sm);
}
.newsletter-form input:focus { outline: 3px solid rgba(255,255,255,.7); }
.newsletter-form .btn { background: var(--ink); color: #fff; flex: 0 0 auto; }
.newsletter-form .btn:hover { background: #000; transform: translateY(-3px); }
.newsletter-fine { font-size: 13px; color: rgba(255,255,255,.8); margin: 16px 0 0; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #cfc7d6; padding: clamp(52px, 7vw, 80px) 0 0; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .site-title-text { font-size: 24px; }
/* Footer logo — same GS Art Zone logo as the header, on a small white plate so
   the colorful/transparent logo stays crisp against the dark footer. */
.footer-brand .custom-logo-link,
.footer-brand .site-title-link { display: inline-block; margin-bottom: 18px; }
.footer-brand img,
.footer-brand .custom-logo {
  max-height: 60px; width: auto; margin: 0; display: block;
  background: #fff; padding: 10px 14px; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.footer-brand p { max-width: 42ch; color: #a99fb8; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-family: var(--font-head); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b8afc6; font-size: 15px; }
.footer-col a:hover { color: var(--brand-pink); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: .25s var(--ease); }
.footer-social a:hover { background: var(--brand-grad); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: 14px; color: #8f849e; }

/* ==========================================================================
   9. Generic content pages (index / single / page fallbacks)
   ========================================================================== */
.page-hero { position: relative; background: var(--brand-grad-soft); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 60px); text-align: center; overflow: hidden; }
.page-hero .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }

/* --- Single-post hero: split layout (text + featured image side-by-side) --- */
.single-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); text-align: left; }
.single-hero__inner { position: relative; z-index: 3; }
.single-hero .meta { color: var(--muted); margin-top: 14px; font-size: 14.5px; }
.single-hero .cat-tag { display: inline-block; margin-bottom: 14px; background: #fff; padding: 6px 15px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.single-hero .crumbs { text-align: left; }

/* Split grid — text left, image card right */
.single-hero--split .single-hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center;
}
.single-hero__text h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; margin: 0; }
.single-hero__figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3; transform: rotate(1.4deg);
  border: 6px solid #fff;
}
.single-hero__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.single-hero__figure:hover img { transform: scale(1.05); }

/* Floating paint dots layer (animated) shared by single hero */
.single-hero__paint { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.single-hero__paint::before, .single-hero__paint::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; mix-blend-mode: multiply;
}
.single-hero__paint::before { width: 260px; height: 260px; background: radial-gradient(circle,#FBCFE8,transparent 68%); top: -80px; left: 6%; animation: gsaz-float-a 13s ease-in-out infinite; }
.single-hero__paint::after  { width: 240px; height: 240px; background: radial-gradient(circle,#DDD6FE,transparent 68%); bottom: -90px; right: 8%; animation: gsaz-float-b 16s ease-in-out infinite; }
.content-area {
  padding: clamp(40px, 6vw, 72px) 0; position: relative;
  /* Soft dotted "sketchbook" texture + faint watercolor washes */
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(139,92,246,.055) 1.2px, transparent 1.3px),
    radial-gradient(120% 60% at 12% 0%, rgba(236,72,153,.05), transparent 60%),
    radial-gradient(120% 60% at 88% 100%, rgba(139,92,246,.06), transparent 60%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
}

/* Two-column article layout: content + sidebar */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.single-layout--full { grid-template-columns: minmax(0, 860px); justify-content: center; }
/* Article sits on a soft white card lifted off the patterned background */
.single-layout .content-single {
  max-width: 100%; margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 52px); box-shadow: var(--shadow-sm);
}
.single-layout--full .content-single { margin: 0 auto; }
.content-single { max-width: 820px; margin: 0 auto; }
.content-single { font-size: 1.075rem; line-height: 1.85; color: var(--ink-soft); }
.content-single > p:first-of-type { font-size: 1.18rem; line-height: 1.7; color: var(--ink); } /* lead paragraph */
.content-single p { margin: 0 0 1.4em; }
.content-single img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin: 1.8em auto; }

/* Optimized article headings — clear hierarchy, brand accent, breathing room */
.content-single h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--ink);
  margin: 2em 0 .7em; padding-left: 18px; position: relative; line-height: 1.25; letter-spacing: -.01em;
  scroll-margin-top: 96px;
}
.content-single h2::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 6px;
  border-radius: 6px; background: var(--brand-grad);
}
.content-single h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; color: var(--ink);
  margin: 1.7em 0 .55em; line-height: 1.3; scroll-margin-top: 96px;
}
.content-single h4 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 1.5em 0 .5em; }
.content-single ul, .content-single ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.content-single li { margin-bottom: .55em; }
.content-single ul li::marker { color: var(--brand-pink); }
.content-single a { color: var(--brand-purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(139,92,246,.4); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
.content-single a:hover { color: var(--brand-pink); text-decoration-color: var(--brand-pink); }
.content-single blockquote {
  border-left: 4px solid var(--brand-purple); background: var(--bg-warm);
  margin: 1.8em 0; padding: 16px 24px; border-radius: 0 14px 14px 0;
  font-style: italic; color: var(--ink); font-size: 1.1rem;
}
.content-single hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.entry-head { text-align: center; margin-bottom: 36px; }
.entry-head .cat-tag { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-pink); font-size: 13px; }
.entry-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0; }
.entry-head .meta { color: var(--muted); font-size: 14.5px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.pagination .current { background: var(--brand-grad); color: #fff; border-color: transparent; }
.pagination a:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

/* --- Sidebar & widgets --- */
/* Sidebar scrolls NORMALLY with the article (no sticky/pinning). */
.widget-area {
  align-self: start;
  min-width: 0; box-sizing: border-box;
}
.widget-area__inner {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0; box-sizing: border-box;
}

/* ===== Pinterest sidebar ===== */
.pin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
/* "Save this Pin" card */
.pin-card--save .pin-card__preview { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-warm); }
.pin-card--save .pin-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.pin-card__hint { font-size: 13px; color: var(--muted); text-align: center; margin: 0; padding: 0 18px 18px; }
.pin-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 18px 12px; padding: 12px 18px; border-radius: 999px;
  background: #E60023; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.pin-btn:hover { background: #ad081b; color: #fff; transform: translateY(-2px); }
.pin-btn svg { width: 18px; height: 18px; }

/* Follow / feed card — stack head → embed → button cleanly */
.pin-card--follow { display: flex; flex-direction: column; padding-bottom: 6px; }
.pin-card__head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; position: relative; z-index: 1; background: #fff; }
.pin-card__logo { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: #E60023; color: #fff; display: grid; place-items: center; }
.pin-card__logo svg { width: 22px; height: 22px; }
.pin-card__head h4 { font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 2px; color: var(--ink); line-height: 1.2; }
.pin-card__sub { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.2; }

/* Pinterest embed: it injects an iframe (often position:absolute / floated).
   Force it to flow in-block, full width, centered, no overlap. */
.pin-embed { display: block; padding: 8px; text-align: center; overflow: hidden; width: 100%; box-sizing: border-box; min-height: 800px; }
.pin-embed span, .pin-embed iframe, .pin-embed > a {
  position: static !important; float: none !important; display: block !important;
  width: 100% !important; max-width: 100% !important; margin: 0 auto !important; left: auto !important; }
.pin-embed:empty::after { content: "Loading pins…"; display: block; text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0; }
.pin-btn--follow { background: #E60023; margin: 10px 18px 16px; }
.pin-btn--follow:hover { background: #ad081b; }

.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  position: relative;
  width: 100%; max-width: 100%; box-sizing: border-box;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
/* Clip only widgets that embed fixed-width promo/HTML (not the search card) */
.widget.widget_block:not(.widget_search) { overflow: hidden; }
.widget .wp-block-html, .widget .wp-block-group { overflow: hidden; border-radius: 12px; }
.widget:hover { box-shadow: var(--shadow-md); }
/* Subtle top accent line on each card */
.widget::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-grad); opacity: 0; transition: opacity .3s var(--ease); }
.widget:hover::before { opacity: 1; }
/* Keep any hard-coded promo/Tailwind widget content inside the rail */
.widget * { max-width: 100%; }
.widget img, .widget iframe, .widget table, .widget pre { max-width: 100%; height: auto; }
.widget .wp-block-html > * { max-width: 100% !important; box-sizing: border-box; }

/* Widget headings */
.widget .widget-title, .widget > h2, .widget .wp-block-group h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink);
  margin: 0 0 16px; position: relative; padding-bottom: 12px; line-height: 1.2;
}
.widget .widget-title::after, .widget > h2::after, .widget .wp-block-group h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--brand-grad);
}
/* When several blocks stack inside one widget card (e.g. promo box THEN
   "Recent Posts"), push any heading that isn't first away from the block above
   so it doesn't hug it. :not(:first-child) skips the card's own top heading. */
.widget .wp-block-group__inner-container > h2.wp-block-heading:not(:first-child),
.widget .wp-block-group__inner-container > .wp-block-group:not(:first-child),
.widget .wp-block-group__inner-container > .wp-block-heading:not(:first-child) {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget a { color: var(--ink-soft); font-weight: 500; transition: color .2s var(--ease); }
.widget a:hover { color: var(--brand-pink); }
.widget .wp-block-group { margin: 0; padding: 0; background: transparent; }

/* Recent Posts — clean stacked links, no bullet dots */
.widget .wp-block-latest-posts { list-style: none; margin: 0; padding: 0; }
.widget .wp-block-latest-posts li {
  padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.4;
}
.widget .wp-block-latest-posts li:first-child { padding-top: 4px; }
.widget .wp-block-latest-posts li:last-child { border-bottom: 0; padding-bottom: 2px; }
.widget .wp-block-latest-posts__post-title,
.widget .wp-block-latest-posts a {
  display: block; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.4;
}
.widget .wp-block-latest-posts a:hover { color: var(--brand-pink); }
.widget .wp-block-latest-posts__post-date { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* Recent Comments — author + snippet, no bullet dots */
.widget .wp-block-latest-comments { list-style: none; margin: 0; padding: 0; }
.widget .wp-block-latest-comments__comment {
  list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; margin: 0;
}
.widget .wp-block-latest-comments__comment:first-child { padding-top: 4px; }
.widget .wp-block-latest-comments__comment:last-child { border-bottom: 0; padding-bottom: 2px; }
.widget .wp-block-latest-comments__comment-meta { color: var(--ink-soft); }
.widget .wp-block-latest-comments__comment-author,
.widget .wp-block-latest-comments__comment-meta a { font-weight: 600; color: var(--ink); }
.widget .wp-block-latest-comments__comment-meta a:hover { color: var(--brand-pink); }
.widget .wp-block-latest-comments__comment-link { color: var(--brand-purple); }

/* Categories / Archives — small gradient marker (these DO look good with a dot) */
.widget .wp-block-categories li,
.widget .wp-block-archives li {
  position: relative; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.4;
}
.widget .wp-block-categories li:last-child,
.widget .wp-block-archives li:last-child { border-bottom: 0; }
.widget .wp-block-categories li::before,
.widget .wp-block-archives li::before {
  content: ""; position: absolute; left: 0; top: 1.15em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand-grad); transform: translateY(-50%);
}
/* Search widget — label stacked on top, input+button in a contained row.
   NOTE: the <form> must NOT be flex (its direct children are the label AND the
   wrapper — flexing the form would push the input+button off the edge). */
.widget .wp-block-search { max-width: 100%; margin: 0; }
.widget form[role="search"], .widget .wp-block-search__button-outside { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
.widget .wp-block-search__label {
  display: block; width: 100%; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); margin: 0 0 14px; position: relative; padding-bottom: 12px;
}
.widget .wp-block-search__label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--brand-grad); }

/* Input + button stack VERTICALLY — bulletproof, never overflows a narrow rail */
.widget .wp-block-search__inside-wrapper,
.search-form {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.widget .wp-block-search__input, .search-form input[type="search"] {
  flex: 0 0 auto; width: 100%; min-width: 0; box-sizing: border-box; height: 46px; margin: 0;
  border: 1px solid var(--line); border-radius: 12px; padding: 0 16px;
  font-family: var(--font-body); font-size: 15px; background: var(--bg); color: var(--ink);
}
.widget .wp-block-search__input:focus, .search-form input[type="search"]:focus { outline: none; border-color: var(--brand-purple); background: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.widget .wp-block-search__button, .search-submit, .widget input[type="submit"] {
  flex: 0 0 auto; width: 100%; height: 46px; margin: 0 !important; border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer; color: #fff;
  background: var(--brand-grad); font-family: var(--font-head); font-weight: 600; font-size: 15px;
  white-space: nowrap; box-sizing: border-box; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.widget .wp-block-search__button:hover, .search-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.widget .wp-block-search__button.has-icon { padding: 0; }
.widget .wp-block-search__button.has-icon svg { width: 20px; height: 20px; fill: #fff; min-width: 0; min-height: 0; }
.wp-block-latest-posts, .wp-block-latest-comments { list-style: none; margin: 0; padding: 0; }
.wp-block-latest-posts li, .wp-block-latest-comments li { padding: 8px 0; border-bottom: 1px dashed var(--line); }

/* Entry tags */
.entry-tags { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-tags .tags-label { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.entry-tags a { display: inline-block; background: var(--bg-warm); color: var(--brand-purple); padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.entry-tags a:hover { background: var(--brand-grad); color: #fff; }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.post-nav__link:hover { transform: translateY(-3px); border-color: var(--brand-purple); }
.post-nav__next { text-align: right; }
.post-nav__dir { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--brand-pink); }
.post-nav__title { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.35; }
.post-nav:has(.post-nav__next:only-child) { grid-template-columns: 1fr; }

/* Similar posts */
.similar-posts { margin: 52px 0 0; }
.similar-title { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.similar-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; border-radius: 5px; background: var(--brand-grad); }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.similar-grid .post-body h3 { font-size: 1.05rem; }

.comments-wrap { margin-top: 52px; }
.comment-list { list-style: none; padding: 0; }
#comments .comment-form { display: grid; gap: 14px; margin-top: 22px; }
#comments input:not([type=submit]), #comments textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-family: var(--font-body); font-size: 15px; }
#comments .submit { background: var(--brand-grad); color: #fff; border: 0; border-radius: 999px; padding: 13px 30px; font-family: var(--font-head); font-weight: 600; cursor: pointer; width: fit-content; }

/* ==========================================================================
   9c. About page
   ========================================================================== */
.about-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); background: var(--brand-grad-soft); }
.about-hero__inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-hero__text h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.1; margin: 18px 0 .4em; }
.about-hero__text h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 30px; }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.about-hero__art { position: relative; display: grid; place-items: center; }
.about-hero__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 7px solid #fff; transform: rotate(2deg); aspect-ratio: 4/5; width: min(100%, 380px); }
.about-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__badge {
  position: absolute; left: -6px; bottom: 24px; z-index: 4; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 0 12px; align-items: center; text-align: left;
}
.about-hero__badge svg { grid-row: 1 / span 2; width: 34px; height: 34px; color: var(--brand-purple); }
.about-hero__badge .num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.about-hero__badge .lbl { font-size: 12.5px; color: var(--muted); }

/* Stats strip */
.about-stats { background: var(--ink); }
.about-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: clamp(34px, 4vw, 52px) 0; text-align: center; }
.about-stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.7rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.about-stat .lbl { color: #b8afc6; font-size: 14px; margin-top: 8px; }

/* Values */
.about-mission { position: relative; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: clamp(30px, 4vw, 48px); }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-grad-soft); display: grid; place-items: center; margin-bottom: 18px; }
.value-ic svg { width: 28px; height: 28px; color: var(--brand-purple); }
.value-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .4em; }
.value-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* Art wall */
.about-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.about-wall__tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.about-wall__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.about-wall__tile:hover img { transform: scale(1.08); }
.about-wall__cap { position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; background: linear-gradient(transparent, rgba(27,21,35,.85)); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.about-wall__tile:hover .about-wall__cap { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .about-hero__inner { grid-template-columns: 1fr; }
  .about-hero__art { margin-top: 8px; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ==========================================================================
   9d. Contact page
   ========================================================================== */
.contact-hero { padding: clamp(52px, 7vw, 96px) 0 clamp(40px, 5vw, 60px); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 52px); align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-ic { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-grad-soft); display: grid; place-items: center; }
.contact-ic svg { width: 26px; height: 26px; color: var(--brand-purple); }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; margin: 2px 0 6px; }
.contact-card > div > a { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--brand-purple); }
.contact-card > div > a:hover { color: var(--brand-pink); }
.contact-card p { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 0; }
.contact-socials { display: flex; gap: 10px; margin-top: 14px; }
.contact-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-warm); color: var(--ink-soft); transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.contact-socials a:hover { transform: translateY(-3px); background: var(--brand-grad); color: #fff; }
.contact-socials svg { width: 19px; height: 19px; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.contact-form-wrap h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 6px; }
.contact-form-sub { color: var(--ink-soft); margin-bottom: 26px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field span { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.cf-field input, .cf-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  font-family: var(--font-body); font-size: 15px; background: var(--bg); color: var(--ink); resize: vertical;
}
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--brand-purple); background: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-form-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9b. Art-themed animations
   ========================================================================== */

/* Watercolor gradient "ink flow" on the hero grad text */
@keyframes gsaz-ink {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
.hero h1 .grad {
  background: linear-gradient(90deg, #EC4899, #A855F7, #8B5CF6, #EC4899);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gsaz-ink 8s ease-in-out infinite;
}

/* Floating paint orbs in the hero */
@keyframes gsaz-float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-30px) scale(1.08); } }
@keyframes gsaz-float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,26px) scale(1.06); } }
.hero::before { animation: gsaz-float-a 11s ease-in-out infinite; }
.hero::after  { animation: gsaz-float-b 13s ease-in-out infinite; }

/* Extra drifting blobs layer */
.hero .paint-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero .paint-blobs span {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: .38; mix-blend-mode: multiply;
}
.hero .paint-blobs span:nth-child(1){ width: 220px; height: 220px; background:#FBCFE8; top: 12%; left: 8%;  animation: gsaz-float-a 14s ease-in-out infinite; }
.hero .paint-blobs span:nth-child(2){ width: 180px; height: 180px; background:#C4B5FD; top: 55%; left: 30%; animation: gsaz-float-b 17s ease-in-out infinite; }
.hero .paint-blobs span:nth-child(3){ width: 160px; height: 160px; background:#A7F3D0; top: 30%; right: 22%; animation: gsaz-float-a 19s ease-in-out infinite; }

/* Continuous gentle bob on the hero collage tiles */
@keyframes gsaz-bob-1 { 0%,100% { transform: translateY(-14px) rotate(-2deg); } 50% { transform: translateY(-26px) rotate(-2deg); } }
@keyframes gsaz-bob-2 { 0%,100% { transform: translateY(14px)  rotate(2deg);  } 50% { transform: translateY(4px)   rotate(2deg);  } }
@keyframes gsaz-bob-3 { 0%,100% { transform: translateY(6px)   rotate(1.5deg);} 50% { transform: translateY(18px)  rotate(1.5deg);} }
@keyframes gsaz-bob-4 { 0%,100% { transform: translateY(-6px)  rotate(-1.5deg);}50% { transform: translateY(-18px) rotate(-1.5deg);} }
.hero-collage .tile:nth-child(1){ animation: gsaz-bob-1 6.5s ease-in-out infinite; }
.hero-collage .tile:nth-child(2){ animation: gsaz-bob-2 7.5s ease-in-out infinite; }
.hero-collage .tile:nth-child(3){ animation: gsaz-bob-3 7s   ease-in-out infinite; }
.hero-collage .tile:nth-child(4){ animation: gsaz-bob-4 8s   ease-in-out infinite; }

/* Hero entrance */
@keyframes gsaz-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { animation: gsaz-rise .6s .05s var(--ease) both; }
.hero h1      { animation: gsaz-rise .7s .12s var(--ease) both; }
.hero-lead    { animation: gsaz-rise .7s .22s var(--ease) both; }
.hero-actions { animation: gsaz-rise .7s .32s var(--ease) both; }
.hero-stats   { animation: gsaz-rise .7s .42s var(--ease) both; }
.hero-collage .tile { opacity: 0; animation: gsaz-rise .7s var(--ease) both; }
.hero-collage .tile:nth-child(1){ animation-delay: .30s, 0s; }
.hero-collage .tile:nth-child(2){ animation-delay: .40s, 0s; }
.hero-collage .tile:nth-child(3){ animation-delay: .50s, 0s; }
.hero-collage .tile:nth-child(4){ animation-delay: .60s, 0s; }
/* keep the entrance + the bob both running */
.hero-collage .tile:nth-child(1){ animation: gsaz-rise .7s .30s var(--ease) both, gsaz-bob-1 6.5s .9s ease-in-out infinite; }
.hero-collage .tile:nth-child(2){ animation: gsaz-rise .7s .40s var(--ease) both, gsaz-bob-2 7.5s 1s  ease-in-out infinite; }
.hero-collage .tile:nth-child(3){ animation: gsaz-rise .7s .50s var(--ease) both, gsaz-bob-3 7s   1.1s ease-in-out infinite; }
.hero-collage .tile:nth-child(4){ animation: gsaz-rise .7s .60s var(--ease) both, gsaz-bob-4 8s   1.2s ease-in-out infinite; }

/* Animated brush-stroke underline under section kickers */
.section-head .kicker, .hero-eyebrow { position: relative; }
@keyframes gsaz-stroke { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.section-head .kicker::after {
  content: ""; display: block; width: 54px; height: 6px; margin: 10px auto 0;
  border-radius: 6px; background: var(--brand-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.section-head.in-view .kicker::after { transform: scaleX(1); }

/* Section heads fade-up when scrolled into view (JS toggles .in-view) */
.section-head { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.section-head.in-view { opacity: 1; transform: none; }

/* Tilt/press feedback on cards */
.post-card, .cat-card { will-change: transform; }
.post-card:active { transform: translateY(-4px) scale(.99); }

/* Shine sweep across post thumbnails on hover */
.post-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.post-card:hover .post-thumb::after { transform: translateX(120%); }

/* Button sparkle nudge */
.btn--primary svg { transition: transform .25s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

/* Newsletter floating orbs drift */
.newsletter-card::before { animation: gsaz-float-a 15s ease-in-out infinite; }
.newsletter-card::after  { animation: gsaz-float-b 18s ease-in-out infinite; }

/* --- Single-post: reading progress bar --- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: var(--brand-grad); z-index: 200; border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(139,92,246,.5); transition: width .1s linear;
}

/* --- Single-post: content elements reveal on scroll (JS adds .reveal / .is-in) --- */
.content-single .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.content-single .reveal.is-in { opacity: 1; transform: none; }

/* Single-hero entrance */
.single-hero__text { animation: gsaz-rise .7s .08s var(--ease) both; }
@keyframes gsaz-rise-r { from { opacity: 0; transform: translateX(30px) rotate(1.4deg); } to { opacity: 1; transform: translateX(0) rotate(1.4deg); } }
.single-hero__figure { animation: gsaz-rise-r .8s .2s var(--ease) both, gsaz-figbob 7s 1.1s ease-in-out infinite; }
@keyframes gsaz-figbob { 0%,100% { transform: translateY(0) rotate(1.4deg); } 50% { transform: translateY(-10px) rotate(1.4deg); } }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { max-width: 480px; margin-top: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .single-layout { grid-template-columns: 1fr; }
  .single-hero--split .single-hero__inner { grid-template-columns: 1fr; }
  .single-hero__figure { order: -1; max-width: 520px; }
  /* On tablet/mobile the sidebar flows normally (no fixed height / own-scroll) */
  .widget-area { position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; padding: 0; }
  .widget-area .widget { flex: 1 1 260px; }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; }
  .widget-area { flex-direction: column; }
  .single-hero__figure { transform: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; margin: 0; padding: 14px 22px 22px;
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s var(--ease);
    border-bottom: 1px solid var(--line); max-height: calc(100dvh - 76px); overflow: auto;
  }
  body.nav-open .primary-nav { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { display: block; font-size: 17px; padding: 12px 16px; }
  .header-social { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-collage .tile,
  .hero-eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-stats,
  .section-head,
  .single-hero__text, .content-single .reveal { opacity: 1 !important; transform: none !important; }
  .single-hero__figure { opacity: 1 !important; transform: rotate(1.4deg) !important; }
  .hero .paint-blobs, .single-hero__paint { display: none; }
}
