:root {
  --ink: #1b1b18;
  --muted: #706d64;
  --line: #e7e0d4;
  --paper: #fffaf0;
  --cream: #f4efe4;
  --sage: #5d725a;
  --sage-dark: #2f4b3c;
  --clay: #ba6848;
  --amber: #d89945;
  --blue: #2d5c75;
  --shadow: 0 22px 70px rgba(62, 47, 31, 0.14);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbf7ee 0%, #f6f1e8 48%, #eef2eb 100%);
  color: var(--ink);
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 238, 0.82);
  border-bottom: 1px solid rgba(231, 224, 212, 0.8);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav,
.hero-actions,
.meta,
.tags {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 750;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(135deg, var(--sage), var(--blue));
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  height: 28px;
  width: 28px;
}

.nav {
  color: var(--muted);
  font-size: 14px;
  gap: 18px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 10px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(93, 114, 90, 0.1);
  color: var(--sage-dark);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  min-height: calc(100vh - 72px);
  padding: clamp(32px, 5vw, 76px) clamp(20px, 5vw, 72px) 42px;
}

.hero-media {
  min-height: 520px;
  order: 2;
  position: relative;
}

.paper-scene {
  background:
    linear-gradient(180deg, rgba(28, 25, 18, 0.02), rgba(28, 25, 18, 0.2)),
    url("hero-journal.png") center / cover,
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.8) 0 9%, transparent 10%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, #e8d6bc, #f8f2e8 48%, #c7d1bd);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: min(72vh, 620px);
  min-height: 500px;
  overflow: hidden;
  position: sticky;
  top: 104px;
}

.paper-scene::before {
  background:
    linear-gradient(78deg, rgba(65, 91, 55, 0.24) 0 8%, transparent 8% 16%) 0 0 / 160px 160px,
    radial-gradient(ellipse at center, rgba(65, 91, 55, 0.22), transparent 62%);
  content: "";
  filter: blur(1px);
  height: 72%;
  left: 12%;
  opacity: 0.18;
  position: absolute;
  top: -8%;
  transform: rotate(-11deg);
  width: 86%;
}

.sun {
  background: rgba(255, 244, 197, 0.32);
  border-radius: 999px;
  filter: blur(12px);
  height: 150px;
  left: -38px;
  position: absolute;
  top: -32px;
  width: 150px;
}

.book {
  background:
    linear-gradient(94deg, transparent 0 48%, rgba(79, 63, 49, 0.14) 49%, transparent 51%),
    linear-gradient(100deg, #fffdf5, #eee2ce);
  border-radius: 8px 8px 18px 18px;
  bottom: 86px;
  box-shadow: 0 30px 48px rgba(59, 44, 31, 0.24);
  height: 190px;
  left: 17%;
  position: absolute;
  transform: rotate(-5deg);
  width: 62%;
}

.book::after {
  background: linear-gradient(90deg, #9a755b, #d0a070);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 45%;
  position: absolute;
  top: 58%;
  transform: rotate(-18deg);
  width: 96px;
}

.tea {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 235, 161, 0.75) 0 18%, #bb7130 19% 48%, transparent 49%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px 999px 44px 44px;
  box-shadow: 0 18px 36px rgba(87, 51, 21, 0.22);
  height: 116px;
  left: 11%;
  position: absolute;
  top: 41%;
  width: 88px;
}

.plant {
  background: var(--sage);
  border-radius: 100% 0;
  height: 84px;
  opacity: 0.18;
  position: absolute;
  width: 30px;
}

.plant-a {
  right: 16%;
  top: 14%;
  transform: rotate(42deg);
}

.plant-b {
  right: 24%;
  top: 20%;
  transform: rotate(-32deg);
}

.hero-copy {
  align-self: center;
  max-width: 740px;
  padding-bottom: 34px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  margin-bottom: 16px;
}

.hero-copy p:not(.eyebrow),
.page-title p,
.about p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  border: 1px solid rgba(47, 75, 60, 0.18);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
}

.button.primary {
  background: var(--sage-dark);
  color: #fffdf6;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--sage-dark);
}

.section,
.page-title {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section.compact {
  padding-top: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

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

.post-card {
  background: rgba(255, 253, 246, 0.78);
  border: 1px solid rgba(231, 224, 212, 0.95);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(62, 47, 31, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.post-card:hover {
  box-shadow: 0 22px 56px rgba(62, 47, 31, 0.14);
  transform: translateY(-3px);
}

.post-thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 153, 69, 0.55), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(45, 92, 117, 0.3), transparent 20%),
    linear-gradient(135deg, #efe2cb, #c9d4c1);
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  gap: 10px;
  margin-bottom: 14px;
}

.post-card h3 {
  font-size: 23px;
  line-height: 1.18;
  margin-bottom: 12px;
}

.post-card p {
  color: var(--muted);
  line-height: 1.58;
}

.tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.tag {
  background: rgba(93, 114, 90, 0.12);
  border-radius: 999px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
}

.flow {
  display: grid;
  gap: 12px;
}

.flow div {
  align-items: center;
  background: rgba(255, 253, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 160px minmax(0, 1fr);
  padding: 18px;
}

.flow span {
  color: var(--muted);
}

.about {
  background: var(--sage-dark);
  color: #fffdf6;
}

.about .eyebrow,
.about p {
  color: rgba(255, 253, 246, 0.78);
}

.page-title {
  padding-bottom: 46px;
}

.page-title h1 {
  font-size: clamp(42px, 7vw, 84px);
}

.empty {
  background: rgba(255, 253, 246, 0.76);
  border: 1px dashed rgba(112, 109, 100, 0.42);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.7;
  padding: 28px;
}

.article {
  margin: 0 auto;
  max-width: 820px;
  padding: clamp(48px, 8vw, 96px) 20px;
}

.article h1 {
  font-size: clamp(40px, 7vw, 76px);
}

.article-content {
  color: #302f2a;
  font-size: 19px;
  line-height: 1.78;
}

.article-content h2,
.article-content h3 {
  margin-top: 48px;
}

.article-content img {
  border-radius: 8px;
  display: block;
  margin: 32px 0;
  max-width: 100%;
}

.article-content blockquote {
  border-left: 4px solid var(--clay);
  color: var(--muted);
  margin: 28px 0;
  padding-left: 18px;
}

.article-content pre {
  background: #25241f;
  border-radius: 8px;
  color: #fff8e8;
  overflow-x: auto;
  padding: 18px;
}

.footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

@media (max-width: 880px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
    order: 0;
  }

  .paper-scene {
    height: 360px;
    min-height: 360px;
    position: relative;
    top: auto;
  }

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

  .flow div {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .section,
  .page-title {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 44px;
  }
}
