:root {
  --bg: #f3eee5;
  --bg-accent: #f7d8ae;
  --surface: rgba(255, 252, 247, 0.72);
  --surface-strong: #fffaf2;
  --text: #1e1b18;
  --muted: #62584f;
  --line: rgba(30, 27, 24, 0.1);
  --shadow: 0 30px 70px rgba(91, 68, 47, 0.14);
  --highlight: #c15d2a;
  --highlight-dark: #8f3f17;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 30%),
    radial-gradient(circle at top right, rgba(241, 186, 120, 0.45), transparent 22%),
    linear-gradient(135deg, #f4eee3 0%, #f2e1c6 48%, #eed9cf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.9), rgba(255, 248, 241, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 214, 157, 0.12));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 202, 130, 0.8), rgba(255, 202, 130, 0));
  opacity: 0.8;
}

.eyebrow,
.section-label,
.post-meta,
.feature-tag {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--highlight-dark);
}

.nav {
  display: flex;
  gap: 18px;
  margin: 18px 0 52px;
  flex-wrap: wrap;
}

.nav a,
.feature-card a {
  color: var(--text);
  text-decoration: none;
}

.nav a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--highlight-dark);
  border-color: rgba(143, 63, 23, 0.35);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
}

.hero-text,
.about-text,
.feature-card p,
.post-card p,
.note-card p {
  line-height: 1.7;
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.feature-grid,
.post-list,
.note-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.feature-card,
.posts,
.notes,
.about {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
}

.feature-card--highlight {
  background:
    linear-gradient(180deg, rgba(255, 247, 231, 0.95), rgba(255, 235, 214, 0.84)),
    var(--surface);
}

.feature-tag,
.section-label,
.post-meta {
  color: var(--highlight-dark);
}

.feature-card h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 12px;
}

.feature-card p {
  margin: 14px 0 20px;
}

.feature-card a {
  font-weight: 800;
  color: var(--highlight-dark);
}

.posts,
.notes,
.about {
  padding: 28px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

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

.post-card,
.note-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(30, 27, 24, 0.08);
}

.post-card h3 {
  font-size: 1.9rem;
  margin: 10px 0 16px;
}

.post-meta {
  margin: 0;
}

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

.note-card strong {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--highlight);
  font-size: 1.6rem;
}

.about-text {
  max-width: 64ch;
  margin: 0;
  font-size: 1.05rem;
}

@media (max-width: 960px) {
  .feature-grid,
  .post-list,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  .posts,
  .notes,
  .about,
  .feature-card {
    padding: 22px;
  }
}

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

  h1 {
    font-size: clamp(2.8rem, 18vw, 4rem);
  }

  .feature-card h2,
  .section-heading h2,
  .post-card h3 {
    font-size: 2rem;
  }

  .nav {
    gap: 14px;
    margin-bottom: 32px;
  }
}
