/* Living Site — Variation 25 */

:root {
  /* Earthy palette */
  --soil: #2e241b;
  --moss: #4a6043;
  --sage: #8a9e82;
  --stone: #c5bfb3;
  --bone: #ede8df;
  --cream: #faf6ef;
  --amber: #b88a48;
  --clay: #a06b46;

  /* Proof label system */
  --specimen-bg: #3d2e2b;
  --specimen-ink: #d7a985;
  --seed-bg: #303b30;
  --seed-ink: #b7c8af;
  --clone-bg: #313d42;
  --clone-ink: #a4b8c2;
  --spore-bg: #3d3242;
  --spore-ink: #c2a8c5;

  /* Motion */
  --breathe-duration: 6s;
  --season-transition: 1.6s;
  --presence-duration: 0.5s;

  /* Layout */
  --measure: 68ch;
  --site-max: 1200px;
  --gap: clamp(16px, 2.5vw, 28px);
  --radius: 20px;
  --radius-sm: 12px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --breathe-duration: 0s;
    --season-transition: 0s;
    --presence-duration: 0s;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--soil);
  color: var(--bone);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  font-size: 1rem;
  overflow-x: hidden;
}

/* Organic background canvas */
.organic-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  filter: saturate(0.86) blur(22px) contrast(1.06);
  transform: translateZ(0);
  transition: background-color var(--season-transition) ease;
}

.site-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Season banner */
.season-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px clamp(14px, 3vw, 24px);
  background: linear-gradient(
    to bottom,
    rgba(30, 26, 20, 0.8),
    rgba(30, 26, 20, 0.0)
  );
  color: var(--stone);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.season-label {
  opacity: 0.95;
}

.time-label {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .season-banner {
    font-size: 0.68rem;
    padding: 8px 14px;
  }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 3.5vw, 32px);
  max-width: var(--site-max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mark-leaf {
  font-size: 1.3rem;
  line-height: 1;
}

.mark-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Hero */
.hero {
  padding: 88px clamp(18px, 5vw, 40px) 52px;
  max-width: var(--site-max);
  margin: 0 auto;
}

.hero-inner {
  max-width: var(--measure);
}

.hero-overscroll {
  display: inline-block;
  margin: 0;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  opacity: 0.85;
}

.hero-title {
  margin: 14px 0 8px;
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0;
  color: var(--stone);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  max-width: 62ch;
}

.hero-context {
  margin-top: 18px;
}

.hero-season-text {
  margin: 0;
  color: var(--sage);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: color 0.6s ease;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 26, 20, 0.35);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.4s ease, border-color 0.4s ease;
}

.btn-primary {
  background: rgba(184, 138, 72, 0.14);
  border-color: rgba(184, 138, 72, 0.45);
  color: #f3dfc8;
}

.btn-primary:hover,
.btn-primary:focus {
  background: rgba(184, 138, 72, 0.24);
  border-color: rgba(232, 188, 108, 0.65);
  outline: none;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Proof terms */
.proof-terms {
  padding: 44px clamp(18px, 4vw, 32px);
  max-width: var(--site-max);
  margin: 0 auto;
}

.proof-terms-title {
  margin: 0 0 6px;
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.proof-terms-note {
  margin: 0 0 20px;
  color: var(--stone);
  font-size: 0.95rem;
}

.proof-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 720px) {
  .proof-terms-grid {
    grid-template-columns: 1fr;
  }
}

.proof-term {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(16, 14, 11, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.proof-term-name {
  margin: 0;
  color: var(--bone);
  font-size: 1.05rem;
  font-weight: 600;
}

.proof-term-meaning {
  margin: 0;
  color: var(--stone);
  font-size: 0.95rem;
}

.term-tag {
  display: inline-block;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--specimen-bg);
  color: var(--specimen-ink);
  border: 1px solid rgba(215, 169, 133, 0.28);
}

.term-ghost {
  background: var(--seed-bg);
  color: var(--seed-ink);
  border-color: rgba(183, 200, 175, 0.28);
}

.term-graft {
  background: var(--clone-bg);
  color: var(--clone-ink);
  border-color: rgba(164, 184, 194, 0.28);
}

.term-spore {
  background: var(--spore-bg);
  color: var(--spore-ink);
  border-color: rgba(194, 168, 197, 0.28);
}

/* Specimens */
.specimens {
  padding: 28px clamp(18px, 4vw, 32px) 68px;
  max-width: var(--site-max);
  margin: 0 auto;
}

.specimens-title {
  margin: 0 0 4px;
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.specimens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .specimens-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(26, 22, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.card-visual {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(
      120% 120% at 20% 30%,
      rgba(184, 138, 72, 0.22),
      transparent 55%
    ),
    radial-gradient(120% 120% at 80% 70%, rgba(90, 110, 76, 0.22), transparent 55%),
    rgba(24, 20, 14, 0.8);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proof-label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.proof-label[data-proof="specimen"] {
  background: var(--specimen-bg);
  color: var(--specimen-ink);
  border-color: rgba(215, 169, 133, 0.32);
}

.proof-label[data-proof="seed"] {
  background: var(--seed-bg);
  color: var(--seed-ink);
  border-color: rgba(183, 200, 175, 0.32);
}

.proof-label[data-proof="clone"] {
  background: var(--clone-bg);
  color: var(--clone-ink);
  border-color: rgba(164, 184, 194, 0.32);
}

.proof-label[data-proof="spore"] {
  background: var(--spore-bg);
  color: var(--spore-ink);
  border-color: rgba(194, 168, 197, 0.32);
}

.card-title {
  margin: 0;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-text {
  margin: 0;
  color: var(--stone);
  font-size: 0.95rem;
}

.card-link {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.card-link:hover,
.card-link:focus {
  color: #f3dfc8;
  outline: none;
}

/* Footer */
.site-footer {
  padding: 0 clamp(18px, 4vw, 32px) 36px;
  max-width: var(--site-max);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-note {
  margin: 0;
  color: var(--sage);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-link {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--cream);
  outline: none;
}

/* Guide page specific styling */
.guide {
  padding: 110px clamp(18px, 4vw, 32px) 72px;
  max-width: var(--site-max);
  margin: 0 auto;
}

@media (max-width: 600px) {
  .guide {
    padding-top: 90px;
  }
}

.guide-title {
  margin: 0 0 14px;
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.guide-lead {
  margin: 0 0 28px;
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 68ch;
}

.guide-section {
  margin-top: 36px;
}

.guide-section-title {
  margin: 0 0 12px;
  color: var(--cream);
  font-weight: 600;
  font-size: 1.25rem;
}

.guide-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guide-bullet {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-text {
  margin: 0;
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 68ch;
}

/* Organic shapes */
.organic-shape {
  position: absolute;
  border-radius: 46% 54% 38% 62% / 40% 45% 55% 60%;
  filter: blur(14px);
  opacity: 0.85;
  animation: drift 12s ease-in-out infinite;
}

.shape-1 {
  width: 72%;
  height: 72%;
  left: -18%;
  top: -18%;
  background: radial-gradient(circle at 30% 30%, rgba(122, 148, 112, 0.28), rgba(26, 18, 12, 0.0));
  animation-delay: 0s;
}

.shape-2 {
  width: 68%;
  height: 62%;
  right: -16%;
  top: -12%;
  background: radial-gradient(circle at 60% 60%, rgba(160, 107, 70, 0.28), rgba(10, 8, 6, 0.0));
  animation-delay: -5s;
}

.shape-3 {
  width: 76%;
  height: 70%;
  left: -20%;
  bottom: -16%;
  background: radial-gradient(circle at 40% 50%, rgba(138, 158, 130, 0.26), rgba(20, 16, 10, 0.0));
  animation-delay: -8s;
}

.shape-4 {
  width: 64%;
  height: 68%;
  right: -14%;
  bottom: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(184, 138, 72, 0.22), rgba(18, 14, 10, 0.0));
  animation-delay: -11s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(1.2%, 0.8%) rotate(2deg) scale(1.04);
  }

  66% {
    transform: translate(-0.8%, -0.5%) rotate(-1.6deg) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .organic-shape {
    animation: none;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid rgba(184, 138, 72, 0.72);
  outline-offset: 3px;
}
