/* The Garden — launcher styles.
   Tokens and rules transcribed from the "The Garden" design system.
   Foundations: radius 0 always, no shadows (depth comes from offset duplicates),
   paper texture, 4/8/16/32/64 spacing, Jost + Space Mono. */

:root {
  /* palette */
  --paper: #f4f2ea;
  --ink: #23302a;
  --leaf: #3f7d5f;
  --pine: #24483a;
  --water: #3a6f96;
  --sky: #d9e6ee;
  --soil: #6b5442;
  --clay: #c14f2a;
  --bloom: #b8567a;

  /* muted / support */
  --body: #4d5c53;
  --faint: #8a7f6c;
  --line-soft: rgba(35, 48, 42, 0.22);
  --line-hair: rgba(35, 48, 42, 0.18);
  --border-cool: #c9c2ad;
  --field: #faf9f3;
  --wash: #e7ece4;

  /* type */
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 32px;
  --s5: 64px;

  --rule: 1.5px solid var(--ink);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    48deg,
    transparent 0 13px,
    rgba(107, 84, 66, 0.05) 13px 14px
  );
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 0 clamp(18px, 5vw, 56px) 80px;
}

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

a { color: #2f6b52; text-decoration: none; }
a:hover { color: var(--clay); }

/* ---- shared bits ---- */

.eyebrow,
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soil);
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--soil);
  border: 1px solid var(--border-cool);
  padding: 4px 7px;
  white-space: nowrap;
}

.chip--label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 6px;
}

/* ---- masthead ---- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 0 22px;
  border-bottom: var(--rule);
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-dot {
  width: 15px;
  height: 15px;
  background: var(--leaf);
  border-radius: 50%;
  transform: translateY(-1px);
}

.brand-name { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }

.status {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soil);
  letter-spacing: 0.06em;
}

.status-beds { display: inline-flex; align-items: center; gap: 6px; }

.pulse {
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  animation: blink 2.4s infinite;
}

/* ---- hero ---- */

.hero { padding: clamp(44px, 8vw, 96px) 0 clamp(30px, 6vw, 60px); }
.hero .eyebrow { display: block; margin-bottom: 20px; }

.display {
  margin: 0;
  font-size: clamp(38px, 8.4vw, 88px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: pretty;
}

.ul { position: relative; display: inline-block; }
.ul svg {
  position: absolute;
  left: -2%;
  bottom: -0.14em;
  width: 104%;
  height: 0.16em;
  overflow: visible;
}

.lede {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--body);
  font-weight: 300;
}

/* ---- beds (the launcher rows) ---- */

.beds-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soil);
  padding-bottom: 10px;
  border-bottom: var(--rule);
}

.bed {
  display: block;
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(20px, 3vw, 30px) 4px;
  color: inherit;
  transition: background 180ms ease, transform 180ms ease, padding 180ms ease;
}
.bed:last-of-type { border-bottom: var(--rule); }

.bed:hover,
.bed:focus-visible {
  transform: translateX(7px);
  padding-left: 14px;
  outline: none;
  background: rgba(63, 125, 95, 0.07);
}

.bed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.bed-main {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  align-items: baseline;
  min-width: 0;
}

.bed-n {
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 6px;
  color: var(--leaf);
}

.bed-name {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  transform: rotate(var(--rot, 0deg));
}

.bed-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--body);
  font-weight: 300;
  max-width: 44ch;
}

.bed-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soil);
}

.bed-arrow { font-size: 17px; color: var(--ink); }

/* per-accent: number color + hover wash + emphasized chip */
.bed--leaf  .bed-n { color: var(--leaf); }
.bed--water .bed-n { color: var(--water); }
.bed--clay  .bed-n { color: var(--clay); }
.bed--bloom .bed-n { color: var(--bloom); }
.bed--pine  .bed-n { color: var(--pine); }

.bed--water:hover, .bed--water:focus-visible { background: rgba(58, 111, 150, 0.07); }
.bed--clay:hover,  .bed--clay:focus-visible  { background: rgba(193, 79, 42, 0.07); }
.bed--bloom:hover, .bed--bloom:focus-visible { background: rgba(184, 86, 122, 0.09); }
.bed--pine:hover,  .bed--pine:focus-visible  { background: rgba(36, 72, 58, 0.07); }

.bed--clay .chip { border-color: var(--clay); color: var(--clay); }

/* subtle handmade rotation, varied per row */
.bed:nth-of-type(4n+1) .bed-name { --rot: -0.35deg; }
.bed:nth-of-type(4n+2) .bed-name { --rot: 0.4deg; }
.bed:nth-of-type(4n+3) .bed-name { --rot: -0.55deg; }
.bed:nth-of-type(4n)   .bed-name { --rot: 0.25deg; }

.beds-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ---- colophon ---- */

.colophon {
  margin-top: clamp(70px, 10vw, 120px);
  border-top: var(--rule);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* ---- motion ---- */

@keyframes blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0.15; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
