/*
Theme Name:   Wayne Northey Child
Theme URI:    https://waynenorthey.com
Description:  Hello Elementor Child Theme — Wayne Northey v2
              Literary editorial aesthetic: Playfair Display + DM Sans,
              deep navy sidebar, olive-green accents, warm paper background.
Author:       Your Name
Template:     hello-elementor
Version:      2.0.0
Text Domain:  waynenorthey
*/

/* ============================================================
   GOOGLE FONTS — loaded via functions.php
   Playfair Display (serif) + DM Sans (sans-serif)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS  —  match prototype exactly
   ============================================================ */
:root {
  --wn-ink:       #1c1f2e;   /* deep navy-charcoal — sidebar, headings */
  --wn-paper:     #f7f5f0;   /* warm off-white — site background */
  --wn-cream:     #edeae2;   /* cream — cards, dividers, blockquotes */
  --wn-mid:       #8a8c9a;   /* muted blue-grey — meta, labels */
  --wn-accent:    #4a6741;   /* olive green — primary accent, links */
  --wn-accent-lt: #5a7d50;   /* lighter olive for hover states */
  --wn-rust:      #7a3228;   /* deep burgundy-rust — drop caps, dates */
  --wn-gold:      #b8973a;   /* muted gold — logotype, stars, footer */
  --wn-dark-text: #2e3040;   /* body copy */
  --wn-sub-text:  #5a5c6a;   /* secondary body copy */
  --wn-sidebar-w: 272px;
  --wn-serif:     'Playfair Display', Georgia, serif;
  --wn-sans:      'DM Sans', system-ui, sans-serif;
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--wn-paper) !important;
  color: var(--wn-ink);
  font-family: var(--wn-sans);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

/* Remove Hello Elementor default padding/margin on containers */
.e-con,
.e-con-inner,
.elementor-section,
.elementor-container {
  --padding-top: 0;
  --padding-bottom: 0;
}

/* ============================================================
   SITE WRAPPER — caps width on very large screens
   ============================================================ */
.wn-site-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

/* ============================================================
   MAIN CONTENT OFFSET — sidebar is 272px fixed
   ============================================================ */
.site-content,
#primary,
.elementor-page-content,
body.page .e-page,
body.single .e-page {
  margin-left: var(--wn-sidebar-w) !important;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   Build as an Elementor Header Template, type: Header,
   display condition: Entire Site.
   Add CSS class "wn-sidebar" to the outer section.
   ============================================================ */
.wn-sidebar {
  position: fixed !important;
  top: 0; left: 0;
  width: var(--wn-sidebar-w);
  height: 100vh;
  background: var(--wn-ink) !important;
  display: flex !important;
  flex-direction: column;
  padding: 44px 32px 36px;
  z-index: 1000;
  overflow-y: auto;
}

/* Grain texture overlay */
.wn-sidebar::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none; z-index: 0;
}
.wn-sidebar > * { position: relative; z-index: 1; }

/* ── Logotype — add CSS class "wn-logotype" to a Text widget ── */
.wn-logotype {
  display: block;
  text-decoration: none;
  margin-bottom: 44px;
  line-height: 1;
}
.wn-logotype .wn-logo-first {
  display: block;
  font-family: var(--wn-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--wn-paper);
  letter-spacing: -0.01em;
}
.wn-logotype .wn-logo-last {
  display: block;
  font-family: var(--wn-serif);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--wn-gold);
  letter-spacing: -0.01em;
}
.wn-logotype .wn-logo-rule {
  display: block;
  height: 1px;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--wn-gold), transparent);
  width: 68px;
}

/* ── Sidebar navigation ── */
.wn-sidebar nav ul,
.wn-sidebar .elementor-nav-menu { list-style: none; margin: 0; padding: 0; }
.wn-sidebar nav li,
.wn-sidebar .elementor-nav-menu li {
  border-top: 1px solid rgba(255,255,255,.08);
}
.wn-sidebar nav li:last-child,
.wn-sidebar .elementor-nav-menu li:last-child {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wn-sidebar nav a,
.wn-sidebar .elementor-nav-menu a {
  display: block;
  padding: 11px 0;
  color: rgba(255,255,255,.52) !important;
  text-decoration: none;
  font-family: var(--wn-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s, padding-left .2s;
  background: transparent !important;
}
.wn-sidebar nav a:hover,
.wn-sidebar .elementor-nav-menu a:hover {
  color: var(--wn-paper) !important;
  padding-left: 5px;
}
.wn-sidebar nav a.current-menu-item,
.wn-sidebar .elementor-nav-menu .current-menu-item > a {
  color: var(--wn-gold) !important;
  padding-left: 5px;
}
.wn-sidebar nav a.current-menu-item::before,
.wn-sidebar .elementor-nav-menu .current-menu-item > a::before {
  content: '—';
  margin-right: 6px;
}

/* ── Sidebar tagline — add class "wn-sidebar-tag" ── */
.wn-sidebar-tag {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--wn-serif);
  font-size: .76rem;
  font-style: italic;
  color: rgba(255,255,255,.28);
  line-height: 1.6;
}

/* ============================================================
   HERO IMAGE BAND  (home page only)
   Add CSS class "wn-hero-image-band" to the section.
   Set section height to 33vh in Elementor layout settings.
   Upload Foggy_Hazy_Forest_Hero_Image_1.jpeg as background.
   ============================================================ */
.wn-hero-image-band {
  width: 100% !important;
  height: 33vh !important;
  min-height: 220px !important;
  max-height: 340px !important;
  position: relative !important;
  overflow: hidden !important;
}
.wn-hero-image-band .elementor-background-overlay,
.wn-hero-image-band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,31,46,.18) 0%,
    rgba(28,31,46,.05) 50%,
    rgba(247,245,240,.95) 100%
  ) !important;
  z-index: 1;
}
/* Tagline overlay at bottom of hero image */
.wn-hero-image-label {
  position: absolute !important;
  bottom: 0; left: 0; right: 0;
  padding: 24px 48px !important;
  z-index: 2;
}
.wn-hero-image-label-text {
  font-family: var(--wn-serif) !important;
  font-size: clamp(1.3rem, 2.2vw, 2rem) !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.92) !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.45) !important;
}
.wn-hero-image-label-text em,
.wn-hero-image-label-text i {
  font-style: italic;
  color: #e8d898 !important;
}

/* ============================================================
   HERO CONTENT  (below the image band, home page)
   Add CSS class "wn-hero-content" to the section.
   Use a 2-column Elementor layout: 70% + 30%.
   ============================================================ */
.wn-hero-content {
  padding: 52px 72px 48px !important;
  border-bottom: 1px solid var(--wn-cream) !important;
  background: var(--wn-paper) !important;
}
.wn-hero-eyebrow {
  font-size: .65rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: var(--wn-accent) !important;
  font-weight: 500 !important;
  font-family: var(--wn-sans) !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center;
  gap: 14px;
}
.wn-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--wn-accent);
  flex-shrink: 0;
}
.wn-hero-intro {
  font-family: var(--wn-serif) !important;
  font-size: 1.12rem !important;
  font-weight: 400 !important;
  color: var(--wn-dark-text) !important;
  line-height: 1.85 !important;
}
.wn-hero-mantra {
  border-left: 3px solid var(--wn-accent) !important;
  padding: 14px 0 14px 20px !important;
  font-family: var(--wn-serif) !important;
  font-style: italic !important;
  font-size: .95rem !important;
  color: #3a3c4a !important;
  line-height: 1.7 !important;
  margin-top: 20px !important;
}

/* Aside "Latest" column */
.wn-hero-aside-label {
  font-size: .6rem !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--wn-mid) !important;
  font-weight: 500 !important;
  font-family: var(--wn-sans) !important;
  margin-bottom: 14px !important;
}
.wn-latest-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--wn-cream);
}
.wn-latest-date {
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wn-accent);
  margin-bottom: 3px;
  font-family: var(--wn-sans);
}
.wn-latest-title {
  font-family: var(--wn-serif);
  font-size: .9rem;
  color: var(--wn-ink);
  line-height: 1.4;
  text-decoration: none;
  display: block;
}
.wn-latest-title:hover { color: var(--wn-accent); }

/* ============================================================
   NAV CARDS  (6-column grid at bottom of home hero)
   Add CSS class "wn-nav-cards" to the section.
   Each column gets class "wn-nav-card".
   ============================================================ */
.wn-nav-cards.elementor-section,
.wn-nav-cards {
  background: var(--wn-ink) !important;
  border-top: 2px solid var(--wn-ink) !important;
  padding: 0 !important;
}
.wn-nav-cards .elementor-column {
  background: var(--wn-cream) !important;
  border-right: 1px solid #d8d4ca;
  transition: background .2s;
  padding: 0 !important;
}
.wn-nav-cards .elementor-column:last-child { border-right: none; }
.wn-nav-cards .elementor-column:hover { background: var(--wn-accent) !important; }
.wn-nav-cards .elementor-column:hover .wn-nc-title,
.wn-nav-cards .elementor-column:hover .wn-nc-arrow { color: #fff !important; }
.wn-nav-cards .elementor-column:hover .wn-nc-desc { color: rgba(255,255,255,.75) !important; }

/* Nav cards — PHP template version (link elements, not Elementor columns) */
.wn-nav-cards:not(.elementor-section) {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
}
.wn-nav-cards .wn-nav-card {
  background: var(--wn-cream) !important;
  border-right: 1px solid #d8d4ca !important;
  transition: background .2s;
  text-decoration: none !important;
  display: block !important;
}
.wn-nav-cards .wn-nav-card:last-child { border-right: none !important; }
.wn-nav-cards .wn-nav-card:hover { background: var(--wn-accent) !important; }
.wn-nav-cards .wn-nav-card:hover .wn-nc-title,
.wn-nav-cards .wn-nav-card:hover .wn-nc-arrow { color: #fff !important; }
.wn-nav-cards .wn-nav-card:hover .wn-nc-desc { color: rgba(255,255,255,.75) !important; }

/* Hero content — PHP template grid (Elementor version uses built-in columns) */
.wn-hero-content:not(.elementor-section) {
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  gap: 48px !important;
}

.wn-nav-card-inner { padding: 22px 16px; display: block; text-decoration: none; }
.wn-nc-title {
  font-family: var(--wn-serif);
  font-size: .84rem; font-weight: 600;
  color: var(--wn-ink);
  margin-bottom: 4px; line-height: 1.3;
  transition: color .2s;
}
.wn-nc-desc  { font-size: .61rem; color: var(--wn-mid); line-height: 1.5; transition: color .2s; }
.wn-nc-arrow { display: block; margin-top: 12px; font-size: .88rem; color: var(--wn-mid); transition: color .2s; }

/* ============================================================
   PAGE HERO BAND  (secondary pages — all inner pages)
   Add CSS class "wn-page-hero-band" to the section.
   Upload secondary_page_hero.jpg as background image.
   Set section height to 18vh in Elementor layout.
   ============================================================ */
.wn-page-hero-band {
  width: 100% !important;
  height: 18vh !important;
  min-height: 120px !important;
  position: relative !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center 55% !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: flex-end !important;
}
/* Overlay — Elementor version */
.wn-page-hero-band .elementor-background-overlay {
  background: linear-gradient(
    to bottom,
    rgba(28,31,46,.3) 0%,
    rgba(28,31,46,.55) 100%
  ) !important;
}
/* Overlay — PHP template version (::after) */
.wn-page-hero-band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,31,46,.3) 0%,
    rgba(28,31,46,.55) 100%
  );
  z-index: 0;
}
/* Title container — absolutely fills the band, text anchored to bottom.
   Matches prototype: position:absolute;inset:0;flex-column;justify-end */
.wn-page-hero-band-title {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 20px 72px !important;
}
.wn-page-hero-label {
  font-size: .6rem !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.6) !important;
  font-weight: 500 !important;
  margin-bottom: 5px !important;
}
.wn-page-hero-heading {
  font-family: var(--wn-serif) !important;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  font-weight: 400 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.3) !important;
}

/* ============================================================
   SECTION HEADERS  (used on pages that don't have a hero band)
   Add CSS class "wn-sec-header" to the section.
   ============================================================ */
.wn-sec-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 72px 36px !important;
  border-bottom: 1px solid var(--wn-cream) !important;
}
.wn-sec-label {
  font-size: .66rem !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: var(--wn-accent) !important;
  font-weight: 500 !important;
  font-family: var(--wn-sans) !important;
  margin-bottom: 12px !important;
}
.wn-sec-title {
  font-family: var(--wn-serif) !important;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  color: var(--wn-ink) !important;
}
.wn-sec-sub {
  margin-top: 11px !important;
  font-size: .94rem !important;
  color: var(--wn-sub-text) !important;
  max-width: 520px;
  line-height: 1.75 !important;
}

/* Decorative gradient rule — add class "wn-rule" to an HR or Divider widget */
.wn-rule,
hr.wn-rule {
  height: 1px !important;
  background: linear-gradient(90deg, var(--wn-accent), transparent) !important;
  max-width: 80px !important;
  margin: 16px 0 24px !important;
  border: none !important;
}

/* ============================================================
   TYPOGRAPHY GLOBALS
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--wn-serif) !important;
  color: var(--wn-ink);
  line-height: 1.2;
}
p, li, td, input, textarea, select {
  font-family: var(--wn-sans);
  font-weight: 300;
}
a { color: var(--wn-accent); transition: color .2s; }
a:hover { color: var(--wn-ink); }

/* ── Pull Quote — add class "wn-pull-quote" ── */
.wn-pull-quote,
.elementor-widget.wn-pull-quote .elementor-widget-container {
  border-left: 3px solid var(--wn-accent) !important;
  padding: 5px 0 5px 20px !important;
  font-family: var(--wn-serif) !important;
  font-size: 1.06rem !important;
  font-style: italic !important;
  color: var(--wn-ink) !important;
  line-height: 1.65 !important;
  margin: 1.8em 0 !important;
}

/* ── Gold Blockquote — add class "wn-blockquote" ── */
.wn-blockquote,
.elementor-widget.wn-blockquote .elementor-widget-container,
.content-body blockquote {
  margin: 1.6em 0 !important;
  padding: 18px 24px !important;
  background: var(--wn-cream) !important;
  border-left: 3px solid var(--wn-gold) !important;
  font-family: var(--wn-serif) !important;
  font-style: italic !important;
  font-size: 1.02rem !important;
  color: var(--wn-dark-text) !important;
  line-height: 1.7 !important;
}

/* ── Drop Cap — add class "wn-dropcap" ── */
.wn-dropcap .elementor-widget-container p:first-of-type::first-letter,
.wn-dropcap p:first-of-type::first-letter {
  font-family: var(--wn-serif);
  font-size: 3.5rem;
  font-weight: 800;
  float: left;
  line-height: .84;
  margin: 10px 12px 0 0;
  color: var(--wn-rust);
}

/* ============================================================
   CONTENT LAYOUT  (2-column: main + sidebar)
   Add class "wn-content-layout" to the 2-col section.
   First column: "wn-content-body"
   Second column (248px): "wn-content-sidebar"
   ============================================================ */
.wn-content-layout {
  display: grid !important;
  grid-template-columns: 1fr 248px !important;
  min-height: 60vh;
}
.wn-content-body {
  padding: 56px 48px 64px 72px !important;
  border-right: 1px solid var(--wn-cream) !important;
}
.wn-content-body p { font-size: 1rem; line-height: 1.9; color: var(--wn-dark-text); margin-bottom: 1.4em; }
.wn-content-body h2 { font-family: var(--wn-serif) !important; font-size: 1.4rem !important; font-weight: 600 !important; color: var(--wn-ink) !important; margin: 1.8em 0 .65em !important; line-height: 1.3 !important; }
.wn-content-body a { color: var(--wn-accent); text-decoration: underline; }

.wn-content-sidebar { padding: 56px 24px 64px 20px !important; }
.wn-sidebar-widget {
  margin-bottom: 22px !important;
  padding: 16px !important;
  border: 1px solid var(--wn-cream) !important;
  background: #fff !important;
}
.wn-sidebar-widget h3 {
  font-family: var(--wn-serif) !important;
  font-size: .88rem !important; font-weight: 600 !important;
  color: var(--wn-ink) !important;
  margin-bottom: 8px !important; padding-bottom: 6px !important;
  border-bottom: 1px solid var(--wn-cream) !important;
}
.wn-sidebar-widget p { font-size: .77rem !important; color: var(--wn-sub-text) !important; line-height: 1.7 !important; }

/* Dark note box */
.wn-dark-note {
  background: var(--wn-ink) !important;
  color: var(--wn-paper) !important;
  padding: 20px 18px !important;
  font-size: .78rem !important;
  line-height: 1.8 !important;
}
.wn-dark-note strong {
  font-family: var(--wn-serif) !important;
  font-size: .87rem !important;
  color: var(--wn-gold) !important;
  display: block !important;
  margin-bottom: 6px !important;
}

/* ============================================================
   ABOUT PAGE — portrait + sidebar
   ============================================================ */
.wn-about-layout {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
}
.wn-about-text { padding: 60px 48px 60px 72px !important; border-right: 1px solid var(--wn-cream) !important; }
.wn-about-text p { font-size: 1rem; line-height: 1.9; color: var(--wn-dark-text); margin-bottom: 1.4em; }
.wn-about-col { padding: 60px 32px 60px 28px !important; display: flex !important; flex-direction: column !important; gap: 20px !important; }

/* ============================================================
   BOOK REVIEWS — MASONRY GRID
   Use shortcode [wn_book_grid] inside an HTML widget,
   OR use Elementor Loop Grid (Pro).
   ============================================================ */
.wn-book-filters {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 72px !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--wn-cream) !important;
  align-items: center;
}
.wn-filter-label {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wn-mid); font-weight: 500; margin-right: 4px;
}
.wn-filter-btn {
  padding: 5px 13px;
  border: 1px solid #c8c4ba;
  background: transparent;
  color: #5a5c6a;
  font-family: var(--wn-sans); font-size: .67rem; letter-spacing: .05em;
  cursor: pointer; transition: all .18s;
}
.wn-filter-btn:hover, .wn-filter-btn.active {
  background: var(--wn-ink); border-color: var(--wn-ink); color: var(--wn-paper);
}

.wn-book-grid { max-width: 1440px; margin: 0 auto; padding: 36px 52px; columns: 3; column-gap: 18px; }
.wn-book-card {
  break-inside: avoid; margin-bottom: 18px;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: block; text-decoration: none;
}
.wn-book-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.wn-book-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--wn-cream); }
.wn-book-meta { padding: 14px 16px 17px; }
.wn-stars { display: flex; gap: 2px; margin-bottom: 7px; }
.wn-star     { font-size: .78rem; color: var(--wn-gold); }
.wn-star.wn-empty { color: #ddd8ce; }
.wn-book-title  { font-family: var(--wn-serif); font-size: .92rem; font-weight: 600; color: var(--wn-ink); line-height: 1.3; margin-bottom: 2px; }
.wn-book-author { font-size: .7rem; color: var(--wn-rust); font-style: italic; margin-bottom: 7px; }
.wn-book-excerpt {
  font-size: .76rem; color: var(--wn-sub-text); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wn-book-tag {
  display: inline-block; margin-top: 10px; padding: 3px 8px;
  background: var(--wn-cream); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--wn-mid); font-weight: 500;
}

/* ============================================================
   ESSAY / WRITING LIST
   Use shortcode [wn_essay_list] inside an HTML widget.
   ============================================================ */
.wn-essays-list { padding: 0 72px 72px; }
.wn-essay-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 30px 0; border-bottom: 1px solid var(--wn-cream);
  cursor: pointer; text-decoration: none; color: inherit;
}
.wn-essay-item:hover .wn-essay-title { color: var(--wn-accent); }
.wn-essay-date { display: flex; flex-direction: column; padding-top: 3px; }
.wn-essay-month { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wn-mid); font-weight: 500; }
.wn-essay-day   { font-family: var(--wn-serif); font-size: 1.7rem; font-weight: 800; color: var(--wn-rust); line-height: 1; }
.wn-essay-year  { font-size: .57rem; color: var(--wn-mid); }
.wn-essay-title   { font-family: var(--wn-serif); font-size: 1.24rem; font-weight: 600; color: var(--wn-ink); line-height: 1.3; margin-bottom: 7px; transition: color .2s; }
.wn-essay-excerpt { font-size: .83rem; color: var(--wn-sub-text); line-height: 1.7; margin-bottom: 8px; }
.wn-essay-tag     { font-size: .59rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wn-accent); font-weight: 500; }

/* ============================================================
   PRESS GRID
   ============================================================ */
.wn-press-grid {
  padding: 36px 72px 64px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 15px !important;
}
.wn-press-item {
  border: 1px solid var(--wn-cream) !important;
  padding: 20px !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.wn-press-item:hover { border-color: var(--wn-accent) !important; box-shadow: 0 4px 14px rgba(0,0,0,.06) !important; }
.wn-press-outlet  { font-size: .59rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wn-mid); font-weight: 500; margin-bottom: 7px; }
.wn-press-headline { font-family: var(--wn-serif); font-size: .9rem; font-weight: 600; color: var(--wn-ink); line-height: 1.4; margin-bottom: 7px; }
.wn-press-date    { font-size: .67rem; color: var(--wn-mid); font-style: italic; }

/* ============================================================
   CONTACT FORM  (WPForms / CF7 / Elementor Form)
   Wrap the form section with class "wn-contact-form"
   ============================================================ */
.wn-contact-form input[type="text"],
.wn-contact-form input[type="email"],
.wn-contact-form textarea,
.wn-contact-form .wpcf7-form-control,
.elementor-field-group input,
.elementor-field-group textarea {
  border: 1px solid #ccc8bf !important;
  border-radius: 0 !important;
  background: #fff !important;
  font-family: var(--wn-sans) !important;
  font-size: .88rem !important;
  color: var(--wn-ink) !important;
  padding: 9px 12px !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color .2s !important;
  box-shadow: none !important;
}
.wn-contact-form input:focus,
.wn-contact-form textarea:focus,
.elementor-field-group input:focus,
.elementor-field-group textarea:focus { border-color: var(--wn-accent) !important; }

.wn-contact-form label,
.elementor-field-label {
  font-size: .6rem !important; letter-spacing: .12em !important;
  text-transform: uppercase !important; color: var(--wn-mid) !important;
  font-weight: 500 !important; font-family: var(--wn-sans) !important;
  margin-bottom: 5px !important;
}

/* ============================================================
   BUTTONS  — add class "wn-btn" to any button widget
   ============================================================ */
.wn-btn,
.wn-contact-form input[type="submit"],
.wn-contact-form button[type="submit"],
.elementor-button.wn-btn {
  padding: 11px 30px !important;
  background: var(--wn-ink) !important;
  color: var(--wn-paper) !important;
  font-family: var(--wn-sans) !important;
  font-size: .67rem !important; letter-spacing: .16em !important;
  text-transform: uppercase !important; font-weight: 500 !important;
  border: none !important; border-radius: 0 !important;
  cursor: pointer !important; transition: background .2s !important;
}
.wn-btn:hover,
.wn-contact-form input[type="submit"]:hover,
.elementor-button.wn-btn:hover { background: var(--wn-rust) !important; }

/* ============================================================
   FOOTER  — 4-column dark band
   Add class "wn-footer" to the footer Elementor template section.
   ============================================================ */
.wn-footer {
  background: var(--wn-ink) !important;
  color: rgba(255,255,255,.55) !important;
  border-top: 3px solid var(--wn-accent) !important;
  padding: 0 !important;
}
/* Footer inner grid — 4 columns (PHP footer.php) */
.wn-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
/* Logo column — flex column, space-between */
.wn-footer-logo-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
/* Each column of the footer grid */
.wn-footer-col { padding: 40px 36px !important; }
.wn-footer-col + .wn-footer-col { border-left: 1px solid rgba(255,255,255,.07) !important; }

.wn-footer-col-label {
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wn-gold); font-weight: 500; margin-bottom: 16px !important; display: block;
}
/* Logotype in footer */
.wn-footer-logotype .wn-fl { display: block; font-family: var(--wn-serif); font-size: 1.6rem; font-weight: 800; color: var(--wn-paper); line-height: 1; }
.wn-footer-logotype .wn-ll { display: block; font-family: var(--wn-serif); font-size: 1.6rem; font-weight: 400; font-style: italic; color: var(--wn-gold); line-height: 1; }
.wn-footer-logotype .wn-lr { display: block; height: 1px; margin-top: 8px; background: linear-gradient(90deg, var(--wn-gold), transparent); width: 54px; }
.wn-footer-tagline { font-family: var(--wn-serif); font-style: italic; font-size: .76rem; color: rgba(255,255,255,.3); line-height: 1.6; margin-top: 16px !important; max-width: 180px; }

/* Footer nav links */
.wn-footer-nav { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.wn-footer-nav li { margin-bottom: 7px !important; }
.wn-footer-nav a { color: rgba(255,255,255,.45) !important; text-decoration: none !important; font-size: .72rem !important; letter-spacing: .04em !important; transition: color .18s !important; }
.wn-footer-nav a:hover { color: var(--wn-gold) !important; }

.wn-footer-body { font-size: .78rem !important; line-height: 1.75 !important; color: rgba(255,255,255,.42) !important; }
.wn-footer-body a { color: rgba(255,255,255,.55) !important; text-decoration: none !important; transition: color .18s !important; }
.wn-footer-body a:hover { color: var(--wn-gold) !important; }
.wn-footer-body p { margin-bottom: 8px !important; }

/* Footer bottom bar — add class "wn-footer-bottom" */
.wn-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07) !important;
  padding: 16px 36px !important;
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  font-size: .62rem !important; color: rgba(255,255,255,.25) !important;
  letter-spacing: .06em !important;
}
.wn-footer-bottom a { color: rgba(255,255,255,.3) !important; text-decoration: none !important; transition: color .18s !important; }
.wn-footer-bottom a:hover { color: var(--wn-gold) !important; }
.wn-footer-bottom-links { display: flex !important; gap: 20px !important; }

/* ============================================================
   MOBILE HAMBURGER — show on ≤760px
   Add class "wn-hamburger" to a fixed Elementor button
   ============================================================ */
.wn-hamburger {
  display: none !important;
  position: fixed; top: 15px; right: 15px;
  z-index: 1100; flex-direction: column; gap: 5px;
  background: var(--wn-ink); padding: 10px; cursor: pointer; border: none;
}
.wn-hamburger span { display: block; width: 20px; height: 2px; background: var(--wn-paper); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wn-book-grid { columns: 2; }
  .wn-nav-cards .elementor-container { grid-template-columns: repeat(3, 1fr); }
  .wn-about-layout { grid-template-columns: 1fr !important; }
  .wn-about-col { display: none !important; }
  .wn-footer-inner { grid-template-columns: 1fr 1fr !important; }
  .wn-footer-logo-col { grid-column: 1 / -1 !important; flex-direction: row !important; align-items: center !important; gap: 32px !important; border-left: none !important; }
  .wn-nav-cards:not(.elementor-section) { grid-template-columns: repeat(3, 1fr) !important; }
  .wn-hero-content:not(.elementor-section) { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  .wn-content-layout { grid-template-columns: 1fr !important; }
  .wn-content-body { border-right: none !important; }
  .wn-content-sidebar { padding: 0 48px 48px !important; border-top: 1px solid var(--wn-cream); }
  .wn-page-hero-band-title { padding: 14px 24px !important; }
}

@media (max-width: 760px) {
  :root { --wn-sidebar-w: 0px; }
  .site-content, #primary, .elementor-page-content { margin-left: 0 !important; }
  .wn-sidebar { transform: translateX(-272px); width: 272px; transition: transform .3s; }
  .wn-sidebar.open { transform: translateX(0); }
  .wn-book-grid { columns: 1; padding: 20px 16px; }
  .wn-sec-header { padding: 40px 20px !important; }
  .wn-book-filters { padding: 16px 20px !important; }
  .wn-essays-list { padding: 0 20px 48px !important; }
  .wn-press-grid { padding: 24px 20px 48px !important; }
  .wn-hero-content { padding: 36px 20px !important; }
  .wn-hero-image-label { padding: 16px 20px !important; }
  .wn-content-body { padding: 40px 20px !important; }
  .wn-content-sidebar { padding: 0 20px 40px !important; }
  .wn-footer-inner { grid-template-columns: 1fr !important; }
  .wn-footer-logo-col { grid-column: auto !important; flex-direction: column !important; }
  .wn-nav-cards:not(.elementor-section) { grid-template-columns: 1fr 1fr !important; }
  .wn-footer-col + .wn-footer-col { border-left: none !important; border-top: 1px solid rgba(255,255,255,.07) !important; }
  .wn-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .wn-hamburger { display: flex !important; }
}

/* ============================================================
   ELEMENTOR GLOBAL COLOUR SLOTS
   These match the labels in Elementor > Site Settings > Global Colors
   ============================================================ */
.e-global__color--primary   { color: var(--wn-accent) !important; }
.e-global__color--secondary { color: var(--wn-gold)   !important; }
.e-global__color--text      { color: var(--wn-ink)    !important; }
.e-global__color--accent    { color: var(--wn-rust)   !important; }
