/* ==========================================================================
   WLDFLWR LABS — sister brand to Wildflower Software.
   Same daisy, same #ffc823. Inverted ground and a much shorter page.
   Flip --ground/--surface/--text below to put it back on white.
   ========================================================================== */

:root {
  --sun: #ffc823;
  --sun-deep: #e9ae00;
  --grape: #d98cf0;        /* lightened from #cb6ce6 to hold contrast on ink */
  --grape-deep: #cb6ce6;

  --ground: #101010;
  --surface: #191919;
  --surface-hi: #212121;
  --line: #2c2c2c;
  --line-hi: #3d3d3d;

  --text: #ededeb;
  --text-soft: #a8a6a2;
  --text-faint: #77746f;

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--grape); text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover { color: var(--sun); }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.shell--narrow { max-width: 720px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--panel { background: var(--surface); }
.section + .section--panel, .section--panel + .section { border-top: 1px solid var(--line); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--sun); color: #111; padding: .75rem 1.25rem; z-index: 100; }

/* ---------------------------------------------------------------- label -- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1.25rem;
}
.label::before { content: ""; width: 22px; height: 2px; background: var(--sun); }
.label--plain { color: var(--text-faint); }
.label--plain::before { background: var(--line-hi); }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--text-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- brand -- */

.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.wordmark .flower { width: 1.75rem; height: 1.75rem; flex: none; }
.wordmark__text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  color: #fff;
}
.wordmark__labs {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  color: var(--ground);
  background: var(--sun);
  padding: 0.1rem 0.42rem;
  border-radius: 5px;
}
.wordmark--lg .flower { width: 2.6rem; height: 2.6rem; }
.wordmark--lg .wordmark__text, .wordmark--lg .wordmark__labs { font-size: 1.45rem; }

/* --------------------------------------------------------------- header -- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.bar__nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 1.75rem); }
.bar__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
}
.bar__link:hover { color: var(--sun); }

@media (max-width: 620px) {
  .bar__link--hide { display: none; }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--sun { background: var(--sun); color: #111; }
.btn--sun:hover { background: var(--sun-deep); color: #111; }
.btn--line { border-color: var(--line-hi); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--sun); color: var(--sun); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.78rem; }

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

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.hero h1 { margin-bottom: 0.55em; max-width: 16ch; }
.hero__sun { color: var(--sun); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ------------------------------------------------------------- problems -- */

.gaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gap { background: var(--ground); padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.gap__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--sun); margin-bottom: 0.9rem; }
.gap p { margin: 0; color: var(--text-soft); font-size: 0.96rem; }
.gap strong { color: var(--text); display: block; margin-bottom: 0.4rem; font-weight: 600; }

/* -------------------------------------------------------------- program -- */

.programs { display: grid; gap: 1rem; }

.program {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.program:hover { border-color: var(--sun); background: var(--surface-hi); color: inherit; }

.program__kind {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.7rem;
}
.program__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: #fff; margin: 0 0 0.5rem; }
.program__tagline { color: var(--text-soft); margin: 0 0 1rem; font-size: 0.98rem; }
.program__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.program__arrow { font-size: 1.3rem; color: var(--text-faint); }
a.program:hover .program__arrow { color: var(--sun); }

@media (max-width: 620px) {
  .program { grid-template-columns: 1fr; }
  .program__arrow { display: none; }
}

/* ---------------------------------------------------------------- steps -- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--sun);
  margin-bottom: 0.85rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.step p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* ----------------------------------------------------------------- list -- */

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.7rem; color: var(--text-soft); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}

.agenda { border-top: 1px solid var(--line); }
.agenda__row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.agenda__row h3 { margin: 0; font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; color: var(--text); }
.agenda__row p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 620px) { .agenda__row { grid-template-columns: 1fr; gap: 0.35rem; } }

.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fact {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  color: var(--text-soft);
}

.prose { max-width: 66ch; }
.prose p { color: var(--text-soft); }

/* ---------------------------------------------------------------- notes -- */

.notes { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.notes__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .notes__row { grid-template-columns: 1fr; gap: 0.4rem; } }
.notes__meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 0; }
.notes__meta a { color: var(--sun); text-decoration: none; }
.notes__title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 0.4em; }
.notes__title a { color: var(--text); text-decoration: none; }
.notes__title a:hover { color: var(--sun); }
.notes__excerpt { color: var(--text-soft); margin: 0; }
.notes__pages { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--text-faint); font-size: 0.9rem; }

.note__title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.6em 0 0.3em; }
.note__body { margin-top: 2.5rem; }
.note__body h2, .note__body h3 { margin-top: 2em; }
.note__body li { color: var(--text-soft); margin-bottom: 0.4em; }
.note__body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-hi); padding: 0.1em 0.35em; border-radius: 4px; }
.note__body pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; overflow-x: auto; }
.note__body pre code { background: none; padding: 0; }
.note__body blockquote { border-left: 2px solid var(--sun); margin-left: 0; padding-left: 1.25rem; color: var(--text-soft); }

/* ----------------------------------------------------------------- form -- */

.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.errors { list-style: none; margin: 0.2rem 0 0; padding: 0; color: #ff8a80; font-size: 0.85rem; }

.note { border: 1px solid var(--sun); background: rgba(255, 200, 35, 0.09); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; color: var(--text); }
.note--bad { border-color: #ff8a80; background: rgba(255, 138, 128, 0.09); }

/* ---------------------------------------------------------------- split -- */

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.35rem, 2.5vw, 1.85rem); }
.card h3 { font-size: 1.05rem; }

/* ------------------------------------------------------------------ cta -- */

.cta { border: 1px solid var(--sun); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; align-items: center; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { margin: 0; color: var(--text-soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
@media (max-width: 700px) { .cta__actions { justify-content: flex-start; } }

/* --------------------------------------------------------------- footer -- */

.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; font-size: 0.92rem; color: var(--text-faint); }
.foot__top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--sun); }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

.crumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 1.5rem; }
.crumb a { color: var(--text-soft); text-decoration: none; }
.crumb a:hover { color: var(--sun); }

/* ------------------------------------------------ link to the sister site -- */
/* Set apart from the page nav: divider, grape pill, arrow, and a short tooltip
   saying where the link goes. */

.sister {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: clamp(0.75rem, 2.5vw, 1.75rem);
  border-left: 1px solid var(--line-hi);
}
.bar__link.sister__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--grape);
  border-radius: 999px;
  color: var(--grape);
}
.bar__link.sister__link:hover,
.bar__link.sister__link:focus-visible { background: var(--grape); color: var(--ground); }
.sister__icon { width: 0.9em; height: 0.9em; transition: transform 0.18s ease; }
.sister:hover .sister__icon,
.sister:focus-within .sister__icon { transform: translate(2px, -2px); }

.sister__tip {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: max-content;
  max-width: 15rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: var(--surface-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.sister__tip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.4rem;
  width: 10px;
  height: 10px;
  background: var(--surface-hi);
  border-top: 1px solid var(--line-hi);
  border-left: 1px solid var(--line-hi);
  transform: rotate(45deg);
}
.sister:hover .sister__tip,
.sister:focus-within .sister__tip { opacity: 1; visibility: visible; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sister__icon, .sister__tip { transition: none; }
}

@media (max-width: 620px) {
  .sister.bar__link--hide { display: none; }
}
