*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --section: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-menu li a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s;
}

.hero {
  padding: var(--section) 0;
  background: var(--canvas);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 900px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.hero-subhead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-image {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.section {
  padding: var(--section) 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: 48px;
}

hr.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.1px;
  color: var(--ink);
  margin-bottom: 12px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}

.article-card-link:hover {
  color: var(--primary-active);
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plant-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.plant-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.plant-card-body {
  padding: 20px;
}

.plant-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.plant-card-latin {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
}

.plant-card-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.band {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.intro-text h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-top: 12px;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.intro-facts {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.intro-facts-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.fact-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-label {
  font-weight: 600;
  color: var(--ink);
  min-width: 100px;
  flex-shrink: 0;
}

.article-hero {
  padding: 64px 0 0;
  background: var(--canvas);
}

.article-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 14px;
  color: var(--muted);
}

.article-hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-subtitle {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: 40px;
}

.article-cover {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

.article-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.article-body-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 680px) 260px;
  gap: 64px;
}

.article-content {
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  font-weight: 600;
  color: var(--ink);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(245, 78, 0, 0.3);
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.article-content th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-strong);
  background: var(--canvas-soft);
}

.article-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
}

.article-content .inline-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-content .inline-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.article-content .inline-image figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
}

.article-sidebar {
  padding-top: 0;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}

.sidebar-card li:last-child {
  border-bottom: none;
}

.sidebar-card li a {
  color: var(--body);
  font-size: 14px;
}

.sidebar-card li a:hover {
  color: var(--primary);
}

.sidebar-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sidebar-card p:last-child {
  margin-bottom: 0;
}

.page-hero {
  padding: var(--section) 0 48px;
  background: var(--canvas);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 48px;
}

.page-body {
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.page-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  height: 44px;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.form-status.success {
  background: #e8f5e9;
  color: #1f8a65;
  border: 1px solid #c8e6c9;
  display: block;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--body);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-col p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 6px;
}

.footer-legal {
  font-size: 13px;
  color: var(--muted) !important;
  margin-top: 8px !important;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--hairline);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.08);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--ink);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-accept {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  height: 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.btn-accept:hover {
  opacity: 0.85;
}

.btn-reject {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.btn-reject:hover {
  border-color: var(--ink);
  color: var(--ink);
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .article-body-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .section-title {
    font-size: 28px;
  }

  .article-hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 16px;
    gap: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 10px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .top-nav {
    position: relative;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .plant-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .plant-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
