:root {
  --dark: #050505;
  --dark-2: #111111;
  --panel: #151515;
  --line: #333333;
  --accent: #b89a73;
  --accent-2: #6d5640;
  --text: #f2eee8;
  --muted: #b7b0a4;

  --light-bg: #f4f1eb;
  --light-panel: #ffffff;
  --light-line: #ddd6cc;
  --light-text: #211c17;
  --light-muted: #6f6559;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  background: var(--dark);
  color: var(--text);
}

a {
  color: inherit;
}

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

main {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* ---------------------------------
   HOME PAGE
--------------------------------- */

.home-page {
  background: var(--light-bg);
  color: var(--light-text);
}

.home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(rgba(18, 28, 42, 0.14), rgba(0, 0, 0, 0.24)),
    url("/assets/images/hero-charger.jpg");
  background-size: cover;
  background-position: center center;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.home-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 28px 20px;
}

.home-nav a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 1.15rem;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}

.home-nav a:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 40px));
  padding: 130px 0 110px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}

.home-hero h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-divider {
  width: 180px;
  max-width: 40%;
  margin: 24px auto;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-kicker {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  color: rgba(255, 255, 255, 0.96);
}

.hero-down {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: #ffffff;
  text-decoration: none;
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.9;
}

.home-main {
  width: 100%;
  margin: 0;
  padding: 84px 0 110px;
  background: var(--light-bg);
  color: var(--light-text);
}

.home-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.home-section {
  margin-bottom: 88px;
}

.section-eyebrow {
  margin: 0 0 12px;
  color: #8c7862;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: bold;
}

.home-section h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--light-text);
}

.section-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.section-copy {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: 1.14rem;
  color: #4a433a;
}

.feature-panel {
  background: var(--light-panel);
  border: 1px solid var(--light-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 26px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.feature-list li {
  padding-top: 14px;
  border-top: 1px solid var(--light-line);
}

.feature-list strong {
  display: block;
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--light-text);
}

.feature-list span {
  display: block;
  color: var(--light-muted);
  font-size: 1rem;
}

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

.latest-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--light-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.latest-date {
  margin: 0 0 10px;
  color: #7b6f62;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.latest-card h3 {
  margin: 0 0 18px;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 400;
}

.latest-card h3 a {
  color: var(--light-text);
  text-decoration: none;
}

.latest-card h3 a:hover {
  color: var(--accent-2);
}

.read-more {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--light-line);
}

.archive-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-line);
}

.archive-list a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.15rem;
}

.archive-list a:hover {
  color: var(--accent-2);
}

.archive-list span {
  color: #7b6f62;
  white-space: nowrap;
}

/* ---------------------------------
   POST PAGES
--------------------------------- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid #222;
  padding: 12px 0;
  text-align: center;
}

.top-nav a {
  display: inline-block;
  margin: 0 14px;
  color: #ffb347;
  font-weight: bold;
  text-decoration: none;
}

.top-nav a:hover {
  color: #ffd28a;
  text-decoration: underline;
}

.post-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.88)),
    #050505;
  border-bottom: 4px solid #d15b22;
}

.hero-inner {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffb347;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: bold;
}

.post-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

.hero-text {
  margin: 18px 0 0;
  color: #dddddd;
  font-size: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #ffb347;
}

.post-content {
  background: #151515;
  border: 1px solid #333;
  padding: 28px;
}

.post-content p {
  max-width: 850px;
}

article img {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 28px auto;
  border: 1px solid #333;
  background: #222;
}

/* ---------------------------------
   FOOTERS
--------------------------------- */

.site-footer {
  border-top: 1px solid #333;
  background: #050505;
  color: #aaa;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 4px 0;
}

.light-footer {
  background: #f1eee9;
  color: #665d52;
  border-top: 1px solid var(--light-line);
}

/* ---------------------------------
   RESPONSIVE
--------------------------------- */

@media (max-width: 980px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .latest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-list li {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 720px) {
  .home-nav {
    gap: 22px;
    flex-wrap: wrap;
    padding: 18px 16px;
  }

  .home-nav a {
    font-size: 1rem;
  }

  .home-hero {
    min-height: 90svh;
    background-position: center;
  }

  .home-hero-inner {
    padding: 120px 0 90px;
  }

  .home-section {
    margin-bottom: 64px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner,
  main {
    width: min(1000px, calc(100% - 24px));
  }
}

@media (max-width: 560px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* Hero subtitle cleanup */
.hero-kicker {
  display: inline-block;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: 0;
  word-spacing: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
  white-space: normal;
}

.home-hero h1 {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest posts polish */
.latest-grid {
  align-items: stretch;
}

.latest-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.latest-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
}

.latest-card:hover {
  transform: translateY(-4px);
  border-color: #c9b89f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.11);
}

.latest-date {
  color: #8c7862;
  font-size: 0.78rem;
  font-weight: bold;
}

.latest-card h3 {
  font-size: 1.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 18px;
}

/* Full archive polish */
.archive-section {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--light-line);
  padding: 34px;
}

.archive-list li {
  align-items: baseline;
  transition: background 160ms ease, padding-left 160ms ease;
}

.archive-list li:hover {
  background: rgba(184, 154, 115, 0.08);
  padding-left: 10px;
}

.archive-list a {
  font-size: 1.08rem;
}

.archive-list span {
  font-size: 0.95rem;
}

/* Polished post page style */
.post-page {
  background: var(--light-bg);
  color: var(--light-text);
}

.post-nav {
  position: sticky;
  background: rgba(20, 18, 16, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.entry-hero {
  background:
    linear-gradient(rgba(244, 241, 235, 0.90), rgba(244, 241, 235, 0.96)),
    url("/assets/images/hero-charger.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--light-line);
}

.entry-hero-inner {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 72px;
  text-align: center;
}

.entry-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--light-text);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.entry-date {
  margin: 22px 0 0;
  color: var(--light-muted);
  font-size: 1.15rem;
}

.entry-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.entry-back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: bold;
}

.entry-back-link:hover {
  text-decoration: underline;
}

.entry-content {
  background: #ffffff;
  border: 1px solid var(--light-line);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
  padding: clamp(24px, 5vw, 52px);
  font-size: 1.08rem;
  color: #322b24;
}

.entry-content p {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content strong {
  color: #1d1813;
}

.entry-content img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin: 32px auto;
  border: 1px solid var(--light-line);
  background: #eee9e2;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}