/*
Theme Name: Fern & Palm
Theme URI: https://fernandpalm.com
Author: Simple English Daily / Pasan
Description: A warm, editorial travel blog theme with a refined magazine aesthetic. Features Playfair Display typography, earthy greens and gold accents, hero banners, pull quotes, info boxes, and a beautiful article layout perfect for travel writing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fern-palm
Tags: travel, blog, magazine, custom-colors, custom-header, featured-images, full-width-template, post-formats, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ink:        #1a1410;
  --muted:      #6b5e52;
  --accent:     #2d6a4f;
  --accent-mid: #3a7a55;
  --accent-dark:#1a3328;
  --gold:       #c9a84c;
  --gold-light: #e8d49a;
  --warm-bg:    #faf7f2;
  --paper:      #f5f0e8;
  --rule:       #d9cfc2;
  --card-bg:    #e8f5ee;
  --card-border:#b2d8c2;
  --white:      #ffffff;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

  --max-content: 740px;
  --max-wide:    1140px;

  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--warm-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-dark); }

ul, ol { padding-left: 1.5em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);  font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 400; font-style: italic; }

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

blockquote {
  border-left: 4px solid var(--gold);
  margin: 2.5em 0;
  padding: 16px 28px;
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.55;
}

blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 10px;
  font-family: var(--font-body);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.content-width {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

/* ============================================================
   SITE HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--accent-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-title-group { display: flex; flex-direction: column; line-height: 1; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.site-tagline {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 3px;
  font-family: var(--font-body);
}

/* Main Navigation */
.main-navigation { flex: 1; display: flex; justify-content: flex-end; }

.main-navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  align-items: center;
}

.main-navigation ul li a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold);
}

/* Hamburger for mobile */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ============================================================
   HERO BANNER (used on posts with featured images)
   ============================================================ */
.hero-banner {
  background: linear-gradient(160deg, var(--accent-dark) 0%, var(--accent) 45%, var(--accent-mid) 100%);
  color: var(--white);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-banner.has-featured-image {
  padding: 0;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.hero-banner.has-featured-image .hero-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner.has-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,51,40,0.9) 0%, rgba(26,51,40,0.4) 60%, rgba(26,51,40,0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-banner h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 300;
}

/* Meta bar (track info strip) */
.post-meta-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 300;
}

.post-meta-bar span { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   STANDARD POST HEADER (no hero)
   ============================================================ */
.entry-header-standard {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 48px 24px 36px;
  text-align: center;
}

.entry-categories {
  margin-bottom: 14px;
}

.entry-categories a {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 3px;
  transition: background 0.2s;
}

.entry-categories a:hover { background: var(--accent-dark); }

.entry-header-standard h1 {
  max-width: 780px;
  margin: 0 auto 16px;
}

.entry-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  letter-spacing: 0.06em;
}

.entry-meta a { color: var(--muted); }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.entry-content {
  max-width: var(--max-content);
  margin: 56px auto;
  padding: 0 24px;
}

/* Drop cap on first paragraph */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 6px 10px 0 0;
  color: var(--accent);
}

/* Article headings */
.entry-content h2 {
  font-size: 1.65rem;
  margin: 2.4em 0 0.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule);
}

.entry-content h3 { margin: 1.8em 0 0.5em; }

/* Divider ornament */
.wp-block-separator,
hr {
  border: none;
  text-align: center;
  margin: 2.5em 0;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  overflow: visible;
}

.wp-block-separator::before,
hr::before {
  content: '✦ ✦ ✦';
  color: var(--gold);
}

/* Info box (use WP Group block with class) */
.info-box,
.wp-block-group.info-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 2.5em 0;
}

.info-box h3,
.info-box .info-box-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
  border: none;
  padding: 0;
}

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

.info-box ul li {
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  gap: 10px;
  color: #2a4a38;
  line-height: 1.5;
}

.info-box ul li:last-child { border-bottom: none; }

.info-box ul li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Pull quote (WP pullquote block) */
.wp-block-pullquote,
.pull-quote {
  border: none;
  border-left: 4px solid var(--gold);
  margin: 2.5em 0;
  padding: 16px 28px;
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
}

.wp-block-pullquote p,
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  margin: 0;
  line-height: 1.55;
}

.wp-block-pullquote cite,
.pull-quote cite {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-body);
}

/* Images in content */
.entry-content figure {
  margin: 2em 0;
}

.entry-content figure img {
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: var(--shadow-md);
}

.entry-content figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}

/* Wide images that break out */
.entry-content .alignwide {
  margin-left: calc(50% - 50vw + 24px);
  margin-right: calc(50% - 50vw + 24px);
  max-width: calc(100vw - 48px);
}

/* Author note / footer note */
.author-note {
  border-top: 1px solid var(--rule);
  margin-top: 3em;
  padding-top: 1.5em;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   POST FOOTER / TAGS
   ============================================================ */
.entry-footer {
  max-width: var(--max-content);
  margin: 0 auto 48px;
  padding: 24px 24px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tags-links a {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.tags-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--card-bg);
}

/* ============================================================
   HOMEPAGE / ARCHIVE LAYOUT
   ============================================================ */
.posts-grid {
  max-width: var(--max-wide);
  margin: 56px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Featured post — spans full width */
.posts-grid .post-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__category {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--ink);
}

.post-card__title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  display: flex;
  gap: 12px;
}

/* Featured card overrides */
.post-card.is-featured .post-card__image {
  aspect-ratio: auto;
  min-height: 360px;
}

.post-card.is-featured .post-card__body {
  padding: 40px;
  background: var(--accent-dark);
  color: var(--white);
  justify-content: center;
}

.post-card.is-featured .post-card__category { color: var(--gold); }
.post-card.is-featured .post-card__title { font-size: 1.8rem; }
.post-card.is-featured .post-card__title a { color: var(--white); }
.post-card.is-featured .post-card__title a:hover { color: var(--gold); }
.post-card.is-featured .post-card__excerpt { color: rgba(255,255,255,0.72); -webkit-line-clamp: 5; }
.post-card.is-featured .post-card__meta { color: rgba(255,255,255,0.5); }

/* Read more link */
.read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.read-more:hover { color: var(--gold-light); }
.read-more::after { content: ' →'; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  max-width: var(--max-wide);
  margin: 0 auto 64px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.2s;
  border: 1px solid var(--rule);
  color: var(--muted);
}

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

.pagination .current {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-content-area {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.site-content-area.full-width {
  grid-template-columns: 1fr;
}

.widget-area { min-width: 0; }

.widget {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ink); text-decoration: none; }
.widget ul li a:hover { color: var(--accent); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: var(--max-content);
  margin: 0 auto 64px;
  padding: 0 24px;
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rule);
}

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

.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.comment-author .fn { font-weight: 700; font-size: 0.95rem; }
.comment-metadata { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.comment-content { font-size: 0.9rem; }

.comment-respond { margin-top: 48px; }
.comment-reply-title { font-size: 1.2rem; margin-bottom: 24px; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-form input[type="submit"] {
  width: auto;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 0.2s;
}

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

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.75);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .site-title { color: var(--white); font-size: 1.5rem; }
.footer-brand .site-tagline { color: var(--gold-light); margin-top: 6px; display: block; }

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-style: normal;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  max-width: var(--max-wide);
  margin: 0 auto;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.search-form input[type="search"]:focus { outline: none; }

.search-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.search-form button:hover { background: var(--accent-dark); }

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */

/* Full-width page */
.page-template-full-width .entry-content { max-width: 100%; padding: 0; }

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.about-intro img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

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

.error-404 .error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.2;
}

.error-404 h2 { margin: 16px 0 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.is-featured { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }

  .site-header .container { height: 60px; }

  .main-navigation {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--accent-dark);
    padding: 16px;
    border-bottom: 2px solid var(--gold);
    z-index: 999;
  }

  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 4px; }
  .main-navigation ul li a { display: block; }
  .menu-toggle { display: block; }

  .hero-banner { padding: 56px 20px 44px; }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px auto;
  }

  .post-card.is-featured {
    grid-template-columns: 1fr;
  }
  .post-card.is-featured .post-card__image { min-height: 240px; }
  .post-card.is-featured .post-card__body { padding: 28px; }
  .post-card.is-featured .post-card__title { font-size: 1.4rem; }

  .site-content-area { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .entry-content { margin: 40px auto; }

  .about-intro { grid-template-columns: 1fr; }

  .post-meta-bar { gap: 14px; font-size: 0.7rem; }

  .info-box { padding: 20px; }

  blockquote, .wp-block-pullquote { padding: 14px 20px; font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .entry-content > p:first-of-type::first-letter { font-size: 3.8rem; }
  h1 { font-size: 1.8rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .widget-area, .comments-area { display: none; }
  .entry-content { max-width: 100%; }
  body { font-size: 12pt; }
}
