/* ============================================
   XRAY PLANT CARE — Authentic Design System
   Theme: Revealing the hidden life of plants
   Japanese urban plant-keeping culture
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Sawarabi+Mincho&family=Sawarabi+Gothic:wght@400;500&display=swap');

:root {
  /* Earth-rooted palette — justified by soil, moss, leaves, paper */
  --soil: #3f2a1f;
  --moss: #3f5f3f;
  --leaf: #6b8e5e;
  --lichen: #8a9f7d;
  --paper: #f9f6f0;
  --cream: #f1ede4;
  --bark: #5c4636;
  --ink: #2c2c2c;
  --mist: #e8e3d9;
  --vein: #d4c9b5;
  --warning: #8c5a3b;
  --success: #4a6640;

  /* Typography */
  --font-serif: 'Sawarabi Mincho', 'Yu Mincho', 'Hiragino Mincho Pro', Georgia, serif;
  --font-display: 'Playfair Display', 'Sawarabi Mincho', Georgia, serif;
  --font-ui: 'Sawarabi Gothic', system-ui, -apple-system, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.82;
  font-size: 17px;
  margin: 0;
  padding: 0;
}

/* Headings — calm botanical authority */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--moss);
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.05rem); }
h3 { font-size: clamp(1.25rem, 2.8vw, 1.55rem); }

/* Links */
a { color: var(--moss); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--leaf); }

/* Header & Navigation — quiet, functional */
header {
  background: #fff;
  border-bottom: 1px solid var(--vein);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 42px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--moss);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #444;
}
.nav-links a:hover { color: var(--moss); }

.hamburger {
  display: none;
  font-size: 26px;
  color: var(--moss);
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero — immersive, observational */
.hero {
  min-height: 88vh;
  background: linear-gradient(rgba(63, 42, 31, 0.48), rgba(44, 44, 44, 0.38)),
              url('hero-plant.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 760px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.65rem, 7vw, 3.65rem);
  margin-bottom: 18px;
  letter-spacing: -1px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero .lead {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  max-width: 560px;
  opacity: 0.96;
  margin-bottom: 34px;
  line-height: 1.65;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--moss);
  padding: 15px 42px;
  border-radius: 9999px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.24);
  background: var(--cream);
}

/* Main container */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  margin-bottom: 10px;
}
.section-header .subtitle {
  max-width: 520px;
  margin: 0 auto;
  color: #666;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Observation Cards — unique to this site */
.obs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.obs-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--vein);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.obs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(63,42,31,0.08);
}
.obs-card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
  display: block;
}
.obs-card .body {
  padding: 22px 22px 26px;
}
.obs-card .body h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--moss);
}
.obs-card .body p {
  font-size: 15.2px;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.7;
}
.obs-card .meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #777;
  display: flex;
  gap: 14px;
  align-items: center;
}
.obs-card .meta span {
  background: var(--mist);
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
}

/* Cross-section / layered insight boxes (X-ray motif) */
.xray-box {
  background: #fff;
  border-left: 5px solid var(--moss);
  padding: 24px 26px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
}
.xray-box h4 {
  margin: 0 0 12px;
  font-size: 15.5px;
  letter-spacing: 0.3px;
  color: var(--bark);
}
.xray-box ul {
  margin: 0;
  padding-left: 18px;
}
.xray-box li {
  margin-bottom: 6px;
  font-size: 15.5px;
}

/* Symptom / Diagnosis cards */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.symptom-card {
  background: #fff;
  border: 1px solid var(--vein);
  border-radius: 12px;
  padding: 22px 22px 24px;
  transition: all 0.2s ease;
}
.symptom-card:hover {
  border-color: var(--lichen);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.symptom-card h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--moss);
}
.symptom-card p {
  margin: 0;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* Field note style */
.field-note {
  background: var(--cream);
  border: 1px solid var(--vein);
  padding: 22px 24px;
  margin: 32px 0;
  font-size: 15.3px;
  border-radius: 8px;
}
.field-note .label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--bark);
  margin-bottom: 8px;
  display: block;
}

/* Seasonal Almanac */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.season-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--vein);
}
.season-card img {
  width: 100%;
  height: 166px;
  object-fit: cover;
}
.season-card .content {
  padding: 20px 20px 24px;
}
.season-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.season-card p {
  margin: 0 0 14px;
  font-size: 15px;
  color: #555;
}

/* Deep article layout */
.article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 52px 44px;
  border-radius: 14px;
  border: 1px solid var(--vein);
}
.article h1 {
  font-size: 2.05rem;
  margin-bottom: 8px;
}
.article .meta {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: #777;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}
.article img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 10px;
  margin: 22px 0 34px;
}
.article h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 1.45rem;
}
.article h3 {
  margin-top: 32px;
  margin-bottom: 10px;
}
.article p, .article li {
  margin-bottom: 13px;
}
.article ul, .article ol {
  padding-left: 22px;
  margin: 14px 0 24px;
}
.article li { line-height: 1.75; }

/* Checklist / step lists */
.checklist {
  background: var(--cream);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 22px 0;
}
.checklist li {
  position: relative;
  padding-left: 4px;
  margin-bottom: 9px;
}

/* Recovery timeline */
.recovery-timeline {
  margin: 32px 0;
}
.recovery-step {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--vein);
}
.recovery-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.recovery-step .week {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--bark);
  min-width: 68px;
  flex-shrink: 0;
}
.recovery-step .desc {
  font-size: 15.2px;
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--soil);
  color: var(--mist);
  padding: 60px 20px 36px;
  font-size: 14.2px;
  margin-top: 80px;
}
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 42px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--mist);
  margin-bottom: 7px;
  font-size: 14.2px;
}
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 4px 0; line-height: 1.6; }
.footer-bottom {
  max-width: 1280px;
  margin: 54px auto 0;
  padding-top: 26px;
  border-top: 1px solid #5c4636;
  text-align: center;
  font-size: 12.5px;
  color: #998b78;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--soil);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--font-ui);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 3000;
  display: none;
}

/* Responsive — mobile first */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    gap: 18px;
    border-bottom: 1px solid var(--vein);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: block; }
  
  .hero { min-height: 72vh; }
  .hero h1 { font-size: 2.35rem; }
  
  main { padding: 42px 16px; }
  .article { padding: 36px 22px; }
  
  .obs-grid, .symptom-grid, .season-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content { gap: 32px; }
}

@media (max-width: 520px) {
  nav { height: 70px; }
  .logo img { height: 36px; }
  .logo-text { font-size: 16px; }
  .hero-content { padding: 0 16px; }
  .article { padding: 28px 16px; }
}

/* Subtle X-ray / vein texture utility */
.vein-bg {
  background-image: 
    linear-gradient(rgba(107,142,94,0.035) 1px, transparent 1px);
  background-size: 100% 4px;
}

/* Utility */
.text-center { text-align: center; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }