/*
Theme Name: NerdWriter
Theme URI: https://github.com/yourname/nerdwriter
Author: Your Name
Author URI: https://yourblog.com
Description: A masculine, nerdy personal essay theme. Warm cream parchment scroll on a dark background. Medieval gravitas meets science-fiction precision.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, personal, dark, essays, parchment, medieval
Text Domain: nerdwriter
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=IM+Fell+English:ital@0;1&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --page-bg:          #0a0a0a;
  --parchment:        #f5e6c8;
  --parchment-dark:   #e8d5a8;
  --parchment-edge:   #c8a96e;
  --parchment-crack:  #b8955a;
  --ink:              #1a1008;
  --ink-muted:        #4a3728;
  --section-break:    #6b4423;
  --pennant:          #ffffff;
  --pennant-text:     #0a0a0a;
  --glow-blue:        #4fc3f7;
  --glow-blue-dim:    rgba(79, 195, 247, 0.3);
  --glow-blue-outer:  rgba(79, 195, 247, 0.1);
  --wood-bg:          #6b4c2a;
  --wood-dark:        #4a3218;
  --wood-light:       #8b6540;
  --wood-text:        #f0d49a;
  --footer-bg:        #000000;
  --footer-text:      #ffffff;
  --font-display:     'Cinzel', 'Times New Roman', serif;
  --font-body:        'IM Fell English', Georgia, serif;
  --scroll-width:     760px;
  --scroll-padding:   48px;
  --sidebar-width:    120px;
}

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

body {
  background-color: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.content-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 20px 60px;
  position: relative;
  flex: 1;
}

.scroll-with-sidebar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  gap: 0;
}

/* ============================================================
   DESKTOP HEADER
   ============================================================ */
.site-header {
  position: relative;
  padding: 60px 32px 0;
  z-index: 100;
  display: flex;
  align-items: flex-end; /* align pennant to bottom of logo */
}

.site-logo-anchor {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.site-logo-anchor img {
  height: 140px; /* taller logo */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.logo-placeholder-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--pennant);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  line-height: 1;
  padding: 16px 0;
}

/* Pennant */
.pennant-nav {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: -2px;
  margin-bottom: 0;
}

.pennant-shape {
  display: flex;
  align-items: center;
  position: relative;
  height: 48px;
  background: var(--pennant);
  padding: 0 52px 0 20px;
  clip-path: polygon(
    0% 0%,
    calc(100% - 28px) 0%,
    100% 50%,
    calc(100% - 28px) 100%,
    0% 100%
  );
  box-shadow: 2px 2px 12px rgba(0,0,0,0.5);
}

.pennant-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.pennant-nav-list li a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--pennant-text);
  letter-spacing: 0.06em;
  padding: 6px 10px;
  display: block;
  transition: text-shadow 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.pennant-nav-list li a:hover,
.pennant-nav-list li a.current {
  color: #0066cc;
  text-shadow:
    0 0 6px var(--glow-blue),
    0 0 14px var(--glow-blue),
    0 0 30px var(--glow-blue-dim),
    0 0 60px var(--glow-blue-outer);
}

/* ============================================================
   BLOG SIDEBAR — HANGING PLACARDS
   ============================================================ */
.blog-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 24px;
}

/* "Posts by Year" header label */
.sidebar-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 212, 154, 0.7);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.placard-chain { display: flex; flex-direction: column; align-items: center; width: 100%; }

.placard-string {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, #888 0%, #555 100%);
  margin: 0 auto;
}

/* SVG wood grain pattern defined inline via background-image */
.year-placard {
  display: block;
  color: var(--wood-text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  border-radius: 3px;
  border: 2px solid var(--wood-dark);
  width: 90px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    2px 4px 8px rgba(0,0,0,0.6);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.05em;
  /* SVG wood grain texture */
  background-color: var(--wood-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='38'%3E%3Crect width='90' height='38' fill='%236b4c2a'/%3E%3Cpath d='M0 4 Q22 2 45 5 Q68 8 90 4' stroke='%238b6540' stroke-width='1.2' fill='none' opacity='0.5'/%3E%3Cpath d='M0 9 Q30 6 45 10 Q60 14 90 9' stroke='%234a3218' stroke-width='0.8' fill='none' opacity='0.4'/%3E%3Cpath d='M0 15 Q20 12 45 16 Q70 20 90 15' stroke='%238b6540' stroke-width='1' fill='none' opacity='0.35'/%3E%3Cpath d='M0 20 Q35 17 45 21 Q55 25 90 20' stroke='%234a3218' stroke-width='0.7' fill='none' opacity='0.3'/%3E%3Cpath d='M0 26 Q25 23 45 27 Q65 31 90 26' stroke='%238b6540' stroke-width='1.1' fill='none' opacity='0.4'/%3E%3Cpath d='M0 32 Q40 29 45 33 Q50 37 90 32' stroke='%234a3218' stroke-width='0.9' fill='none' opacity='0.35'/%3E%3Cpath d='M20 0 Q22 8 20 16 Q18 24 20 38' stroke='%235a3c1e' stroke-width='0.5' fill='none' opacity='0.25'/%3E%3Cpath d='M50 0 Q53 10 50 19 Q47 28 50 38' stroke='%235a3c1e' stroke-width='0.4' fill='none' opacity='0.2'/%3E%3Cpath d='M70 0 Q72 9 70 18 Q68 27 70 38' stroke='%235a3c1e' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3C/svg%3E");
  background-size: cover;
}

.year-placard:hover {
  transform: translateX(3px) rotate(1deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 4px 6px 12px rgba(0,0,0,0.7);
  color: #fff;
}

/* ============================================================
   GAME TOC SIDEBAR
   ============================================================ */
.toc-sidebar {
  width: 200px;
  flex-shrink: 0;
  margin-right: 24px;
  padding-top: 20px;
}

.toc-sidebar h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--parchment-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,230,200,0.2);
}

.toc-sidebar ul { list-style: none; padding: 0; }

.toc-sidebar ul li a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--parchment-dark);
  display: block;
  padding: 4px 8px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  opacity: 0.8;
}

.toc-sidebar ul li a:hover { background: rgba(245,230,200,0.1); color: var(--parchment); opacity: 1; }

/* ============================================================
   THE SCROLL
   ============================================================ */
.scroll-container { width: var(--scroll-width); flex-shrink: 0; position: relative; }

/* ── Wooden Rod (top & bottom) ─────────────────────────────── */
.scroll-rod-top,
.scroll-rod-bottom {
  width: 100%;
  height: 28px;
  position: relative;
  z-index: 4;
  border-radius: 6px;
  /* Cylindrical wood grain rod */
  background:
    linear-gradient(
      to bottom,
      #a07040 0%,
      #c89050 15%,
      #8b5c28 35%,
      #6b4220 55%,
      #5a3818 70%,
      #7a4e28 85%,
      #4a3018 100%
    );
  background-image:
    linear-gradient(
      to bottom,
      #a07040 0%,
      #c89050 15%,
      #8b5c28 35%,
      #6b4220 55%,
      #5a3818 70%,
      #7a4e28 85%,
      #4a3018 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='28'%3E%3Cpath d='M0 10 Q50 8 100 11 Q150 14 200 10' stroke='%23c89050' stroke-width='0.8' fill='none' opacity='0.4'/%3E%3Cpath d='M0 16 Q40 14 100 17 Q160 20 200 16' stroke='%234a3018' stroke-width='0.6' fill='none' opacity='0.35'/%3E%3Cpath d='M0 6 Q60 4 100 7 Q140 10 200 6' stroke='%23c89050' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
  background-blend-mode: normal;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    0 -1px 0 rgba(255,255,255,0.08),
    inset 0 1px 2px rgba(255,255,255,0.15),
    inset 0 -2px 4px rgba(0,0,0,0.4);
  border: 1px solid #3a2810;
}

/* End caps on the rods — small circles at each end */
.scroll-rod-top::before,
.scroll-rod-top::after,
.scroll-rod-bottom::before,
.scroll-rod-bottom::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b07840, #5a3418);
  border: 1px solid #3a2010;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.1);
  z-index: 5;
}

.scroll-rod-top::before,
.scroll-rod-bottom::before { left: -8px; }
.scroll-rod-top::after,
.scroll-rod-bottom::after  { right: -8px; }

/* ── Parchment Curl (between rod and body) ─────────────────── */
.scroll-curl-top,
.scroll-curl-bottom {
  width: 100%;
  height: 40px;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.scroll-curl-top {
  background: linear-gradient(to bottom, var(--parchment-dark) 0%, var(--parchment) 100%);
  box-shadow: inset 0 -4px 8px rgba(100,70,30,0.15);
  border-left: 2px solid var(--parchment-crack);
  border-right: 2px solid var(--parchment-crack);
}

.scroll-curl-bottom {
  background: linear-gradient(to top, var(--parchment-dark) 0%, var(--parchment) 100%);
  box-shadow: inset 0 4px 8px rgba(100,70,30,0.15);
  border-left: 2px solid var(--parchment-crack);
  border-right: 2px solid var(--parchment-crack);
}

/* ── Scroll Body ───────────────────────────────────────────── */
.scroll-body {
  /* Parchment repeating texture via SVG pattern */
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cdefs%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.4' numOctaves='4' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='multiply'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='400' height='400' fill='%23f5e6c8'/%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.07'/%3E%3Cpath d='M0 80 Q100 76 200 82 Q300 88 400 80' stroke='%23d4b87a' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Cpath d='M0 180 Q120 174 200 181 Q280 188 400 180' stroke='%23c8a060' stroke-width='0.4' fill='none' opacity='0.2'/%3E%3Cpath d='M0 280 Q90 276 200 281 Q310 286 400 280' stroke='%23d4b87a' stroke-width='0.5' fill='none' opacity='0.25'/%3E%3Cpath d='M0 360 Q150 356 200 361 Q250 366 400 360' stroke='%23c8a060' stroke-width='0.4' fill='none' opacity='0.2'/%3E%3Cpath d='M60 0 Q62 100 60 200 Q58 300 60 400' stroke='%23d4b87a' stroke-width='0.4' fill='none' opacity='0.15'/%3E%3Cpath d='M200 0 Q202 120 200 200 Q198 280 200 400' stroke='%23c8a060' stroke-width='0.3' fill='none' opacity='0.12'/%3E%3Cpath d='M340 0 Q342 90 340 200 Q338 310 340 400' stroke='%23d4b87a' stroke-width='0.4' fill='none' opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 400px;
  padding: var(--scroll-padding);
  padding-left: calc(var(--scroll-padding) + 20px);
  padding-right: calc(var(--scroll-padding) + 20px);
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* ── Dramatic Torn/Cracked Left Edge ───────────────────────── */
.scroll-body::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 24px;
  pointer-events: none;
  z-index: 3;
  background:
    /* dark crack shadow */
    linear-gradient(to right, rgba(80,50,20,0.5) 0px, rgba(80,50,20,0.15) 8px, transparent 24px);
  /* Torn edge via SVG clip-path equivalent using border-image */
  clip-path: polygon(
    0% 0%,   3px 0%,
    1px 4%,  4px 7%,
    0px 11%, 5px 14%,
    2px 18%, 6px 22%,
    1px 26%, 4px 30%,
    0px 34%, 5px 38%,
    2px 42%, 6px 46%,
    1px 50%, 5px 54%,
    0px 58%, 4px 62%,
    2px 66%, 6px 70%,
    1px 74%, 5px 78%,
    0px 82%, 4px 86%,
    2px 90%, 5px 94%,
    1px 98%, 3px 100%,
    0% 100%
  );
}

/* ── Dramatic Torn/Cracked Right Edge ──────────────────────── */
.scroll-body::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 24px;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(to left, rgba(80,50,20,0.5) 0px, rgba(80,50,20,0.15) 8px, transparent 24px);
  clip-path: polygon(
    100% 0%,  calc(100% - 3px) 0%,
    calc(100% - 1px) 4%,  calc(100% - 4px) 7%,
    100% 11%, calc(100% - 5px) 14%,
    calc(100% - 2px) 18%, calc(100% - 6px) 22%,
    calc(100% - 1px) 26%, calc(100% - 4px) 30%,
    100% 34%, calc(100% - 5px) 38%,
    calc(100% - 2px) 42%, calc(100% - 6px) 46%,
    calc(100% - 1px) 50%, calc(100% - 5px) 54%,
    100% 58%, calc(100% - 4px) 62%,
    calc(100% - 2px) 66%, calc(100% - 6px) 70%,
    calc(100% - 1px) 74%, calc(100% - 5px) 78%,
    100% 82%, calc(100% - 4px) 86%,
    calc(100% - 2px) 90%, calc(100% - 5px) 94%,
    calc(100% - 1px) 98%, calc(100% - 3px) 100%,
    100% 100%
  );
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--parchment-crack);
}

/* ============================================================
   POST ENTRY
   ============================================================ */
.post-entry { margin-bottom: 0; }

.post-entry-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.post-thumbnail-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}

.post-thumbnail-wrap img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--parchment-crack);
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

/* Illuminated Initial */
.illuminated-initial {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment-crack) 100%);
  border: 3px solid var(--section-break);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(100,70,30,0.3), 3px 3px 10px rgba(0,0,0,0.2);
}

.illuminated-initial::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--section-break);
  opacity: 0.5;
}

.illuminated-initial::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--section-break);
  opacity: 0.3;
}

.illuminated-initial span {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  color: var(--section-break);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--parchment-crack), -1px -1px 0 rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.post-meta-header { flex: 1; }

.entry-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.entry-title a { color: inherit; transition: color 0.2s; }
.entry-title a:hover { color: var(--section-break); }

.post-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.entry-content {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  margin-top: 16px;
  clear: both;
}

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

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 1.5em 0 0.5em;
  letter-spacing: 0.04em;
}

.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }

/* ============================================================
   SECTION BREAKS
   ============================================================ */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 16px;
}

.section-break-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--parchment-crack), transparent);
}

.section-break svg {
  width: 80px;
  height: 28px;
  color: var(--section-break);
  fill: var(--section-break);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT ME
   ============================================================ */
.about-photo-wrap {
  width: 220px;
  height: 220px;
  float: left;
  margin: 0 28px 20px 0;
}

.about-photo-wrap img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 3px solid var(--parchment-crack);
  box-shadow: 4px 4px 14px rgba(0,0,0,0.25);
}

.about-photo-placeholder {
  width: 220px;
  height: 220px;
  background: var(--parchment-dark);
  border: 3px dashed var(--parchment-crack);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  padding: 12px;
  letter-spacing: 0.05em;
}

.about-content { font-family: var(--font-body); font-size: 18px; line-height: 1.85; color: var(--ink); }
.about-content p { margin-bottom: 1.2em; }
.about-content::after { content: ''; display: table; clear: both; }

/* ============================================================
   LINKS PAGE
   ============================================================ */
.links-list { list-style: none; padding: 0; }

.links-list li {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--parchment-crack);
}

.links-list li:last-child { border-bottom: none; }

.links-list a.link-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--section-break);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.links-list a.link-title:hover { color: var(--ink); }

.link-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ============================================================
   GAME WALKTHROUGHS
   ============================================================ */
.game-list { list-style: none; padding: 0; }

.game-list li {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--parchment-crack);
}

.game-list li:last-child { border-bottom: none; }

.game-list a.game-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.game-list a.game-title:hover { color: var(--section-break); }
.game-description { font-family: var(--font-body); font-size: 16px; color: var(--ink-muted); margin-top: 6px; font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 24px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.03em;
  border-top: 1px solid #222;
}

/* ============================================================
   PAGINATION NAV
   ============================================================ */
.posts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 0 10px;
  font-family: var(--font-display);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--parchment-crack);
  background: rgba(184,149,90,0.12);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.pagination-btn:hover {
  background: rgba(184,149,90,0.25);
  color: var(--section-break);
  box-shadow: 0 2px 8px rgba(100,70,30,0.2);
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.pagination-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header {
  display: none;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  padding-top: 20px;
  transition: padding 0.3s ease, background 0.3s ease;
}

.mobile-logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}

.mobile-logo-btn img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.9));
  transition: height 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.mobile-logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--pennant);
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  transition: font-size 0.4s ease;
  line-height: 1;
}

.mobile-header.scrolled {
  padding: 8px 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
  width: 100%;
}

.mobile-header.scrolled .mobile-logo-btn img { height: 46px; }
.mobile-header.scrolled .mobile-logo-text { font-size: 20px; }

.mobile-nav-dropdown {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.97);
  border: 1px solid #333;
  width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  animation: dropDown 0.25s ease forwards;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-dropdown.open { display: flex; }

.mobile-nav-dropdown a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--pennant);
  padding: 14px 20px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #222;
  transition: color 0.2s, background 0.2s;
}

.mobile-nav-dropdown a:last-child { border-bottom: none; }

.mobile-nav-dropdown a:hover {
  background: #111;
  color: var(--glow-blue);
  text-shadow: 0 0 10px var(--glow-blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --scroll-width: 100%;
    --scroll-padding: 24px;
  }

  .site-header { display: none; }
  .mobile-header { display: flex; }

  .content-area { padding: 0 12px 40px; margin-top: 20px; }
  .scroll-with-sidebar { flex-direction: column; align-items: center; }
  .blog-sidebar, .toc-sidebar { display: none; }
  .scroll-container { width: 100%; }
  .scroll-rod-top, .scroll-rod-bottom { height: 20px; border-radius: 4px; }
  .scroll-rod-top::before, .scroll-rod-top::after,
  .scroll-rod-bottom::before, .scroll-rod-bottom::after { width: 16px; height: 16px; }
  .scroll-curl-top, .scroll-curl-bottom { height: 24px; }

  .post-entry-inner { flex-direction: column; }

  .post-thumbnail-wrap,
  .illuminated-initial {
    width: 110px !important;
    height: 110px !important;
    float: left;
    margin: 0 14px 8px 0;
  }

  .post-thumbnail-wrap img { width: 110px !important; height: 110px !important; }
  .illuminated-initial span { font-size: 56px; }
  .entry-title { font-size: 20px; }
  .entry-content { font-size: 16px; }

  .about-photo-wrap { width: 150px; height: 150px; }
  .about-photo-wrap img, .about-photo-placeholder { width: 150px; height: 150px; }
}
