/* =============================================
   WORNISTA — Premium Editorial Stylesheet v6
   ============================================= */

/* === DESIGN TOKENS === */
:root {
  --color-bg:          #0a0a0a;
  --color-bg-rgb:      10, 10, 10;
  --color-text:        #edeae5;
  --color-muted:       #5c5956;
  --color-border:      #222120;
  --color-accent:      #c9a96e;
  --color-accent-soft: #e2c48a;
  --color-surface:     #111110;
  --font-sans:         'Inter', sans-serif;
  --font-serif:        'Playfair Display', serif;
  --max-width:         1800px;
}
:root[data-theme="light"] {
  --color-bg:          #f6f4f0;
  --color-bg-rgb:      246, 244, 240;
  --color-text:        #181614;
  --color-muted:       #8a8178;
  --color-border:      #e0d9d0;
  --color-accent:      #a86c30;
  --color-accent-soft: #7a4c1e;
  --color-surface:     #ffffff;
}

/* accent-bar removed per user request */

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }

/* === IMAGE CONTAINERS === */
/* Hero editorial images — fixed frame, object-fit cover */
.img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  background: #0e0c0a;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article card images — fixed 3:2 frame, full image, no white background */
.img-placeholder {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--color-surface);
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .11em;
  padding: 10px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, opacity .18s;
  white-space: nowrap;
}
.btn-subscribe {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 10.5px;
}
.btn-subscribe:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
:root[data-theme="light"] .btn-subscribe { border-color: rgba(0,0,0,.2); }
.btn-dark { background: var(--color-accent); color: #000; border-color: var(--color-accent); }
.btn-dark:hover { background: var(--color-accent-soft); border-color: var(--color-accent-soft); }

/* === ICON BUTTONS === */
.icon-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-muted);
  padding: 6px;
  line-height: 1;
  transition: color .15s;
}
.icon-btn:hover { color: var(--color-text); }

/* === TAGS === */
.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-text);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  padding: 3px 9px;
  border-radius: 20px;
  transition: border-color .15s, color .15s;
}
:root[data-theme="light"] .tag {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.1);
}
.tag-sm { font-size: 8.5px; padding: 2px 7px; }


/* === TYPE HELPERS === */
.card-meta { font-size: 11px; color: var(--color-muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.card-meta .dot { opacity: .3; }
.excerpt { font-size: 13.5px; color: var(--color-muted); line-height: 1.65; margin: 7px 0 0; }
.card-link { display: block; color: inherit; }

/* === HEADER === */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(var(--color-bg-rgb), .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}

/* Row 1: ☰  |  LOGO centred  |  actions
   Explicit column assignment keeps logo centred even when hamburger is hidden */
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 0;
}
.header-top .menu-toggle { grid-column: 1; }
.header-top .logo        { grid-column: 2; }
.header-top .header-actions { grid-column: 3; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* Row 2: nav links spread evenly across the full header width */
.header-nav-bar { overflow: hidden; }
.header-nav-wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}
.main-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}
.main-nav a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.main-nav a:hover { color: var(--color-text); }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  text-decoration: none;
}
.logo-name {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: .14em;
  line-height: 1;
  color: var(--color-text);
}
.logo-name em { font-style: normal; color: var(--color-accent); }

.logo-tagline {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .38em;
  color: var(--color-muted);
  line-height: 1;
  /* thin gold rule either side of tagline */
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-tagline::before,
.logo-tagline::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  opacity: .5;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--color-text); }

/* ============================================================
   HERO — 3-column editorial layout
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 312px 1fr 312px;
  column-gap: 32px;
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ---- Left: 2 stacked cards ---- */
.hero-left {
  display: flex;
  flex-direction: column;
}
.hero-side-card {
  display: block;
  padding: 0;
  flex: 1;
  transition: background .15s;
}
.hero-side-card:hover { background: rgba(255,255,255,.025); }
.hero-side-card + .hero-side-card { border-top: 1px solid var(--color-border); }

.hero-side-img {
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}
.hero-side-img img { width: 100%; height: auto; display: block; }

.hero-side-card .tag { display: block; margin-bottom: 9px; }
.hero-side-card h3 {
  padding: 14px 18px 18px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.28;
  color: var(--color-text);
}


/* ---- Center: featured article with IMAGE OVERLAY ---- */
.hero-center {
  display: flex;
  flex-direction: column;
}
.hero-main { display: flex; flex-direction: column; height: 100%; }

/* Centre hero image — full image, no background, no cropping */
.hero-main-img {
  overflow: hidden;
  display: block;
}
.hero-main-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text block below the image */
.hero-main-body {
  padding: 26px 32px 36px;
  text-align: center;
}
.hero-main-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--color-accent);
  border: 1px solid rgba(201,169,110,.4);
  padding: 4px 11px;
  border-radius: 1px;
  margin-bottom: 14px;
}
.hero-main-body .tag { display: block; margin-bottom: 12px; }
.hero-main-body h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.025em;
  transition: color .18s;
}

.hero-main-body .excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 480px;
}
.hero-main-body .card-meta { justify-content: center; }

/* ---- Right: same structure as left column ---- */
.hero-right {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section { padding: 32px 0; border-bottom: 1px solid var(--color-border); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-heading h2 em { font-style: normal; color: var(--color-accent); }
.see-all {
  position: absolute;
  right: 0;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
  transition: color .15s;
}
.see-all:hover { color: var(--color-accent); }

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.article-card { display: block; }
.article-card .img-placeholder { margin-bottom: 16px; }
.article-card .tag { display: block; margin-bottom: 8px; }
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  transition: color .15s;
}

.article-card .excerpt { font-size: 13px; margin-top: 8px; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: var(--color-surface);
  padding: 84px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.stats-copy h2 { font-family: var(--font-serif); font-size: 34px; font-weight: 800; margin: 0 0 24px; letter-spacing: -.02em; line-height: 1.15; }
.stats-copy ul { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.stats-copy li { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.stats-copy li em { font-style: normal; color: var(--color-muted); font-weight: 400; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--color-border); }
.stat { display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat:nth-child(even) { border-right: none; }
.stat:nth-child(n+3) { border-bottom: none; }
.stat-num { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: var(--color-accent); }
.stat-label { font-weight: 700; font-size: 13px; margin-top: 6px; }
.stat-desc { font-size: 12px; color: var(--color-muted); margin-top: 5px; line-height: 1.5; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 84px 28px;
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter-eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}
.newsletter-section h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.newsletter-section p { color: var(--color-muted); margin: 0 0 32px; font-size: 15px; line-height: 1.7; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 240px; padding: 13px 18px;
  border-radius: 2px; border: 1px solid var(--color-border);
  background: rgba(255,255,255,.04); color: var(--color-text);
  font-family: var(--font-sans); font-size: 14px; transition: border-color .15s;
}
.newsletter-form input:focus { outline: none; border-color: var(--color-accent); }
.newsletter-form input::placeholder { color: var(--color-muted); }
.newsletter-form .btn-dark { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.newsletter-form .btn-dark:hover { background: var(--color-accent); border-color: var(--color-accent); color: #000; }
.form-msg { min-height: 20px; margin-top: 14px; font-size: 13px; color: var(--color-accent-soft); }

/* ============================================================
   FOOTER — with large watermark W
   ============================================================ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
/* Giant ghosted W watermark */
.site-footer::after {
  content: 'W';
  font-family: var(--font-serif);
  font-size: 420px;
  font-weight: 800;
  color: rgba(255,255,255,.016);
  position: absolute;
  right: -30px;
  bottom: -90px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
:root[data-theme="light"] .site-footer::after { color: rgba(0,0,0,.03); }

.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; padding: 60px 28px 40px; position: relative; z-index: 1; }
.footer-brand .logo-name { font-size: 22px; letter-spacing: .1em; }
.footer-brand .logo-tagline { font-size: 7px; gap: 8px; }
.footer-brand .logo-tagline::before,
.footer-brand .logo-tagline::after { width: 18px; }
.footer-brand p { color: var(--color-muted); font-size: 13px; max-width: 280px; margin-top: 14px; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 4px; color: var(--color-text); }
.footer-col a { font-size: 13px; color: var(--color-muted); transition: color .15s; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 28px;
  font-size: 12px;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { max-width: 740px; padding-top: 60px; padding-bottom: 80px; }
.article-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  margin: 14px 0 22px;
  letter-spacing: -.025em;
}
.article-byline { margin-bottom: 30px; font-size: 13px; color: var(--color-muted); }
.article-hero-img { margin-bottom: 40px; overflow: hidden; }
.article-hero-img img { width: 100%; }
.article-body p { font-size: 17px; line-height: 1.82; color: var(--color-text); margin: 0 0 24px; }
.article-body h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.25; margin: 44px 0 16px; letter-spacing: -.015em; }
.article-body figure { margin: 36px 0; }
.article-body figure img, .article-body figure video { width: 100%; display: block; }
.article-body figcaption { font-size: 12px; color: var(--color-muted); margin-top: 10px; text-align: center; }
.article-cta { display: inline-block; margin: 8px 0 24px; }
.article-back { display: inline-block; margin-top: 22px; color: var(--color-muted); font-size: 13px; transition: color .15s; }
.article-back:hover { color: var(--color-text); }
.article-missing { padding: 80px 0; text-align: center; }
.article-missing h1 { font-family: var(--font-serif); margin-bottom: 14px; }
.article-missing .btn { display: inline-block; margin-top: 18px; }
.static-page .article-body h2 { font-family: var(--font-serif); font-size: 22px; margin: 36px 0 14px; }
.static-page .article-body ul { margin: 0 0 24px; padding-left: 22px; }
.static-page .article-body li { font-size: 16px; line-height: 1.78; margin-bottom: 10px; }
.static-page .article-body a { color: var(--color-accent); text-decoration: underline; }
.static-page .article-body a:hover { color: var(--color-accent-soft); }
.static-page .article-byline { color: var(--color-muted); margin-bottom: 10px; }

/* ============================================================
   SCROLL REVEAL ANIMATION (activated by JS adding .js-ready)
   ============================================================ */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
body.js-ready .reveal.is-visible { opacity: 1; transform: none; }
body.js-ready .reveal[data-delay="2"] { transition-delay: .08s; }
body.js-ready .reveal[data-delay="3"] { transition-delay: .16s; }
body.js-ready .reveal[data-delay="4"] { transition-delay: .24s; }
body.js-ready .reveal[data-delay="5"] { transition-delay: .32s; }
body.js-ready .reveal[data-delay="6"] { transition-delay: .40s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 220px 1fr; }
  .hero-right { display: none; }
  .hero-center { border-right: none; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 768px) {
  .logo-name { font-size: 34px; }
  .header-top { padding: 16px 0; }
  .header-nav-wrap { display: none; }
  .header-nav-bar.open .header-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(var(--color-bg-rgb), .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 48px 20px;
    z-index: 200;
  }
  .header-nav-bar.open .main-nav { flex-direction: column; gap: 0; width: 100%; }
  .header-nav-bar.open .main-nav a { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--color-border); width: 100%; }
  .header-nav-bar.open .main-nav a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
  .site-header { position: relative; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--color-border); flex-direction: row; }
  .hero-side-card + .hero-side-card { border-top: none; border-left: 1px solid var(--color-border); }
  .hero-center { border-right: none; }
  .hero-main-img { min-height: 280px; }
  .hero-main-overlay { padding: 80px 24px 28px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stats-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .newsletter-section h2 { font-size: 28px; }
}
@media (max-width: 500px) {
  .hero-left { flex-direction: column; }
  .hero-side-card + .hero-side-card { border-left: none; border-top: 1px solid var(--color-border); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
