/*
Theme Name: Ramon Stoppelenburg
Theme URI: https://www.ramonstoppelenburg.nl
Author: Ramon Stoppelenburg
Description: Standalone personal brand theme — writer, translator, adventurer. No parent theme required.
Version: 1.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ramon
Tags: custom-header, custom-logo, featured-images, full-width-template, translation-ready, blog
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --burnt-orange:  #C8410A;
  --golden:        #E8850A;
  --cream:         #FBF6EE;
  --ink:           #1A1208;
  --warm-mid:      #6B4C2A;
  --light-rule:    #EAE0D0;
  --nav-bg:        #1A1208;
  --white:         #FFFFFF;

  --serif-display: 'Playfair Display', Georgia, serif;
  --serif-body:    'Lora', Georgia, serif;
  --sans:          'DM Sans', sans-serif;

  --max-width:     1160px;
  --content-width: 740px;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 21px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burnt-orange); text-decoration: none; }
a:hover { color: var(--golden); }
em, i, cite { font-family: var(--serif-body); font-style: italic; }
strong, b { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif-display);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.5em; }
li { margin-bottom: 0.4em; }

blockquote {
  border-left: 3px solid var(--burnt-orange);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--warm-mid);
}

hr {
  border: none;
  height: 1px;
  background: var(--light-rule);
  margin: 3em 0;
}

/* ================================================================
   SKIP LINK (accessibility)
   ================================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--burnt-orange);
  color: var(--white);
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 13px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-nav__logo img {
  height: 46px;
  width: auto;
}

.site-nav__menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}

.site-nav__menu a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251,246,238,0.82);
  padding: 8px 13px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
  color: var(--golden);
  background: rgba(232,133,10,0.12);
}

/* Dropdown */
.site-nav__menu .menu-item-has-children { position: relative; }

.site-nav__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg);
  min-width: 260px;
  padding: 8px 0;
  border-top: 2px solid var(--burnt-orange);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  list-style: none;
  z-index: 100;
}

.site-nav__menu .menu-item-has-children:hover .sub-menu,
.site-nav__menu .menu-item-has-children:focus-within .sub-menu { display: block; }

.site-nav__menu .sub-menu a {
  border-radius: 0;
  padding: 12px 24px;
  font-size: 13px;
  white-space: nowrap;
}

/* Hamburger */
.site-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--golden);
  color: var(--golden);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile drawer */
.site-nav__drawer {
  display: none;
  flex-direction: column;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0 20px;
}

.site-nav__drawer.is-open { display: flex; }

.site-nav__drawer a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251,246,238,0.8);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}

.site-nav__drawer a:hover { color: var(--golden); }

@media (max-width: 780px) {
  .site-nav__menu { display: none; }
  .site-nav__toggle { display: block; }
}

/* ================================================================
   HERO (front page only)
   ================================================================ */
.site-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  animation: kenburns 30s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0%   { transform: scale(1.0)  translate(0%,    0%);   }
  33%  { transform: scale(1.06) translate(-1%,   0.5%); }
  66%  { transform: scale(1.04) translate(1%,   -0.5%); }
  100% { transform: scale(1.08) translate(-0.5%, 1%);   }
}

.site-hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(26,18,8,0.38) 100%);
}

.site-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: fade-up 1.2s ease both;
}

.site-hero__logo {
  display: block;
  width: min(420px, 72vw) !important;
  max-width: 420px !important;
  height: auto !important;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.65));
  margin: 0 auto 28px;
}

.site-hero__tagline {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(20,12,4,0.82);
  padding: 10px 28px;
  border-radius: 4px;
  white-space: nowrap;
  animation: fade-up 1.2s 0.35s ease both;
}

.site-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fade-up 1s 1.1s ease both;
}

.site-hero__scroll span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251,246,238,0.5);
}

.site-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(232,133,10,0.85), transparent);
  animation: line-pulse 2.2s 2s infinite;
}

/* ================================================================
   PILLARS
   ================================================================ */
.site-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
}

.site-pillar {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  height: clamp(320px, 44vh, 500px);
}

.site-pillar__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(0.65);
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94), filter 0.5s;
}

.site-pillar:hover .site-pillar__bg {
  transform: scale(1.06);
  filter: brightness(0.32) saturate(0.5);
}

.site-pillar__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(26,18,8,0.88) 100%);
}

.site-pillar__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.site-pillar__num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 10px;
}

.site-pillar__title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 10px;
}

.site-pillar__sub {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(251,246,238,0.72);
  line-height: 1.6;
  margin-bottom: 16px;
}

.site-pillar__link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--golden);
}

.site-pillar__link::after { content: ' →'; }

/* ================================================================
   MARQUEE
   ================================================================ */
.site-marquee {
  background: var(--burnt-orange);
  overflow: hidden;
  padding: 13px 0;
}

.site-marquee__track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.site-marquee__inner {
  display: flex;
  white-space: nowrap;
}

.site-marquee__inner span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 0 36px;
}

.site-marquee__inner span.dot {
  color: rgba(255,255,255,0.4);
  padding: 0;
  font-size: 7px;
}

/* ================================================================
   HOMEPAGE CARDS (latest posts)
   ================================================================ */
.site-posts-section {
  background: var(--ink);
  padding: 80px 24px;
}

.site-posts-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-posts-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 18px;
  margin-bottom: 48px;
}

.site-posts-section__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--burnt-orange);
}

.site-posts-section__all {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251,246,238,0.4);
  transition: color 0.2s;
}

.site-posts-section__all:hover { color: var(--golden); }

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.site-card {
  display: block;
  text-decoration: none;
  background: #22180A;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.site-card:hover { background: #2a1e0c; }

.site-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--burnt-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.site-card:hover::before { transform: scaleX(1); }

.site-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1A1208;
}

.site-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94);
  filter: brightness(0.92) saturate(0.9);
}

.site-card:hover .site-card__img img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.site-card__body { padding: 24px 28px 32px; }

.site-card__date {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 10px;
}

.site-card__title {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.site-card:hover .site-card__title { color: var(--golden); }

.site-card__excerpt {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(251,246,238,0.6);
  line-height: 1.7;
  margin-bottom: 18px;
}

.site-card__read {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burnt-orange);
}

/* ================================================================
   ABOUT STRIP (homepage)
   ================================================================ */
.site-about {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 96px 24px;
}

.site-about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.site-about__label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 20px;
}

.site-about__headline {
  font-family: var(--serif-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.site-about__headline em {
  color: var(--golden);
  font-style: normal;
  font-family: var(--serif-display);
}

.site-about__body {
  font-family: var(--serif-body);
  font-size: 20px;
  color: rgba(251,246,238,0.72);
  line-height: 1.85;
  margin-bottom: 36px;
}

.site-about__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--golden);
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.site-about__cta:hover {
  background: var(--burnt-orange);
  color: var(--white);
  transform: translateY(-2px);
}

.site-about__cta::after { content: '→'; }

.site-about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.site-stat {
  background: rgba(255,255,255,0.04);
  padding: 32px 24px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.site-stat:hover { background: rgba(232,133,10,0.1); }

.site-stat__num {
  display: block;
  font-family: var(--serif-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--golden);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.site-stat__label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251,246,238,0.4);
}

/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
  background: #0E0903;
  padding: 60px 24px 44px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer__logo {
  display: block;
  height: 64px;
  width: auto;
  margin: 0 auto 32px;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.site-footer__links a {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251,246,238,0.38);
  transition: color 0.2s;
}

.site-footer__links a:hover { color: var(--golden); }

.site-footer__copy {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(251,246,238,0.2);
  letter-spacing: 0.06em;
}

/* ================================================================
   BLOG INDEX (archive / home)
   ================================================================ */
.blog-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.blog-main {}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Blog index card */
.blog-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--light-rule);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(26,18,8,0.12);
  transform: translateY(-3px);
}

.blog-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--light-rule);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
}

.blog-card:hover .blog-card__img img { transform: scale(1.04); }

.blog-card__body { padding: 20px 22px 26px; }

.blog-card__date {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: var(--serif-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.blog-card:hover .blog-card__title { color: var(--burnt-orange); }

.blog-card__excerpt {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--warm-mid);
  line-height: 1.65;
}

/* Pagination */
.blog-pagination {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--light-rule);
  color: var(--ink);
  transition: all 0.2s;
}

.blog-pagination a:hover {
  background: var(--burnt-orange);
  border-color: var(--burnt-orange);
  color: var(--white);
}

.blog-pagination .current {
  background: var(--burnt-orange);
  border-color: var(--burnt-orange);
  color: var(--white);
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.blog-sidebar { position: sticky; top: 100px; }

.widget { margin-bottom: 40px; }

.widget-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--burnt-orange);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.widget ul { list-style: none; padding: 0; margin: 0; }

.widget ul li {
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--light-rule);
  color: var(--warm-mid);
}

.widget ul li a { color: var(--warm-mid); transition: color 0.2s; }
.widget ul li a:hover { color: var(--burnt-orange); }

.widget_text p,
.widget p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--warm-mid);
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.single-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

.single-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--light-rule);
  margin-bottom: 52px;
}

.single-header__meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 16px;
}

.single-header__title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Article body */
.entry-content {
  font-family: var(--serif-body);
  font-size: 22px;
  line-height: 1.9;
  color: var(--ink);
}

.entry-content p { margin-bottom: 1.6em; }

.entry-content h2 {
  font-family: var(--serif-display);
  font-size: 28px;
  margin: 2em 0 0.6em;
  color: var(--ink);
}

.entry-content h3 {
  font-family: var(--serif-display);
  font-size: 22px;
  margin: 1.8em 0 0.5em;
}

.entry-content a { color: var(--burnt-orange); }
.entry-content a:hover { color: var(--golden); }

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--burnt-orange);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--warm-mid);
  font-size: 19px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.6em;
}

/* Related posts */
.related-posts {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--light-rule);
}

.related-posts__title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 24px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-post {
  display: block;
  text-decoration: none;
}

.related-post__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--light-rule);
  margin-bottom: 12px;
}

.related-post__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-post:hover .related-post__img img { transform: scale(1.04); }

.related-post__date {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 6px;
}

.related-post__title {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.2s;
}

.related-post:hover .related-post__title { color: var(--burnt-orange); }

/* ================================================================
   PAGE (static pages)
   ================================================================ */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
}

.page-header {
  padding-top: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--light-rule);
  margin-bottom: 52px;
}

.page-title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

/* ================================================================
   404
   ================================================================ */
.error-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.error-wrap h1 {
  font-family: var(--serif-display);
  font-size: 96px;
  color: var(--burnt-orange);
  line-height: 1;
  margin-bottom: 16px;
}

.error-wrap p {
  font-family: var(--sans);
  color: var(--warm-mid);
  margin-bottom: 32px;
}

.error-wrap a {
  display: inline-block;
  background: var(--burnt-orange);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background 0.2s;
}

.error-wrap a:hover { background: var(--golden); color: var(--ink); }

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-area {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--light-rule);
}

.comments-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 32px;
}

.comment-list { list-style: none; padding: 0; }

.comment { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--light-rule); }

.comment-author img { border-radius: 50%; margin-bottom: 8px; }

.comment-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--warm-mid);
  margin-bottom: 8px;
}

.comment-content { font-family: var(--serif-body); font-size: 16px; line-height: 1.75; }

/* Comment form */
.comment-form label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-mid);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 15px;
  border: 1px solid var(--light-rule);
  background: var(--white);
  padding: 10px 14px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--burnt-orange); }

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .submit,
input[type="submit"] {
  background: var(--burnt-orange);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.comment-form .submit:hover,
input[type="submit"]:hover { background: var(--golden); }

/* ================================================================
   SEARCH
   ================================================================ */
.search-form {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}

.search-field {
  flex: 1;
  font-family: var(--serif-body);
  font-size: 15px;
  padding: 10px 16px;
  border: 1px solid var(--light-rule);
  border-right: none;
  outline: none;
  background: var(--white);
}

.search-field:focus { border-color: var(--burnt-orange); }

.search-submit {
  background: var(--burnt-orange);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-submit:hover { background: var(--golden); }

/* ================================================================
   UTILITIES
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes line-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .blog-wrap,
  .single-wrap,
  .page-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .blog-sidebar { position: static; }
  .site-pillars { grid-template-columns: 1fr; }
  .site-pillar { height: clamp(260px, 50vw, 380px); }
  .site-about__inner { grid-template-columns: 1fr; gap: 48px; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .site-cards { grid-template-columns: 1fr; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .site-about__stats { grid-template-columns: repeat(2, 1fr); }
  .site-posts-section,
  .site-about { padding: 60px 20px; }
  .single-header__title { font-size: 28px; }
}

/* ================================================================
   BLOG INDEX LAYOUT (replaces cluttered 2-col+sidebar)
   ================================================================ */
.blog-index {
  background: var(--cream);
  padding: 64px 24px 80px;
}

.blog-index__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-index__header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-rule);
}

.blog-index__title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  font-weight: 700;
}

.blog-index__desc {
  font-family: var(--sans);
  color: var(--warm-mid);
  margin-top: 10px;
}

.blog-empty {
  font-family: var(--sans);
  color: var(--warm-mid);
  text-align: center;
  padding: 60px 0;
}

/* Single article */
.single-article {
  background: var(--cream);
}

.single-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  /* Single column — no sidebar */
  display: block;
}

/* ================================================================
   WORDPRESS CORE IMAGE ALIGNMENT CLASSES
   ================================================================ */
.aligncenter,
img.aligncenter,
figure.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

.alignleft,
img.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.alignright,
img.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}



.alignnone {
  display: block;
}

/* Clear floats after floated images */
.entry-content::after {
  content: '';
  display: table;
  clear: both;
}

/* WordPress caption */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

.wp-caption img {
  display: block;
  width: 100%;
}

.wp-caption-text {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--warm-mid);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Gutenberg block alignment */
.wp-block-image.aligncenter,
.wp-block-image.aligncenter figure {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wp-block-image.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.wp-block-image.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

/* ================================================================
   CONTACT FORM 7
   ================================================================ */

/* Dark card wrapper around the whole form */
.wpcf7 {
  background: var(--ink);
  padding: 48px;
  margin-top: 40px;
  border-top: 3px solid var(--burnt-orange);
}

/* Field wrapper */
.cf7-field {
  margin-bottom: 28px;
}

/* Label */
.cf7-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 8px;
}

.cf7-required {
  color: var(--burnt-orange);
  margin-left: 3px;
}

/* Inputs and textarea */
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="url"],
.cf7-field input[type="tel"],
.cf7-field textarea,
.cf7-field .wpcf7-quiz {
  display: block;
  width: 100%;
  font-family: var(--serif-body);
  font-size: 17px;
  color: var(--cream);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  box-shadow: none;
}

.cf7-field input[type="text"]:focus,
.cf7-field input[type="email"]:focus,
.cf7-field input[type="url"]:focus,
.cf7-field input[type="tel"]:focus,
.cf7-field textarea:focus,
.cf7-field .wpcf7-quiz:focus {
  border-color: var(--burnt-orange);
  background: rgba(255,255,255,0.1);
}

.cf7-field input::placeholder,
.cf7-field textarea::placeholder {
  color: rgba(251,246,238,0.25);
  font-style: italic;
}

.cf7-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.75;
}

/* Quiz label */
.cf7-field--quiz .wpcf7-quiz-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--golden);
  margin-bottom: 8px;
}

/* Submit */
.cf7-submit {
  margin-top: 8px;
}

.cf7-submit input[type="submit"],
.cf7-submit .wpcf7-submit {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--burnt-orange);
  border: none;
  padding: 18px 48px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  -webkit-appearance: none;
}

.cf7-submit input[type="submit"]:hover,
.cf7-submit .wpcf7-submit:hover {
  background: var(--golden);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Validation */
.wpcf7-not-valid-tip {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--golden);
  margin-top: 6px;
  display: block;
  letter-spacing: 0.04em;
}

.wpcf7-not-valid input,
.wpcf7-not-valid textarea {
  border-color: var(--burnt-orange) !important;
}

/* Response message */
.wpcf7-response-output {
  font-family: var(--sans);
  font-size: 14px;
  border: none !important;
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 2px;
  color: var(--golden) !important;
  background: rgba(232,133,10,0.12) !important;
}