:root {
  --ink: #20231f;
  --muted: #4e574e;
  --soil: #eee9dc;
  --gold: #a65337;
  --panel: rgba(247, 243, 233, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(138deg, #f7f3e9 0%, #e9e2d2 58%, #d8d2c0 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 28px 0 60px;
}

.home-link, .back, .lulu { color: var(--moss, #465447); text-decoration: none; }
.home-link {
  display: inline-block;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  max-width: 760px;
  margin: 72px auto 56px;
  text-align: center;
}

.eyebrow, .leaf-kicker { color: var(--gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.7rem, 7vw, 5.7rem); font-weight: normal; line-height: 1; }
.page-title, .container h1 { color: #25362d; }
.lead {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0 auto;
  max-width: 640px;
}

.intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
}

.poem-music { margin: 16px auto 20px; max-width: 420px; }
.portus-music-control { display: block; margin: 0 auto 10px; }
.poem-music audio { width: 100%; filter: saturate(0.95) brightness(1.08); }
.poem-controls { display: flex; justify-content: center; margin-top: 8px; }
.poem-mute-toggle { appearance: none; border: 1px solid rgba(166,83,55,.55); background: rgba(166,83,55,.08); color: var(--ink); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.poem-mute-toggle:hover, .poem-mute-toggle:focus-visible { background: rgba(166,83,55,.18); outline: none; }
.piece-list {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  max-width: 1080px;
  padding: 28px 28px 44px;
  margin: 20px auto 0;
}
.archive-branch .piece-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(#607e55, #465447 75%, transparent);
  border-radius: 999px;
}
.piece-list li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 122px;
  margin: 0;
  padding: 18px 22px;
  border: 1px solid rgba(70, 84, 71, .55);
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background: linear-gradient(135deg, rgba(229, 239, 210, .96), rgba(191, 209, 152, .92));
  box-shadow: 0 10px 18px rgba(32, 35, 31, .12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.piece-list li:nth-child(3n + 2) { border-radius: 54% 46% 52% 48% / 46% 54% 44% 56%; background: linear-gradient(135deg, rgba(234, 230, 190, .96), rgba(191, 209, 152, .92)); }
.piece-list li:nth-child(3n) { border-radius: 45% 55% 48% 52% / 55% 45% 54% 46%; background: linear-gradient(135deg, rgba(214, 231, 201, .96), rgba(160, 190, 135, .92)); }
.piece-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 20px;
  border-top: 2px solid #607e55;
}
.piece-list li:nth-child(3n + 2)::before { left: 50%; top: -24px; width: 2px; height: 24px; border-top: 0; background: #607e55; }
.piece-list li:hover, .piece-list li:focus-within { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 15px 24px rgba(32, 35, 31, .2); background: #e5efd2; }
.piece-list a {
  display: block;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.piece-list a:hover, .piece-list a:focus-visible { color: var(--gold); text-decoration: underline; }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), 560px); }
  .hero { margin: 58px auto 38px; }
  .tree { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trunk, .branch::after { display: none; }
  .branch { min-height: 132px; padding: 15px; }
  .branch strong { margin-top: 12px; }
  .leaves { grid-template-columns: 1fr; }
  .piece-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 24px 14px 34px; }
  .piece-list li { min-height: 112px; padding: 16px; }
  footer { flex-direction: column; }
}

.tree { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 0 70px; }
.trunk { position: absolute; width: 5px; background: linear-gradient(var(--gold), #607e55); top: 0; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 5px; }
.branch { position: relative; min-height: 148px; padding: 20px; border: 1px solid color-mix(in srgb, var(--branch) 60%, transparent); background: color-mix(in srgb, var(--branch) 10%, #f7f3e9); color: var(--ink); text-decoration: none; transition: transform .25s ease, background .25s ease; }
.branch::after { content: ""; position: absolute; top: 50%; width: 18px; border-top: 2px solid var(--branch); }
.branch:nth-of-type(odd)::after { right: -19px; }
.branch:nth-of-type(even)::after { left: -19px; }
.branch:hover, .branch:focus-visible { background: color-mix(in srgb, var(--branch) 22%, #f7f3e9); transform: translateY(-4px); outline: none; }
.branch-mark { display: block; color: var(--branch); font-size: .75rem; letter-spacing: .12em; }
.branch strong { display: block; margin: 16px 0 4px; font-size: 1.2rem; font-weight: normal; }
.branch small { display: block; color: var(--muted); line-height: 1.4; }
.leaves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.leaf-set { scroll-margin-top: 24px; padding: 28px; border-top: 2px solid var(--gold); background: var(--panel); }
.leaf-set h2 { margin: 0 0 18px; font-size: 1.7rem; font-weight: normal; }
.leaf-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.leaf-grid a, .leaf-button { display: inline-block; padding: 8px 12px; border: 1px solid rgba(216,168,93,.45); color: var(--ink); text-decoration: none; font-size: .94rem; }
.leaf-grid a:hover, .leaf-button:hover, .leaf-button:focus-visible { background: rgba(216,168,93,.16); }
.feature-leaf p { color: var(--muted); }
.leaf-button { margin-top: 6px; color: var(--gold); }
.paypal { border-color: #e0bd68; }
.small-note { font-size: .82rem; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; font-size: .92rem; }

.back { display: block; text-align: center; }
.back:hover, .lulu:hover { text-decoration: underline; }

/* New Shoots Section */
.new-shoots {
  margin: 40px auto 60px;
  padding: 30px;
  background: var(--panel);
  border: 1px dashed rgba(70, 84, 71, 0.4);
  border-radius: 12px;
}
.shoots-header {
  text-align: center;
  margin-bottom: 28px;
}
.shoots-header h2 {
  margin: 6px 0;
  font-size: 2rem;
  font-weight: normal;
  color: #25362d;
}
.shoots-intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.shoots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shoot-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fdfbf7;
  border: 1px solid rgba(70, 84, 71, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.shoot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(32, 35, 31, 0.08);
  border-color: var(--gold);
}
.shoot-branch {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 8px;
}
.shoot-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: normal;
  line-height: 1.3;
  color: var(--ink);
}
.shoot-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}
.shoot-more {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: bold;
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), 560px); }
  .hero { margin: 58px auto 38px; }
  .tree { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trunk, .branch::after { display: none; }
  .branch { min-height: 132px; padding: 15px; }
  .branch strong { margin-top: 12px; }
  .leaves { grid-template-columns: 1fr; }
  .shoots-grid { grid-template-columns: 1fr; gap: 16px; }
  .new-shoots { padding: 20px; margin: 30px auto 40px; }
  footer { flex-direction: column; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 20px); }
  .branch { min-height: 120px; padding: 12px; }
  .branch strong { font-size: .98rem; }
  .leaf-set { padding: 20px; }
  .piece-list { grid-template-columns: 1fr; padding-inline: 8px; }
  .piece-list li { min-height: 96px; }
}

/* Unified Great Tree catalogue */
.catalogue-page .hero { max-width: 820px; }
.catalogue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.catalogue-actions .home-link { margin: 0; }
.catalogue-section { margin: 80px 0; }
.catalogue-section > h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: normal; }
.catalogue-section > p:not(.leaf-kicker) { max-width: 720px; color: var(--muted, #b8b8c9); }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.catalogue-grid a { display: block; min-height: 128px; padding: 22px; border: 1px solid rgba(216,168,93,.35); border-radius: 14px; background: rgba(255,255,255,.045); color: inherit; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.catalogue-grid a:hover,.catalogue-grid a:focus-visible { transform: translateY(-3px); border-color: rgba(216,168,93,.75); background: rgba(255,255,255,.09); text-decoration: none; outline: none; }
.catalogue-grid strong { display: block; margin-bottom: 9px; color: #3f4b42; font-family: Georgia, serif; font-size: 1.28rem; font-weight: normal; }
.catalogue-grid span { display: block; color: var(--muted, #b8b8c9); line-height: 1.45; }
.ecosystem-collections .catalogue-grid a { background: linear-gradient(145deg,rgba(70,92,61,.18),rgba(255,255,255,.035)); }
@media (max-width: 680px) { .catalogue-grid { grid-template-columns: 1fr; }.catalogue-grid a { min-height: 105px; } }

/* Keep article pictures within the reading area at every screen size. */
.container img {
  display: block;
  max-width: min(100%, 720px);
  height: auto;
  margin: 24px auto;
}
