:root {
  --bg: #f7efe2;
  --paper: #fffaf0;
  --paper-deep: #eee0c8;
  --ink: #2b221b;
  --muted: #766759;
  --line: #cdbb9c;
  --green: #426f52;
  --blue: #377987;
  --rose: #b85b63;
  --gold: #c3922f;
  --orange: #cf6947;
  --shadow: 0 24px 70px rgba(47, 36, 29, .13);
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(195, 146, 47, .13), transparent 18rem),
    radial-gradient(circle at 92% 8%, rgba(55, 121, 135, .12), transparent 17rem),
    linear-gradient(90deg, rgba(43, 34, 27, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(43, 34, 27, .03) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  font-family: var(--sans);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(43, 34, 27, .14);
  background: rgba(247, 239, 226, .84);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(43, 34, 27, .72);
  font-size: 14px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nav-links a:hover {
  border-color: rgba(43, 34, 27, .18);
  background: rgba(255, 250, 240, .75);
  color: var(--ink);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 64px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(43, 34, 27, .13);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 650px;
  padding: clamp(28px, 5vw, 56px);
  align-content: space-between;
  gap: 48px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 250, 240, .84), transparent 19rem),
    linear-gradient(180deg, rgba(255, 250, 240, .18), rgba(247, 239, 226, .82));
}

.eyebrow,
.hand {
  color: var(--orange);
  font-family: "Bradley Hand", "Comic Sans MS", "Kaiti SC", cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.hero h1 {
  max-width: 780px;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(76px, 14vw, 152px);
  line-height: .82;
  letter-spacing: -1px;
}

.motto-note {
  position: absolute;
  top: 44px;
  right: clamp(24px, 5vw, 56px);
  max-width: 260px;
  rotate: 2deg;
  border: 1px solid rgba(43, 34, 27, .16);
  border-radius: 18px;
  background: rgba(255, 250, 240, .86);
  padding: 16px;
  box-shadow: 0 12px 24px rgba(43, 34, 27, .08);
}

.motto-note strong {
  display: block;
  color: var(--blue);
  font-family: "Bradley Hand", "Comic Sans MS", "Kaiti SC", cursive;
  font-size: 31px;
  line-height: 1.05;
}

.motto-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .62fr);
  gap: 32px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: rgba(43, 34, 27, .78);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.75;
}

.legend {
  border: 1px solid rgba(43, 34, 27, .14);
  border-radius: 20px;
  background: rgba(255, 250, 240, .82);
  padding: 18px;
}

.legend-title {
  margin: 0 0 12px;
  color: var(--rose);
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.section {
  margin-top: 70px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 76px);
  line-height: .95;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
}

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

.garden-card,
.note-card,
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 240, .86);
  box-shadow: 0 14px 34px rgba(47, 36, 29, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.garden-card:hover,
.note-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 20px 42px rgba(47, 36, 29, .12);
}

.garden-card {
  min-height: 230px;
  padding: 24px;
}

.garden-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--accent, var(--green));
}

.garden-index {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(43, 34, 27, .15);
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 800;
}

.garden-card h3,
.note-card h3,
.project-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.garden-card p {
  max-width: 430px;
  margin: 18px 0 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  gap: 28px;
}

.stack {
  display: grid;
  gap: 16px;
}

.note-card,
.project-card {
  display: block;
  padding: 22px;
}

.meta {
  margin-bottom: 8px;
  color: var(--orange);
  font-family: "Bradley Hand", "Comic Sans MS", "Kaiti SC", cursive;
  font-size: 23px;
  font-weight: 800;
}

.clover {
  display: inline-block;
  margin-right: 8px;
  color: var(--green);
  transition: transform .18s ease;
}

.note-card:hover .clover {
  transform: rotate(14deg);
}

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

.tag {
  border: 1px solid rgba(43, 34, 27, .13);
  border-radius: 999px;
  background: rgba(238, 224, 200, .5);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  align-items: start;
}

.article {
  max-width: 760px;
}

.article h1 {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 96px);
  line-height: .9;
}

.article h2 {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: 36px;
}

.article p,
.article li {
  color: rgba(43, 34, 27, .82);
  font-size: 18px;
  line-height: 1.9;
}

.article blockquote {
  margin: 34px 0;
  border-left: 8px solid var(--gold);
  background: rgba(255, 250, 240, .68);
  padding: 18px 22px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.55;
}

.toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 240, .88);
  padding: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-family: "Bradley Hand", "Comic Sans MS", "Kaiti SC", cursive;
  font-size: 26px;
}

.toc a {
  display: block;
  border-left: 2px solid rgba(43, 34, 27, .15);
  padding: 7px 0 7px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.toc a:hover {
  border-left-color: var(--orange);
  color: var(--ink);
}

.site-footer {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 30px 22px 46px;
  color: var(--muted);
  font-size: 14px;
}

.run-days {
  color: var(--rose);
  font-family: "Bradley Hand", "Comic Sans MS", "Kaiti SC", cursive;
  font-size: 25px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .motto-note {
    position: relative;
    top: auto;
    right: auto;
    max-width: none;
    margin-top: 18px;
  }

  .hero-bottom,
  .garden-grid,
  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }
}
