:root {
  --ink: #20231d;
  --surface: #f4efe6;
  --text: #f7f1e4;
  --muted: rgba(247, 241, 228, 0.62);
  --line: rgba(217, 193, 137, 0.18);
  --gold: #d9c189;
  --blue: #254f96;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 193, 137, 0.08), transparent 34rem),
    var(--ink);
  color: var(--text);
  font-weight: 760;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 64px);
  color: rgba(247, 241, 228, 0.9);
  transition: background 220ms ease, backdrop-filter 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(32, 35, 29, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-meta,
.site-menu a,
.site-name {
  font-size: 0.78rem;
  font-weight: 920;
  text-transform: uppercase;
}

.site-name {
  letter-spacing: 0;
}

.site-name img {
  max-height: 28px;
  width: auto;
}

.site-menu {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
}

.site-menu ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu li {
  margin: 0;
}

.site-menu a:last-child {
  color: var(--gold);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}

.site-main {
  padding: clamp(120px, 13vw, 172px) clamp(18px, 5vw, 72px) 0;
}

.journal-hero {
  min-height: 58svh;
  display: grid;
  align-content: end;
  gap: clamp(18px, 2vw, 28px);
  padding-bottom: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.journal-hero.compact {
  min-height: 36svh;
}

.section-label {
  margin: 0;
  color: rgba(247, 241, 228, 0.62);
  font-size: 0.9rem;
  font-weight: 920;
}

.journal-hero h1,
.post-header h1 {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 8vw, 8.6rem);
  line-height: 0.86;
}

.journal-hero p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(42px, 6vw, 78px) 0;
}

.post-card a {
  min-height: clamp(420px, 55vw, 680px);
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(247, 241, 228, 0.035);
}

.post-card a::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66)),
    linear-gradient(135deg, rgba(217, 193, 137, 0.18), transparent 38%);
}

.post-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 520ms ease;
}

.post-card a:hover img {
  transform: scale(1.045);
  filter: saturate(0.78) contrast(1.12) blur(1px);
}

.post-card div {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.post-card time,
.post-meta {
  color: var(--gold);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
}

.post-card h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 5.6rem);
  line-height: 0.86;
}

.post-card p {
  max-width: 360px;
  margin: 0;
  color: rgba(247, 241, 228, 0.7);
  line-height: 1.45;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-bottom: 64px;
  color: var(--muted);
}

.post-main {
  padding-right: 0;
  padding-left: 0;
}

.post-full {
  display: grid;
  gap: clamp(34px, 5vw, 70px);
}

.post-header {
  display: grid;
  gap: 22px;
  padding: clamp(120px, 13vw, 172px) clamp(18px, 5vw, 72px) 0;
}

.post-meta {
  display: flex;
  gap: 18px;
}

.post-feature {
  margin: 0;
}

.post-feature img {
  width: 100%;
  max-height: 86svh;
  object-fit: cover;
}

.post-feature figcaption {
  padding: 12px clamp(18px, 5vw, 72px) 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.post-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto clamp(72px, 10vw, 120px);
  color: rgba(247, 241, 228, 0.84);
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  font-weight: 620;
  line-height: 1.72;
}

.post-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.post-content h2,
.post-content h3 {
  color: var(--text);
  line-height: 1;
}

.post-content blockquote {
  margin-right: 0;
  margin-left: 0;
  padding-left: 24px;
  border-left: 1px solid var(--gold);
  color: var(--text);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.18;
}

.kg-image-card img,
.kg-gallery-image img {
  border-radius: 8px;
}

.kg-width-wide {
  width: min(1120px, calc(100vw - 36px));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

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

.kg-width-full img {
  width: 100%;
  border-radius: 0;
}

.kg-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px) 44px;
  border-top: 1px solid var(--line);
  color: rgba(247, 241, 228, 0.72);
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 900;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    text-align: center;
  }

  .nav-meta {
    display: none;
  }

  .site-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-main {
    padding-top: 122px;
  }

  .journal-hero {
    min-height: 50svh;
  }

  .journal-hero h1,
  .post-header h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 4.15rem);
    line-height: 0.92;
    overflow-wrap: break-word;
  }

  .journal-hero h1 {
    max-width: 8.8ch;
  }

  .journal-hero p:last-child {
    max-width: 31ch;
    overflow-wrap: break-word;
  }

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

  .post-card a {
    min-height: 480px;
  }

  .post-card h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .post-header {
    padding-top: 130px;
  }

  .site-footer {
    grid-template-columns: 1fr auto auto;
    gap: 18px;
  }

  .kg-width-wide {
    width: calc(100vw - 36px);
  }
}
