:root {
  --ink: #fff8f0;
  --muted: rgba(255, 248, 240, 0.74);
  --soft: rgba(255, 248, 240, 0.55);
  --line: rgba(255, 248, 240, 0.18);
  --accent: #e29483;
  --accent-strong: #f2b7a8;
  --wine: #7b2d36;
  --night: #120f0d;
  --panel: rgba(18, 15, 13, 0.58);
  --shadow: rgba(18, 15, 13, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--night);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-color: var(--night);
  background-image: image-set(url("/assets/gala-hero-20260525.webp") type("image/webp"), url("/assets/gala-hero-20260525.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 68% center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.98) 0%, rgba(18, 15, 13, 0.72) 45%, rgba(18, 15, 13, 0.08) 100%),
    linear-gradient(0deg, rgba(18, 15, 13, 0.86) 0%, rgba(18, 15, 13, 0.12) 72%);
  pointer-events: none;
}

a {
  color: inherit;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 28px 0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 2px 18px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: rgba(255, 248, 240, 0.34);
}

.journal-hero {
  min-height: 46vh;
  display: grid;
  align-content: end;
  padding: 72px 0 54px;
  text-shadow: 0 2px 24px var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(226, 148, 131, 0.46);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 6.8rem);
  line-height: 0.96;
}

.lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.posts {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding: 0 0 80px;
}

.post-card {
  position: relative;
  min-height: 420px;
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 15, 13, 0.44);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.post-card.featured {
  grid-column: span 8;
  min-height: 560px;
}

.post-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 260ms ease, opacity 260ms ease;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(18, 15, 13, 0.94) 0%, rgba(18, 15, 13, 0.66) 38%, rgba(18, 15, 13, 0.08) 100%),
    linear-gradient(90deg, rgba(18, 15, 13, 0.38), rgba(18, 15, 13, 0));
}

.post-card:hover img {
  transform: scale(1.045);
  opacity: 0.92;
}

.post-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 26px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.88rem;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(242, 183, 168, 0.34);
  border-radius: 999px;
  padding: 0 10px;
  color: #ffd8cf;
  background: rgba(123, 45, 54, 0.2);
}

.post-card h2 {
  margin: 0;
  font-size: clamp(1.62rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.post-card p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.empty-journal {
  grid-column: 1 / -1;
  min-height: 360px;
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.empty-journal h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
}

.empty-journal p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.empty-journal .button {
  justify-self: start;
}

.article-hero {
  min-height: 44vh;
  display: grid;
  align-items: end;
  padding: 32px 0 14px;
}

.article-hero-media {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.98) 0%, rgba(18, 15, 13, 0.76) 48%, rgba(18, 15, 13, 0.16) 100%),
    linear-gradient(0deg, rgba(18, 15, 13, 0.96) 0%, rgba(18, 15, 13, 0.18) 74%);
}

.article-title {
  max-width: 900px;
}

.article-title h1 {
  font-size: clamp(3rem, 8.4vw, 6.5rem);
}

.article-title .lead {
  max-width: 680px;
  margin-top: 18px;
}

.article-body {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 26px;
}

.article-body > * {
  max-width: 780px;
}

.article-body p,
.article-body blockquote {
  color: rgba(255, 248, 240, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.75rem);
  line-height: 1.55;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body h2 {
  margin: 24px 0 10px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
}

.article-body h3 {
  margin: 22px 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.article-body blockquote {
  margin: 18px 0 20px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  color: #ffd8cf;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.gallery {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery a {
  grid-column: span 4;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 15, 13, 0.38);
}

.gallery a:first-child {
  grid-column: span 8;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: rgba(255, 248, 240, 0.52);
  font-size: 0.84rem;
  text-shadow: 0 2px 18px var(--shadow);
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 248, 240, 0.26);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: 999px;
  color: #160f0d;
  background: var(--accent-strong);
  box-shadow: 0 18px 42px rgba(123, 45, 54, 0.32);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-shell,
  .site-footer,
  .article-body,
  .gallery {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    padding-top: 20px;
  }

  .nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .journal-hero {
    min-height: 50vh;
    padding: 48px 0 40px;
  }

  .posts {
    display: block;
    padding-bottom: 54px;
  }

  .post-card,
  .post-card.featured {
    display: block;
    min-height: 460px;
    margin-bottom: 14px;
  }

  .article-hero {
    min-height: 58vh;
    padding: 40px 0 28px;
  }

  .gallery {
    display: block;
  }

  .gallery a,
  .gallery a:first-child {
    display: block;
    min-height: 420px;
    margin-bottom: 14px;
  }
}
