/*
Theme Name:  Photonist
Theme URI:   https://photoni.st
Author:      Cédric
Description: A vintage newspaper editorial theme for personal photography — monochrome, found film, and street.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photonist
Tags:        photography, blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ═══════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════ */
:root {
  --paper:       #f5f0e8;
  --paper-dark:  #ede6d6;
  --paper-mid:   #f0ead8;
  --ink:         #1a1208;
  --ink-light:   #3d2f1a;
  --ink-faded:   #6b5a3e;
  --rule:        #8b7355;
  --accent:      #8b2500;
  --col-gap:     18px;
  --content-max: 1080px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #cdc0a5;
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed; 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   NEWSPAPER WRAPPER
═══════════════════════════════════════════════════════ */
.photonist-wrap {
  max-width: var(--content-max);
  margin: 20px auto;
  background: var(--paper);
  box-shadow: 0 6px 50px rgba(0,0,0,.42), inset 0 0 100px rgba(0,0,0,.03);
  border: 1px solid #c4b89a;
}

/* ═══════════════════════════════════════════════════════
   MASTHEAD
═══════════════════════════════════════════════════════ */
.site-masthead {
  padding: 0 28px;
  border-bottom: 4px double var(--ink);
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 5px;
  border-bottom: 1px solid var(--rule);
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-faded);
}

.masthead-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 12px;
}

.masthead-rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--rule), var(--ink), var(--rule), transparent);
}

.site-logo img,
.custom-logo {
  height: 68px;
  width: auto;
  filter: sepia(30%) brightness(.6);
}

.site-title-text {
  font-family: 'UnifrakturMaguntia', 'Palatino Linotype', serif;
  font-size: 52px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1;
}

.masthead-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 4px;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}

.masthead-tagline {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-faded);
  flex: 1;
  text-align: center;
}

.masthead-meta {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-faded);
}

/* ═══════════════════════════════════════════════════════
   PRIMARY NAVIGATION
═══════════════════════════════════════════════════════ */
.site-nav {
  background: var(--ink);
  padding: 0 28px;
}

.nav-inner {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.nav-inner li {
  position: relative;
  border-right: 1px solid rgba(255,255,255,.1);
}
.nav-inner li:first-child { border-left: 1px solid rgba(255,255,255,.1); }

.nav-inner li > a,
.nav-inner li > span.menu-parent {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-family: 'Special Elite', monospace;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 9px 15px;
  transition: background .18s;
  white-space: nowrap;
  cursor: pointer;
}

.nav-inner li > a:hover,
.nav-inner li:hover > span.menu-parent,
.nav-inner li.current-menu-item > a,
.nav-inner li.current-menu-ancestor > a {
  background: var(--accent);
  color: var(--paper);
}

/* Dropdown */
.nav-inner li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: var(--ink);
  min-width: 150px;
  z-index: 200;
  border: 1px solid rgba(255,255,255,.1);
  border-top: none;
}
.nav-inner li:hover ul { display: block; }
.nav-inner li ul li { border-right: none; border-left: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner li ul li:last-child { border-bottom: none; }
.nav-inner li ul li a {
  font-size: 10px;
  padding: 8px 14px;
}

/* ═══════════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════════ */
.site-ticker {
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 28px;
  overflow: hidden;
}

.ticker-label {
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--accent);
  padding: 2px 8px;
  white-space: nowrap;
  font-weight: 700;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-text {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 12px;
  white-space: nowrap;
  display: inline-block;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════════════════
   SHARED ATOMS
═══════════════════════════════════════════════════════ */
.content-area { padding: 0 28px 36px; }

.section-label {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  border-top: 2px solid var(--accent);
  padding-top: 5px;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color .18s, border-color .18s;
}
.read-more:hover { color: var(--ink); border-color: var(--ink); }

.ornament {
  text-align: center;
  font-size: 16px;
  color: var(--rule);
  letter-spacing: .3em;
  margin: 8px 0;
}

.sec-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.sec-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
  color: var(--ink);
}
.sec-rule { flex: 1; height: 2px; background: var(--ink); }

/* ═══════════════════════════════════════════════════════
   FRONT PAGE — HERO
═══════════════════════════════════════════════════════ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0 18px;
  border-bottom: 3px double var(--rule);
}

.hero-text .section-label { display: block; }

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-deck {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-light);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.hero-byline {
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--ink-faded);
  text-transform: uppercase;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: sepia(12%) contrast(1.06);
  border: 1px solid var(--rule);
}

.hero-image .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c4b89a, #4a3728);
  border: 1px solid var(--rule);
}

.img-caption {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .07em;
  color: var(--ink-faded);
  margin-top: 5px;
  font-style: italic;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   FRONT PAGE — THREE COLUMN STRIP
═══════════════════════════════════════════════════════ */
.three-col-section {
  display: grid;
  grid-template-columns: 1fr 2px 1fr 2px 1fr;
  gap: 0 var(--col-gap);
  padding: 18px 0;
  border-bottom: 2px solid var(--ink);
}

.col-divider {
  background: repeating-linear-gradient(
    to bottom,
    var(--rule) 0, var(--rule) 4px,
    transparent 4px, transparent 8px
  );
}

.col-label { display: block; margin-bottom: 8px; }

.col-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 7px;
  color: var(--ink);
}

.img-placeholder,
.img-placeholder--col  { width:100%; aspect-ratio:3/2;  background:linear-gradient(135deg,#c4b89a,#4a3728); border:1px solid var(--rule); }
.img-placeholder--hero { width:100%; aspect-ratio:4/3;  background:linear-gradient(135deg,#c4b89a,#4a3728); border:1px solid var(--rule); }
.img-placeholder--thumb{ width:80px; aspect-ratio:4/3;  background:linear-gradient(135deg,#c4b89a,#4a3728); border:1px solid var(--rule); }

/* Ensure col images stretch properly */
.col-image img,
.col-image .img-placeholder { width:100%; }

.col-excerpt {
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--ink-light);
  text-align: justify;
  hyphens: auto;
}

/* ═══════════════════════════════════════════════════════
   FRONT PAGE — GALLERIES
═══════════════════════════════════════════════════════ */
.galleries-section {
  padding: 18px 0;
  border-bottom: 3px double var(--rule);
}

.galleries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

/* Gradient always visible — img layered on top absolutely */
.gallery-card-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}

/* Gradient classes: always rendered, visible when no photo or photo fails */
.gallery-card-bg.bg-sea  { background: linear-gradient(160deg,#b8cdd4,#2a4f5e,#0d1f26); }
.gallery-card-bg.bg-land { background: linear-gradient(170deg,#c4b89a,#5a7040,#1e2d10); }
.gallery-card-bg.bg-str  { background: linear-gradient(155deg,#c0b0a0,#5a4030,#1a100a); }
.gallery-card-bg.bg-mis  { background: linear-gradient(165deg,#c4c0b8,#4a4a52,#18181e); }
.gallery-card-bg.bg-dai  { background: linear-gradient(150deg,#d4c8b0,#7a6a50,#2a2010); }

/* Photo sits on top of gradient; transition applied here not on parent */
.gallery-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
  transition: transform .45s ease;
  display: block;
}

.gallery-card:hover .gallery-card-photo { transform: scale(1.05); }

.gallery-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,6,2,.88) 0%, transparent 100%);
  padding: 22px 8px 7px;
}

.gallery-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════
   FRONT PAGE — LOWER BLOG STRIP
═══════════════════════════════════════════════════════ */
.lower-section { padding: 18px 0; border-bottom: 2px solid var(--rule); }

.blog-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-col-heading {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}

.blog-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}
.blog-item:last-child { border-bottom: none; }

.blog-thumb-wrap {
  width: 80px;
  flex-shrink: 0;
}

.blog-thumb-wrap img {
  width: 80px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: sepia(12%);
}

.blog-thumb-placeholder {
  width: 80px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c4b89a, #4a3728);
  border: 1px solid var(--rule);
}

.blog-post-meta {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.blog-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.blog-post-title:hover { color: var(--accent); }

.blog-post-excerpt {
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-light);
}

/* ═══════════════════════════════════════════════════════
   ABOUT STRIP
═══════════════════════════════════════════════════════ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 2px solid var(--rule);
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}

.about-body {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.about-body strong { font-style: normal; font-weight: 700; color: var(--ink); }

.social-links { display: flex; gap: 16px; flex-wrap: wrap; }

.social-link {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}
.social-link:hover { color: var(--ink); border-color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: var(--paper-dark);
  padding: 22px 28px 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  gap: 0 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245,240,232,.18);
}

.footer-divider { background: rgba(245,240,232,.14); }

.footer-col-title {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(245,240,232,.18);
}

.footer-links { list-style: none; }
.footer-links li {
  font-family: 'IM Fell English', serif;
  font-size: 12px;
  padding: 3px 0;
  color: rgba(245,240,232,.6);
  border-bottom: 1px dotted rgba(245,240,232,.12);
}
.footer-links li:last-child { border-bottom: none; }
.footer-links a { color: inherit; text-decoration: none; transition: color .18s; }
.footer-links a:hover { color: var(--paper); }

.footer-bottom {
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(245,240,232,.35);
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════ */
.single-post-wrap { max-width: 760px; margin: 0 auto; padding: 28px 0 36px; }

.post-header { border-bottom: 3px double var(--rule); padding-bottom: 18px; margin-bottom: 22px; }

.post-category-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--accent);
  padding-top: 5px;
  margin-bottom: 10px;
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.post-meta {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-faded);
  text-transform: uppercase;
}

.post-featured-image {
  margin-bottom: 22px;
}
.post-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  filter: sepia(8%) contrast(1.04);
  border: 1px solid var(--rule);
}

.post-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-light);
}

.post-content p { margin-bottom: 1.4em; text-align: justify; hyphens: auto; }
.post-content p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4em;
  font-weight: 900;
  float: left;
  line-height: .8;
  margin-right: .08em;
  margin-top: .05em;
  color: var(--ink);
}

.post-content h1, .post-content h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--ink);
  margin: 1.6em 0 .6em;
  line-height: 1.1;
}
.post-content h2 { font-size: 26px; border-bottom: 2px solid var(--rule); padding-bottom: 6px; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin: 1.4em 0 .5em; color: var(--ink); }
.post-content h4, .post-content h5 { font-family: 'Special Elite', monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 1.2em 0 .4em; }

.post-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  margin: 1em 0;
  filter: sepia(8%) contrast(1.03);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: .8em 1.2em;
  background: var(--paper-dark);
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-light);
}

.post-content ul, .post-content ol {
  margin: 1em 0 1em 1.6em;
}
.post-content li { margin-bottom: .4em; }

.post-content a { color: var(--accent); border-bottom: 1px solid rgba(139,37,0,.3); text-decoration: none; }
.post-content a:hover { border-color: var(--accent); }

.post-content .wp-caption { margin: 1.2em 0; }
.post-content .wp-caption-text {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--ink-faded);
  font-style: italic;
  margin-top: 4px;
  text-align: center;
}

.post-content figure { margin: 1.4em 0; }
.post-content figcaption {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--ink-faded);
  font-style: italic;
  margin-top: 4px;
  text-align: center;
}

/* Tags */
.post-tags {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--ink-faded);
}
.post-tags a { color: var(--accent); text-decoration: none; margin: 0 4px 4px 0; display: inline-block; border: 1px solid var(--accent); padding: 2px 6px; }
.post-tags a:hover { background: var(--accent); color: var(--paper); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 3px double var(--rule);
}

.nav-previous, .nav-next {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faded);
}
.nav-next { text-align: right; }
.nav-previous a, .nav-next a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.nav-previous a:hover, .nav-next a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   ARCHIVE / CATEGORY
═══════════════════════════════════════════════════════ */
.archive-header {
  padding: 22px 0 16px;
  border-bottom: 3px double var(--rule);
  margin-bottom: 22px;
}

.archive-eyebrow {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--accent);
  padding-top: 5px;
  margin-bottom: 8px;
  display: inline-block;
}

.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.archive-description {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-light);
}

.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 28px;
}

.archive-post-card {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
}

.archive-post-card .card-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--rule);
  margin-bottom: 8px;
  filter: sepia(10%) contrast(1.04);
}

.archive-post-card .card-img .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c4b89a, #4a3728);
  border: 1px solid var(--rule);
  margin-bottom: 8px;
}

.card-meta {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-light);
}

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
  border-top: 2px solid var(--rule);
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: .1em;
}

.pagination-wrap .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════
   STATIC PAGE
═══════════════════════════════════════════════════════ */
.page-content-wrap { max-width: 760px; margin: 0 auto; padding: 28px 0 36px; }

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 3px double var(--rule);
}

.page-body { font-size: 14px; line-height: 1.8; color: var(--ink-light); }
.page-body p { margin-bottom: 1.4em; text-align: justify; hyphens: auto; }
.page-body a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════════════ */
.search-header {
  padding: 22px 0 16px;
  border-bottom: 3px double var(--rule);
  margin-bottom: 22px;
}
.search-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
}

.search-form-wrap {
  display: flex;
  gap: 0;
  max-width: 420px;
}
.search-form-wrap input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-right: none;
  background: var(--paper-mid);
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink);
  outline: none;
}
.search-form-wrap button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-form-wrap button:hover { background: var(--accent); border-color: var(--accent); }

.no-results {
  padding: 36px 0;
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-faded);
}

/* ═══════════════════════════════════════════════════════
   404
═══════════════════════════════════════════════════════ */
.error-404-wrap {
  text-align: center;
  padding: 60px 28px;
}
.error-404-code {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 120px;
  color: var(--ink);
  line-height: 1;
  opacity: .12;
  display: block;
}
.error-404-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}
.error-404-text {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-faded);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════ */
.comments-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 3px double var(--rule);
}

.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

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

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

.comment-author {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.comment-date {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  color: var(--ink-faded);
  margin-bottom: 8px;
}

.comment-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-light);
}

.comment-reply-link {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: 6px;
  display: inline-block;
}

.comment-form label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 4px;
  margin-top: 12px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  background: var(--paper-mid);
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.comment-form textarea { min-height: 100px; resize: vertical; }

.comment-form input[type="submit"],
.comment-form .submit {
  margin-top: 12px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 9px 24px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s;
}
.comment-form input[type="submit"]:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .archive-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .photonist-wrap { margin: 0; border: none; border-radius: 0; }

  .masthead-top { font-size: 8.5px; letter-spacing: .08em; }
  .site-logo img, .custom-logo { height: 52px; }

  .site-nav { padding: 0 14px; }
  .nav-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav-inner li > a, .nav-inner li > span.menu-parent { font-size: 9.5px; padding: 8px 10px; }
  .nav-inner li ul { position: static; display: none; }

  .content-area { padding: 0 16px 28px; }

  .hero-section { grid-template-columns: 1fr; }
  .hero-headline { font-size: 32px; }

  .three-col-section { grid-template-columns: 1fr; }
  .col-divider { display: none; }

  .galleries-grid { grid-template-columns: repeat(3, 1fr); }

  .blog-strip { grid-template-columns: 1fr; }

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

  .archive-posts-grid { grid-template-columns: 1fr; }

  .post-title { font-size: 28px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-divider { display: none; }

  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
}

@media (max-width: 420px) {
  .galleries-grid { grid-template-columns: repeat(2, 1fr); }
  .masthead-center { padding: 10px 0 8px; }
}
