@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #050505;
  --surface: #101010;
  --surface-2: #171717;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #c5a786;
  --border: rgba(197, 167, 134, 0.18);
  --shadow: rgba(0, 0, 0, 0.45);
  --heading: "Cormorant Garamond", "Avenir Next", "Segoe UI", serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 167, 134, 0.13), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(197, 167, 134, 0.055), transparent 22rem),
    linear-gradient(180deg, #080808 0%, var(--bg) 42%);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.035) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.025) 0 1px, transparent 1px);
  background-size: 42px 42px, 58px 58px;
}

body::after {
  content: "";
  position: fixed;
  width: 34rem;
  height: 34rem;
  right: -14rem;
  top: 10rem;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(197, 167, 134, 0.08), transparent 68%);
  filter: blur(8px);
}

.site-shell {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; transition: color 0.25s ease, border-color 0.25s ease; }
a:hover { color: var(--accent); }

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

.site-header {
  padding: 42px 0 32px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  display: inline-block;
  font-family: var(--heading);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-description {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.gh-head-menu,
.nav {
  margin-top: 22px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent);
}

.site-main { padding: 56px 0; }

.hero {
  max-width: 760px;
  padding: 52px 0 74px;
  animation: fadeUp 0.75s ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.article-header h1 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

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

.post-card {
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: fadeUp 0.7s ease both;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 167, 134, 0.34);
  box-shadow: 0 30px 100px rgba(197, 167, 134, 0.13), 0 24px 80px var(--shadow);
}

.post-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #0b0b0b;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: contrast(1.06) brightness(0.88) saturate(0.92);
  transition: transform 0.55s ease, opacity 0.55s ease, filter 0.55s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.045);
  opacity: 0.95;
  filter: contrast(1.08) brightness(0.96) saturate(1);
}

.post-card-content { padding: 24px; }

.post-card time,
.article-meta {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.post-card h2 {
  margin: 10px 0 12px;
  font-family: var(--heading);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.article {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 0.75s ease both;
}

.article-header {
  margin-bottom: 34px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.article-image {
  margin: 0 0 54px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 90px var(--shadow);
  background: #080808;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.84;
  filter: contrast(1.06) brightness(0.9) saturate(0.94);
}

.article-content {
  color: rgba(242, 242, 242, 0.91);
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 52px 0 16px;
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.article-content h1 { font-size: clamp(34px, 5vw, 54px); }
.article-content h2 { font-size: 38px; }
.article-content h3 { font-size: 28px; }

.article-content p {
  margin: 0 0 32px;
}

.article-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(197, 167, 134, 0.45);
}

.article-content a:hover {
  border-color: rgba(197, 167, 134, 0.85);
}

.article-content blockquote {
  margin: 46px 0;
  padding: 8px 0 8px 26px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-content hr {
  margin: 52px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 56px;
  color: var(--muted);
}

.pagination a {
  color: var(--accent);
}

.site-footer {
  padding: 36px 0 54px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .site-header { padding-top: 28px; }
  .site-main { padding-top: 28px; }
  .hero { padding: 34px 0 46px; }
  .post-grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .site-title { font-size: 27px; }
  .post-card h2 { font-size: 29px; }
  .article { max-width: 100%; }
  .article-content h2 { font-size: 31px; }
  .article-content h3 { font-size: 25px; }
  .article-content blockquote { font-size: 24px; }
}

/* Ghost content width helpers required by theme validation */
.article-content .kg-width-wide {
  width: min(100vw - 40px, 1040px);
  max-width: 1040px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-wide img,
.article-content .kg-width-full img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content figure.kg-width-wide,
.article-content figure.kg-width-full {
  margin-top: 42px;
  margin-bottom: 42px;
}

.article-content .kg-width-full img {
  border-radius: 0;
}
