/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg:           #0d0d0d;
  --bg-secondary: #141414;
  --text:         #f0ebe3;
  --text-muted:   #a09890;
  --accent:       #c9a96e;
  --accent-hover: #dbbe85;
  --max-width:    780px;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* ── Header / Nav ────────────────────────────────────────────────────────── */
.site-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.site-logo-img {
  height: 3rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) sepia(0.12) saturate(0.85);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-list li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-list li a:hover,
.nav-list li a.nav-current {
  color: var(--accent);
}

/* ── Main content ────────────────────────────────────────────────────────── */
.site-main {
  flex: 1;
  padding: 4rem 2rem;
}

/* ── Home ────────────────────────────────────────────────────────────────── */
.home-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-cover {
  margin-bottom: 3rem;
}

.site-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 2px;
}

.site-intro {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.site-title {
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.site-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Post feed ───────────────────────────────────────────────────────────── */
.post-feed {
  display: grid;
  gap: 3rem;
}

.post-card {
  display: grid;
  gap: 1.5rem;
}

.post-card:not(:last-child) {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.post-card-image-link img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity 0.3s;
}

.post-card-image-link:hover img {
  opacity: 0.85;
}

.post-card-content-link {
  color: inherit;
  text-decoration: none;
}

.post-card-title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: color 0.2s;
}

.post-card-content-link:hover .post-card-title {
  color: var(--accent);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.post-card-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Post / Page ─────────────────────────────────────────────────────────── */
.post-container,
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-feature-image,
.page-feature-image {
  margin-bottom: 3rem;
}

.post-feature-image img,
.page-feature-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2px;
}

.post-header,
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.post-title,
.page-title {
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Content body ────────────────────────────────────────────────────────── */
.gh-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.gh-content p {
  margin-bottom: 1.5em;
}

.gh-content h2 {
  font-size: 1.9rem;
  margin: 2.5em 0 0.75em;
  color: var(--accent);
}

.gh-content h3 {
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
  color: var(--text);
}

.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 0 0.5em 1.5em;
  margin: 2em 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.15rem;
}

.gh-content figure {
  margin: 2.5em 0;
}

.gh-content figure img {
  border-radius: 2px;
}

.gh-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5em;
  font-style: italic;
}

.gh-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
}

.gh-content a:hover {
  border-bottom-color: var(--accent);
}

.gh-content ul,
.gh-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.gh-content li {
  margin-bottom: 0.5em;
}

.gh-content hr {
  border: none;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  margin: 3em 0;
}

.gh-content pre {
  background: var(--bg-secondary);
  padding: 1.5em;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9rem;
}

.gh-content code {
  background: var(--bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.gh-content pre code {
  background: none;
  padding: 0;
}

/* ── Post tags ───────────────────────────────────────────────────────────── */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: 0.25em 0.75em;
  border-radius: 2px;
  transition: all 0.2s;
}

.post-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ── Koenig card widths ──────────────────────────────────────────────────── */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 2rem);
  margin-right: calc(50% - 50vw + 2rem);
  max-width: calc(100vw - 4rem);
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-title {
    font-size: 2rem;
  }

  .post-title,
  .page-title {
    font-size: 1.9rem;
  }

  .site-main {
    padding: 2.5rem 1.5rem;
  }
}
