:root {
  --bg: #f3ecdf;
  --bg-soft: rgba(255, 250, 243, 0.78);
  --panel: rgba(255, 252, 247, 0.88);
  --text: #17120f;
  --muted: #6c5f56;
  --accent: #b61d18;
  --line: rgba(23, 18, 15, 0.1);
  --shadow: 0 24px 60px rgba(66, 34, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(182, 29, 24, 0.12), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(0, 0, 0, 0.07), transparent 20%),
    linear-gradient(180deg, #faf4ea 0%, var(--bg) 45%, #ecdcc7 100%);
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.77), rgba(255, 248, 238, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 100%;
}

.hero__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.72;
}

.hero__glow--left {
  top: -120px;
  left: -120px;
  background: rgba(182, 29, 24, 0.12);
}

.hero__glow--right {
  right: -120px;
  bottom: -120px;
  background: rgba(0, 0, 0, 0.08);
}

.eyebrow,
.section-tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__logo {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.hero__topline {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(420px, 1fr);
  gap: 34px;
  align-items: start;
}

.hero__logo-wrap {
  align-self: stretch;
}

.hero__intro {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 14px 0 8px;
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 5.1vw, 4.7rem);
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.hero__lead {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.hero__text,
.summary-card p,
.feed-header__text,
.post__text p,
.post__empty {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero__text {
  max-width: 34rem;
  font-size: 1.05rem;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff7f5;
  background: linear-gradient(135deg, #9b1d18, #cb2f26);
}

.hero__footer {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(420px, 1fr);
  gap: 18px;
  padding-top: 6px;
  border-top: 1px solid rgba(23, 18, 15, 0.08);
}

.hero__note {
  grid-column: 2;
  margin: 0;
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero__footer .hero__link {
  grid-column: 2;
  justify-self: start;
}

.content {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

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

.summary-card,
.feed-header,
.post-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-soft);
  box-shadow: 0 12px 32px rgba(54, 28, 15, 0.05);
}

.summary-card,
.feed-header {
  padding: 24px;
}

.summary-card {
  display: grid;
  gap: 12px;
}

.feed-header {
  display: grid;
  gap: 12px;
}

.posts {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 242, 0.94));
}

.post__meta {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.post__meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}

.post__meta-row a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.post__text {
  display: grid;
  gap: 14px;
}

.post__empty {
  font-style: italic;
}

.post__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.post__gallery--single {
  grid-template-columns: 1fr;
}

.post__photo-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #efe2d2;
}

.post__photo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post__photo-link:hover .post__photo {
  transform: scale(1.03);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .summary-card,
  .feed-header,
  .post-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .hero__topline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .hero__note,
  .hero__footer .hero__link {
    grid-column: auto;
  }

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

  .hero__logo {
    width: 100%;
  }

  .post__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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