:root {
  --paper: #f3f0e8;
  --ink: #11130f;
  --muted: #6e7068;
  --line: #191b16;
  --leaf: #405f45;
  --leaf-dark: #11130f;
  --moss: #a6b37a;
  --sky: #c8dadd;
  --rose: #c9868d;
  --sun: #d7b959;
  --clay: #b0654f;
  --gallery: #0f120f;
  --gallery-soft: #181b17;
  --white: #fffdf4;
  --shadow: 0 22px 60px rgba(17, 19, 15, 0.16);
  --font-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  scroll-padding-top: 92px;
}

body {
  background:
    radial-gradient(circle at 10% 9%, rgba(216, 153, 162, 0.28), transparent 26%),
    radial-gradient(circle at 88% 7%, rgba(143, 200, 207, 0.25), transparent 29%),
    radial-gradient(circle at 72% 42%, rgba(223, 186, 103, 0.2), transparent 31%),
    linear-gradient(90deg, rgba(33, 49, 44, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #fff7de 0 760px, var(--paper) 760px);
  color: var(--ink);
}

button {
  box-shadow: none;
}

.topbar {
  min-height: 74px;
  padding: 12px clamp(16px, 3.6vw, 52px);
  border-bottom: 1px solid rgba(33, 49, 44, 0.12);
  background: rgba(255, 250, 241, 0.84);
  color: var(--ink);
}

.brand,
nav a {
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 253, 244, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 30%, #d7b959 0 8px, transparent 9px),
    radial-gradient(circle at 35% 65%, #c9868d 0 10px, transparent 11px),
    #f6f0d8;
  box-shadow: none;
  color: #11130f;
  transform: none;
}

.brand strong {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.topbar .brand small {
  color: rgba(33, 49, 44, 0.58);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  gap: 0;
  border: 1px solid rgba(33, 49, 44, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
}

nav a {
  min-height: 38px;
  border: 0;
  border-left: 1px solid rgba(33, 49, 44, 0.12);
  border-radius: 0;
  background: transparent;
  color: rgba(33, 49, 44, 0.74);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

nav a:first-child {
  border-left: 0;
}

nav a:hover,
nav a:focus-visible {
  background: #21312c;
  color: #fffdf4;
  transform: none;
}

main {
  width: 100%;
}

.hero {
  position: relative;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(22px, 4vw, 58px);
  min-height: calc(100dvh - 74px);
  padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 64px) clamp(26px, 4vw, 54px);
  background:
    radial-gradient(circle at 9% 22%, rgba(216, 153, 162, 0.28), transparent 27%),
    radial-gradient(circle at 86% 12%, rgba(143, 200, 207, 0.22), transparent 26%),
    radial-gradient(circle at 58% 82%, rgba(223, 186, 103, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 216, 0.78)),
    #fff7df;
  color: var(--ink);
}

.hero::before {
  content: "PLANT VISUAL INDEX";
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  bottom: 18px;
  color: rgba(33, 49, 44, 0.18);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 900;
  letter-spacing: 0.22em;
}

.hero-copy {
  align-self: end;
  padding-bottom: 34px;
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 24px;
  color: #11130f;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 26px rgba(33, 49, 44, 0.12);
  font-family: var(--font-display);
  font-size: clamp(52px, 8.4vw, 112px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero .eyebrow,
.eyebrow {
  color: rgba(33, 49, 44, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: 600px;
  color: rgba(33, 49, 44, 0.74);
  font-size: clamp(17px, 1.8vw, 23px);
}

.hero-actions {
  gap: 10px;
}

nav a,
.group-chip,
.small-button,
.secondary,
.primary {
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}

.primary {
  border: 1px solid #21312c;
  background: #21312c;
  color: #fffdf4;
}

.secondary,
.small-button {
  border: 1px solid rgba(33, 49, 44, 0.24);
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
}

.hero-actions .secondary:hover,
.hero-actions .primary:hover {
  transform: translateY(-2px);
}

.hero-visual {
  min-height: min(62vw, 680px);
  align-self: stretch;
}

.photo-ribbon {
  height: 100%;
  display: grid;
  grid-template-columns: 1.38fr 0.82fr 0.82fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
  transform: none;
}

.photo-tile {
  min-height: 0;
  border: 1px solid rgba(33, 49, 44, 0.16);
  border-radius: 0;
  background: #f6efd8;
  box-shadow: none;
  filter: saturate(1.04) contrast(0.98);
}

.photo-tile.feature-tile {
  grid-row: span 3;
}

.photo-tile:nth-child(2),
.photo-tile:nth-child(5),
.photo-tile:nth-child(8) {
  transform: none;
}

.photo-tile span {
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: none;
  padding: 9px 10px;
  border: 1px solid rgba(255, 253, 244, 0.26);
  border-radius: 0;
  background: rgba(16, 18, 15, 0.68);
  color: var(--white);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.photo-tile span small {
  color: rgba(255, 253, 244, 0.56);
  font-size: 11px;
}

.editorial-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--white);
}

.editorial-board article {
  min-height: 164px;
  padding: clamp(18px, 3vw, 32px);
  border-right: 1px solid var(--line);
}

.editorial-board article:last-child {
  border-right: 0;
}

.editorial-board span,
.card-meta,
.badge-frame-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-board strong {
  display: block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.92;
}

.editorial-board p {
  max-width: 28ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.control-band {
  top: 74px;
  padding: 14px clamp(16px, 4vw, 64px);
  border-block: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.94);
}

.search {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.search span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.stat {
  width: 118px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
}

.group-strip {
  gap: 0;
  padding: 0 clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-left: 1px solid rgba(17, 19, 15, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.group-chip:last-child {
  border-right: 1px solid rgba(17, 19, 15, 0.2);
}

.group-chip b {
  color: var(--muted);
  font-size: 11px;
}

.group-chip.active {
  background: var(--ink);
  color: var(--white);
  transform: none;
}

.group-chip.active b {
  color: rgba(255, 253, 244, 0.62);
}

.layout {
  gap: 0;
  padding: 0 clamp(16px, 4vw, 64px) 62px;
  background: var(--paper);
}

.side-panel {
  top: 142px;
  width: 330px;
  flex-basis: 330px;
  padding: 26px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.panel-head h2,
.section-title h2,
.mission-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 950;
  line-height: 0.92;
}

.theme-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.theme-item {
  position: relative;
  min-height: 102px;
  padding: 16px 54px 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 15, 0.24);
  border-radius: 0;
  background: transparent;
}

.theme-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.theme-item strong {
  margin-top: 8px;
  font-size: 20px;
}

.theme-item b {
  position: absolute;
  right: 0;
  top: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}

.plant-area {
  padding: 28px 0 0 clamp(18px, 3vw, 34px);
}

.section-title {
  min-height: 104px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plant-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.plant-card {
  min-height: 442px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.plant-card:hover,
.plant-card:focus-visible {
  border-color: var(--line);
  box-shadow: inset 0 0 0 6px rgba(64, 95, 69, 0.12);
  transform: none;
}

.plant-card figure {
  height: 236px;
  background: #d8d2c4;
}

.plant-card .tag,
.pill {
  min-height: 25px;
  border: 1px solid rgba(17, 19, 15, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.88);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.card-listen-button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(17, 19, 15, 0.36);
  border-radius: 50%;
  background: rgba(255, 253, 244, 0.92);
  box-shadow: none;
}

.plant-card-content {
  gap: 12px;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 19, 15, 0.16);
  padding-bottom: 10px;
}

.plant-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 950;
  line-height: 0.96;
}

.latin {
  margin-top: 7px;
  font-size: 12px;
}

.plant-card p,
.mission-card p,
.mission-copy p,
.quiz-box p,
.notebook-list p,
.garden-copy p {
  color: #51554d;
  font-size: 14px;
}

.card-actions {
  grid-template-columns: 1fr 0.76fr;
}

.card-actions button {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.card-actions button:hover {
  background: var(--ink);
  color: var(--white);
}

.card-actions .save-btn.saved {
  background: #f1dedb;
  border-color: var(--line);
}

.mission-band,
.activity-grid,
.garden-game,
.badge-wall {
  margin: 0;
  border-radius: 0;
}

.mission-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 1fr);
  padding: clamp(32px, 6vw, 84px) clamp(16px, 4vw, 64px);
  border-block: 1px solid var(--line);
  background: #11130f;
  color: var(--white);
}

.mission-copy p,
.mission-copy .eyebrow {
  color: rgba(255, 253, 244, 0.64);
}

.mission-card {
  border: 1px solid rgba(255, 253, 244, 0.24);
  border-radius: 0;
  background: #f3f0e8;
  color: var(--ink);
}

.mission-card .primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.activity-grid {
  gap: 0;
  padding: 0 clamp(16px, 4vw, 64px);
  background: var(--paper);
}

.quiz-panel,
.notebook {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.notebook {
  border-right: 0;
}

.quiz-read-button,
.quiz-options button,
.notebook-item,
.garden-plant-chip {
  border-radius: 0;
}

.garden-game {
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  padding: clamp(34px, 5vw, 74px) clamp(16px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    #12140f;
}

.garden-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px);
}

.garden-tool,
.garden-palette-wrap,
.garden-board-wrap {
  border-radius: 0;
}

.badge-wall {
  padding: clamp(34px, 5vw, 72px) clamp(16px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #0f120f;
  color: var(--white);
}

.badge-wall .section-title {
  border-color: rgba(255, 253, 244, 0.18);
}

.badge-wall .eyebrow,
.badge-rank p,
.badge-frame-head span {
  color: rgba(255, 253, 244, 0.56);
}

.badge-progress,
.badge-rank,
.badge-level,
.badge-frame-head,
.badge-grid-window {
  border-radius: 0;
}

.badge-frame-head,
.badge-grid-window,
.badge-rank,
.badge-level {
  background: rgba(255, 253, 244, 0.045);
}

.badge-pager button,
.badge-progress {
  border-radius: 999px;
}

dialog {
  border-radius: 0;
}

.dialog-close {
  border-radius: 50%;
}

@media (max-width: 980px) {
  body {
    background:
      radial-gradient(circle at 12% 8%, rgba(216, 153, 162, 0.24), transparent 30%),
      radial-gradient(circle at 88% 10%, rgba(143, 200, 207, 0.22), transparent 30%),
      linear-gradient(180deg, #fff7de 0 650px, var(--paper) 650px);
  }

  nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 540px;
  }

  .layout,
  .mission-band,
  .garden-game {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plant-area {
    padding-left: 0;
  }

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

  .quiz-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .topbar {
    background: rgba(255, 250, 241, 0.92);
  }

  .hero {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.4vw, 64px);
  }

  .photo-ribbon {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px repeat(4, 132px);
  }

  .photo-tile.feature-tile {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .editorial-board {
    grid-template-columns: 1fr;
  }

  .editorial-board article {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-band {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .stat {
    width: 100%;
  }

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