/* Vermi Culture holding site
   Colours sampled from the Oct 2026 deck and logo. Fonts are free stand-ins:
   Gilda Display for HV Florentino, Libre Baskerville for Baskerville,
   Architects Daughter for MANIC. */

:root {
  --ink: #303f32;        /* logo */
  --green: #3a7352;      /* deck accent */
  --sage: #a8b8b0;
  --sage-tint: #eef2ec;
  --text: #24282a;
  --muted: #6b716c;
  --bg: #fbfaf6;
  --line: #d9ddd6;

  --serif-display: "Gilda Display", "Baskerville", Georgia, serif;
  --serif: "Libre Baskerville", "Baskerville", Georgia, serif;
  --hand: "Architects Daughter", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.75 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0;
}
h1 span, h2 span { color: var(--green); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; }
sup { font-size: 0.45em; vertical-align: super; line-height: 0; }

.accent { color: var(--green); font-weight: 700; }

/* Draft marker - remove at launch */
.draft-bar {
  background: #f3e7c4; color: #5a4a1a;
  font: 400 0.8rem/1 var(--serif);
  text-align: center; padding: 8px 16px;
}
.ph {
  border: 1px dashed var(--sage);
  border-radius: 12px;
  color: var(--muted);
  font: 400 0.95rem/1.4 var(--hand);
  display: grid; place-items: center; text-align: center;
  padding: 16px;
}
.ph-inline { color: #9a7b2c; font-style: italic; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 60px; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.site-header nav a {
  color: var(--ink); text-decoration: none; font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--green); }
.nav-cta {
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px 16px;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(120px, 14vw, 180px);
}
.hero-logo { width: min(420px, 78vw); margin: 0 auto clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.75rem); }
.lede {
  max-width: 34rem; margin: 1.75rem auto 0;
  font-size: 1.05rem; color: var(--muted);
}

/* Worm ribbon: outline, body, segment rings */
.worm {
  position: absolute; left: 0; bottom: 8px;
  width: 100%; height: clamp(70px, 10vw, 140px);
  overflow: visible; opacity: 0.4; pointer-events: none;
}
.worm use { fill: none; stroke-linecap: round; }
.worm .outline { stroke: var(--ink); stroke-width: 30; }
.worm .body { stroke: var(--bg); stroke-width: 27; }
.worm .rings { stroke: var(--ink); stroke-width: 27; stroke-linecap: butt; stroke-dasharray: 1.2 10; }

/* Idea */
.idea { padding: clamp(64px, 10vw, 128px) 0; background: var(--sage-tint); }
.idea .wrap {
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
}
.idea-intro p { max-width: 30rem; }
.shifts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.shifts li {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--sage); padding-top: 12px;
}
.shifts small {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--ink);
}
.shifts s {
  font-family: var(--serif-display); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.85rem; color: var(--muted);
  text-decoration-thickness: 1.5px;
}
.shifts b {
  font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--hand);
  color: var(--green); text-transform: uppercase; letter-spacing: 0.04em;
}

/* Building */
.building { padding: clamp(64px, 10vw, 128px) 0; }
.cards {
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
}
.card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--green); text-transform: lowercase; }
.card p { margin: 0; }
.ph-illustration { margin-top: auto; aspect-ratio: 16 / 9; }
.card .accent { margin-bottom: 12px; }

/* Progress */
.progress { padding: clamp(64px, 10vw, 128px) 0; background: var(--ink); color: #e9ede6; }
.progress h2 { color: #fff; }
.progress h2 span { color: var(--sage); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps li { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 16px; }
.steps h3 { color: #fff; margin: 4px 0 8px; }
.steps p { margin: 0; font-size: 0.95rem; color: #c9d1c8; }
.hand {
  font: 400 1.1rem/1 var(--hand); color: var(--sage);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.note {
  margin: clamp(40px, 6vw, 64px) 0 0; max-width: 36rem;
  font-style: italic; color: #c9d1c8;
}

/* Contact */
.contact {
  position: relative; text-align: center;
  padding: clamp(72px, 11vw, 140px) 0 clamp(140px, 16vw, 200px);
}
.contact p { max-width: 32rem; margin: 0 auto 2rem; }
.button {
  display: inline-block; max-width: 100%;
  background: var(--green); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 14px 28px;
  font-size: 1rem; overflow-wrap: anywhere;
}
.button:hover { background: var(--ink); }
.where {
  margin-top: 2rem !important;
  font: 400 1rem var(--hand); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.worm-low { bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 0.8rem; color: var(--muted);
}
.site-footer img { width: 48px; margin-bottom: 16px; opacity: 0.8; }
.site-footer p { margin: 0 0 8px; }
.site-footer sup { font-size: 0.7em; }

/* Narrow screens */
@media (max-width: 820px) {
  .idea .wrap, .cards, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .shifts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
}
