/* public/css/style.css — Hemingway Theme + Multi-Theme */

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

/* ── TEMA DEFAULT (Hemingway Classic) ── */
:root {
  --cream: #f9f5ef;
  --ink: #1a1714;
  --muted: #6b6259;
  --accent: #c0392b;
  --accent-dark: #a93226;
  --light-border: #e0d9d0;
  --card-bg: #fff;
  --nav-bg: #1a1714;
  --footer-bg: #1a1714;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Source Sans 3', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ── OCEAN ── */
[data-theme="ocean"] {
  --cream: #eef4fb; --ink: #0d2137; --muted: #5a7a96;
  --accent: #1a6eb5; --accent-dark: #155d99;
  --light-border: #c8ddf0; --card-bg: #fff;
  --nav-bg: #0d2137; --footer-bg: #0d2137;
}
/* ── FOREST ── */
[data-theme="forest"] {
  --cream: #f0f5ee; --ink: #1a2e1a; --muted: #5a7a5a;
  --accent: #2e7d32; --accent-dark: #256427;
  --light-border: #c8ddc8; --card-bg: #fff;
  --nav-bg: #1a2e1a; --footer-bg: #1a2e1a;
}
/* ── MIDNIGHT ── */
[data-theme="midnight"] {
  --cream: #f3f0fa; --ink: #1e1535; --muted: #7060a0;
  --accent: #7c4dff; --accent-dark: #6837f5;
  --light-border: #d8d0f0; --card-bg: #fff;
  --nav-bg: #1e1535; --footer-bg: #1e1535;
}
/* ── SUNSET ── */
[data-theme="sunset"] {
  --cream: #fdf3ec; --ink: #2d1a0d; --muted: #8a5a3a;
  --accent: #e65100; --accent-dark: #cc4700;
  --light-border: #f0d8c4; --card-bg: #fff;
  --nav-bg: #2d1a0d; --footer-bg: #2d1a0d;
}
/* ── ROSE ── */
[data-theme="rose"] {
  --cream: #fdf0f5; --ink: #2d0d1a; --muted: #8a3a5a;
  --accent: #c2185b; --accent-dark: #a8154f;
  --light-border: #f0c8d8; --card-bg: #fff;
  --nav-bg: #2d0d1a; --footer-bg: #2d0d1a;
}
/* ── SLATE ── */
[data-theme="slate"] {
  --cream: #eceff1; --ink: #263238; --muted: #607d8b;
  --accent: #455a64; --accent-dark: #37474f;
  --light-border: #cfd8dc; --card-bg: #fff;
  --nav-bg: #263238; --footer-bg: #263238;
}
/* ── DARK ── */
[data-theme="dark"] {
  --cream: #1a1a1a; --ink: #e8e8e8; --muted: #999;
  --accent: #e0e0e0; --accent-dark: #bdbdbd;
  --light-border: #333; --card-bg: #242424;
  --nav-bg: #111; --footer-bg: #111;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  background: var(--cream);
  color: var(--ink);
  font-size: 18px; line-height: 1.7;
  transition: background .35s, color .35s;
}

/* Flash */
.flash { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; padding: .8rem 1.5rem; font-family: var(--font-sans); font-size: .88rem; display: flex; align-items: center; justify-content: space-between; }
.flash-success { background: #27ae60; color: #fff; }
.flash-error   { background: var(--accent); color: #fff; }
.flash-info    { background: #2980b9; color: #fff; }
.flash button  { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; }

/* ── COVER ── */
#cover { position: relative; height: 100vh; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #1a1714; }
#cover-bg { position: absolute; inset: 0; background: linear-gradient(rgba(20,16,12,.55),rgba(20,16,12,.78)), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1600&q=80') center/cover no-repeat; transform: scale(1.04); transition: transform 8s, background-image .5s; }
#cover:hover #cover-bg { transform: scale(1); }
#cover-inner { position: relative; z-index: 2; padding: 2rem 1.5rem; animation: fadeUp .9s ease both; width: 100%; box-sizing: border-box; overflow: visible; }
.site-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-shadow: 0 2px 32px rgba(0,0,0,.5);
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 6rem);
  overflow: visible;
  transform-origin: center center;
}
.site-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1rem,2.5vw,1.35rem); color: rgba(255,255,255,.7); margin-top: .75rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.4); font-family: var(--font-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .35rem; animation: bounce 2.2s ease infinite; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }

/* ── NAV ── */
nav.site-nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); border-bottom: 2px solid var(--accent); transition: background .35s, border-color .35s; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-btn { color: #fff !important; background: var(--accent); padding: .42rem 1.1rem; transition: background .35s !important; }
.nav-btn:hover { background: var(--accent-dark) !important; }

/* ════════════════════════════════════════════
   TOMBOL TEMA di NAV
════════════════════════════════════════════ */
.nav-theme-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: .4rem .75rem;
  cursor: pointer;
  color: rgba(255,255,255,.75);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-theme-btn:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.nav-theme-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ════════════════════════════════════════════
   OVERLAY GELAP
════════════════════════════════════════════ */
#ts-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  transition: opacity .3s;
}
#ts-overlay.open { display: block; }

/* ════════════════════════════════════════════
   TEMA SIDEBAR
════════════════════════════════════════════ */
#theme-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  z-index: 999;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .35s;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 6px 0 40px rgba(0,0,0,.4);
  overflow: hidden;
}
#theme-sidebar.open { transform: translateX(0); }

.ts-head {
  padding: 1.35rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  flex-shrink: 0;
}
.ts-head-inner { display: flex; align-items: center; gap: .85rem; }
.ts-logo {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ts-logo svg { width: 17px; height: 17px; stroke: rgba(255,255,255,.6); }
.ts-head-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.15; }
.ts-head-sub { font-family: var(--font-sans); font-size: .68rem; color: rgba(255,255,255,.35); letter-spacing: .06em; margin-top: .15rem; }
.ts-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.35); padding: .3rem;
  display: flex; align-items: center;
  transition: color .2s; flex-shrink: 0; margin-top: .1rem;
}
.ts-close:hover { color: rgba(255,255,255,.9); }
.ts-close svg { width: 16px; height: 16px; }

.ts-divider { height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 100%); flex-shrink: 0; }

.ts-body {
  flex: 1; overflow-y: auto;
  padding: .85rem .9rem;
  display: flex; flex-direction: column; gap: .5rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.ts-body::-webkit-scrollbar { width: 3px; }
.ts-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

.ts-card {
  width: 100%; display: flex; align-items: center; gap: .9rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  position: relative; text-align: left;
}
.ts-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); transform: translateX(3px); }
.ts-card.active { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.ts-card.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent); transition: background .35s;
}

.ts-preview {
  width: 52px; height: 36px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12); border-radius: 3px;
  overflow: hidden; display: flex; position: relative;
}
.ts-prev-sidebar { width: 30%; flex-shrink: 0; padding: 4px 3px; display: flex; flex-direction: column; gap: 2px; }
.ts-prev-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-bottom: 1px; }
.ts-prev-line { height: 2px; background: rgba(255,255,255,.2); border-radius: 1px; width: 100%; }
.ts-prev-body { flex: 1; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; }
.ts-prev-heading { height: 4px; border-radius: 1px; width: 90%; }
.ts-prev-text { height: 2px; background: rgba(0,0,0,.15); border-radius: 1px; width: 100%; }
.ts-prev-accent { height: 2px; border-radius: 1px; width: 40%; margin-top: 1px; }
.ts-prev-check {
  position: absolute; top: 2px; right: 3px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.ts-prev-check svg { width: 9px; height: 9px; }

.ts-card-info { flex: 1; min-width: 0; }
.ts-card-name { font-family: var(--font-display); font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.1; }
.ts-card.active .ts-card-name { color: #fff; }
.ts-card-desc { font-family: var(--font-sans); font-size: .68rem; color: rgba(255,255,255,.35); letter-spacing: .04em; margin-top: .15rem; }
.ts-card-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; opacity: .8; }
.ts-card:hover .ts-card-dot, .ts-card.active .ts-card-dot { opacity: 1; }

.ts-foot { padding: 1rem 1.25rem 1.25rem; flex-shrink: 0; }
.ts-foot-label { font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: .3rem; }
.ts-foot-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,.9); line-height: 1.1; transition: color .2s; }
.ts-foot-desc { font-family: var(--font-sans); font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .2rem; }

/* ── TOAST BLOG ── */
#blog-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  background: var(--nav-bg); color: rgba(255,255,255,.92);
  font-family: var(--font-sans); font-size: .82rem;
  padding: .6rem 1.1rem; border-left: 3px solid var(--accent);
  transform: translateY(80px); opacity: 0;
  transition: transform .3s, opacity .3s, background .35s, border-color .35s;
  pointer-events: none;
}
#blog-toast.show { transform: translateY(0); opacity: 1; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ── LAYOUT ── */
.site-wrap { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; display: grid; grid-template-columns: 1fr 300px; gap: 4rem; }
.page-wrap  { max-width: 780px; margin: 3rem auto; padding: 0 1.5rem 5rem; }

/* ── POST SINGLE ── */
.post-canvas {
  background: var(--card-bg);
  border: 1px solid var(--light-border);
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: background .35s, border-color .35s;
  overflow: hidden;
}
.post-canvas-inner { padding: 2.5rem 3rem; }
.post-page-bg { background: var(--cream); min-height: 100vh; padding-bottom: 4rem; transition: background .35s; }
.post-sidebar .widget { background: var(--card-bg); border: 1px solid var(--light-border); transition: background .35s, border-color .35s; }
@media (max-width: 900px) { .post-canvas-inner { padding: 1.75rem 1.5rem; } }
@media (max-width: 640px) { .post-canvas-inner { padding: 1.25rem 1rem; } }

/* ── FEATURED POST ── */
.featured-post { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--light-border); overflow: hidden; background: var(--card-bg); transition: box-shadow .3s, border-color .35s, background .35s; }
.featured-post:hover { box-shadow: 0 8px 40px rgba(0,0,0,.12); }
.featured-img { aspect-ratio: 4/3; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.featured-post:hover .featured-img img { transform: scale(1.04); }
.featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }

/* ── POST CARD ── */
.post-cat { font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .65rem; text-decoration: none; transition: color .35s; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--light-border); transition: border-color .35s; }
.post-card:last-child { border-bottom: none; padding-bottom: 0; }
.card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.post-card:hover .card-thumb img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; justify-content: center; }
.card-body h3, .featured-body h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin-bottom: .5rem; }
.featured-body h2 { font-size: clamp(1.5rem,2.8vw,2.2rem); }
.card-body h3 { font-size: 1.3rem; }
.card-body h3 a, .featured-body h2 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover, .featured-body h2 a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: .93rem; line-height: 1.65; margin-bottom: 1rem; transition: color .35s; }
.post-meta { font-family: var(--font-sans); font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; transition: color .35s; }
.post-meta .dot { color: var(--light-border); }
.read-more { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-top: 1rem; transition: gap .2s, color .35s; }
.read-more:hover { gap: .65rem; }

/* ── SINGLE POST ── */
.post-hero { width: 100%; max-height: 480px; object-fit: cover; display: block; margin-bottom: 2.5rem; }
.post-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,3rem); font-weight: 900; line-height: 1.15; margin-bottom: 1rem; }
.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--ink); }
.post-content p { margin-bottom: 1.4rem; }
.post-content h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 2rem 0 .8rem; }
.post-content h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: .5rem 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--muted); transition: border-color .35s, color .35s; }
.post-content img { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; }
.post-content ul, .post-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: .4rem; }
.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-family: var(--font-sans); font-size: .7rem; padding: .28rem .65rem; border: 1px solid var(--light-border); color: var(--muted); text-decoration: none; letter-spacing: .05em; transition: background .2s, color .2s, border-color .2s; }
.tag:hover { background: var(--ink); color: var(--card-bg); border-color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--light-border); border-bottom: 1px solid var(--light-border); padding: 1.5rem 0; margin: 2.5rem 0; gap: 1rem; transition: border-color .35s; }
.post-nav a { font-family: var(--font-sans); font-size: .8rem; color: var(--ink); text-decoration: none; max-width: 48%; transition: color .2s; }
.post-nav a:hover { color: var(--accent); }
.post-nav .prev::before { content: '← '; }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav .next::after { content: ' →'; }

/* ── COMMENTS ── */
.comments-section { margin-top: 3rem; }
.comments-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; transition: border-color .35s; }
.comment { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--light-border); transition: border-color .35s; }
.comment:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--card-bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 700; font-size: .95rem; flex-shrink: 0; transition: background .35s; }
.comment-body { flex: 1; }
.comment-meta { font-family: var(--font-sans); font-size: .76rem; color: var(--muted); margin-bottom: .4rem; }
.comment-meta strong { color: var(--ink); }
.comment-text { font-size: .93rem; color: var(--ink); }
.comment-form { background: var(--card-bg); border: 1px solid var(--light-border); padding: 1.75rem; margin-top: 2rem; transition: background .35s, border-color .35s; }
.comment-form h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .65rem .9rem; border: 1px solid var(--light-border);
  font-family: var(--font-serif); font-size: .95rem; color: var(--ink);
  background: var(--cream); outline: none; transition: border-color .2s, background .35s, color .35s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); background: var(--card-bg); }
.form-group textarea { min-height: 120px; resize: vertical; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.35rem; font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: none; cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--card-bg); }
.btn-dark:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--light-border); }
.btn-outline:hover { background: var(--ink); color: var(--card-bg); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget { background: var(--card-bg); border: 1px solid var(--light-border); padding: 1.35rem; transition: background .35s, border-color .35s; }
.widget-title { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1rem; transition: border-color .35s, color .35s; }
.widget ul { list-style: none; }
.widget li { padding: .38rem 0; border-bottom: 1px solid var(--light-border); font-size: .88rem; transition: border-color .35s; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--ink); text-decoration: none; transition: color .2s; }
.widget li a:hover { color: var(--accent); }
.about-widget img { width: 100%; height: 130px; object-fit: cover; margin-bottom: .9rem; filter: grayscale(15%); }
.about-widget p { font-size: .86rem; color: var(--muted); }
.search-box { display: flex; border: 1px solid var(--light-border); overflow: hidden; transition: border-color .35s; }
.search-box input { flex: 1; border: none; padding: .5rem .8rem; font-family: var(--font-sans); font-size: .85rem; background: var(--cream); outline: none; color: var(--ink); transition: background .35s, color .35s; }
.search-box button { background: var(--ink); border: none; padding: 0 .85rem; cursor: pointer; color: var(--card-bg); font-size: 1rem; transition: background .35s; }
.search-box button:hover { background: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a, .pagination span { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--light-border); color: var(--ink); text-decoration: none; transition: background .2s, color .2s, border-color .35s; }
.pagination a:hover, .pagination .current { background: var(--ink); color: var(--card-bg); border-color: var(--ink); }

/* ── FOOTER ── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.45); text-align: center; padding: 2rem 1.5rem; font-family: var(--font-sans); font-size: .78rem; transition: background .35s; }
.site-footer strong { color: rgba(255,255,255,.8); }
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ── ARCHIVE ── */
.archive-header { grid-column: 1/-1; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; margin-bottom: .5rem; transition: border-color .35s; }
.archive-header h1 { font-family: var(--font-display); font-size: 2rem; }
.archive-header p { color: var(--muted); font-size: .93rem; margin-top: .3rem; }

/* ── LOGIN PAGE ── */
body.login-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg,rgba(20,16,12,.88),rgba(192,57,43,.35)), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1400&q=80') center/cover no-repeat fixed; }
body.login-page .site-footer { display: none; }
.login-card { background: rgba(249,245,239,.97); width: 100%; max-width: 420px; margin: 1.5rem; padding: 2.75rem 2.25rem; border-top: 4px solid var(--accent); box-shadow: 0 24px 80px rgba(0,0,0,.4); animation: fadeUp .5s ease both; transition: border-color .35s; }
.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 5vw, 2.2rem);
  white-space: nowrap;
  overflow: visible;
  display: block;
  width: 100%;
  text-align: center;
  transform-origin: center center;
}
.login-logo p  { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.divider { height: 1px; background: linear-gradient(90deg,transparent,var(--accent) 30%,var(--accent) 70%,transparent); margin: 0 auto 1.75rem; width: 60%; opacity: .4; transition: background .35s; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: .4rem 0 1.3rem; font-size: .82rem; }
.form-options label { display: flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--muted); font-family: var(--font-sans); }
.form-options a { color: var(--accent); text-decoration: none; font-family: var(--font-sans); }
.back-link { text-align: center; margin-top: 1.3rem; font-size: .8rem; color: var(--muted); font-family: var(--font-sans); }
.back-link a { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg); flex-direction: column; gap: 0; padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .7rem 1.5rem; }
  .post-card { grid-template-columns: 1fr; }
  .card-thumb { aspect-ratio: 16/9; }
  .form-row { grid-template-columns: 1fr; }
  .site-wrap, .page-wrap { padding: 2rem 1rem 3rem; }
}
