/* BotSpan.org — shared landing styles (Spanish + future English).
   Editorial system: serif display, hairline rules, alternating bands.
   Identity: dark teal / ivory / lime. */

:root {
  --teal-950: #0d242c;
  --teal-900: #122d36;
  --teal-850: #12323a;
  --teal-800: #173741;
  --line-dark: #2e4f55;
  --ivory: #f4f7f2;
  --ivory-band: #eaf1eb;
  --lime: #b9f779;
  --ink: #122d36;
  --ink-accent: #1e5b4d;
  --ink-muted: #3b635c;
  --body-dark: #d5e3e0;
  --muted-dark: #a9c1be;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
  font-family: var(--sans);
  color: var(--ivory);
  background: var(--teal-900);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip:focus-visible { top: 1rem; }

/* Focus */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.band--light :focus-visible { outline-color: var(--ink); }

.page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 82% 70%, #24515a 0, transparent 34%), var(--teal-900); }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: 1.1rem var(--pad);
}
.brand { font-size: 1.15rem; font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.brand span { color: var(--lime); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 .25rem; list-style: none; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 .8rem;
  color: var(--body-dark);
  text-decoration: none;
  font-size: .95rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--lime); }

/* Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 7vh, 5.5rem) var(--pad) clamp(3.5rem, 9vh, 7rem);
}
.hero-copy { max-width: 44rem; }
.eyebrow {
  color: var(--lime);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 1.6rem;
}
.display .accent { color: var(--lime); }
.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  line-height: 1.55;
  color: var(--body-dark);
  max-width: 36rem;
  margin-bottom: 2.2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 150px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: .8rem 1.7rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.action:hover { transform: translateY(-2px); }
.fund { color: var(--ink); background: var(--lime); }
.try { color: var(--lime); background: transparent; }
.try:hover { background: var(--lime); color: var(--ink); }
.stage-note {
  margin-top: 1.5rem;
  padding-left: .95rem;
  border-left: 2px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: .92rem;
  line-height: 1.5;
  max-width: 44ch;
}

/* Artwork: responsive CSS viewport crop of the fresco (see docs/visual-direction.md) */
.artwork-figure { min-width: 0; }
.artwork { position: relative; aspect-ratio: 1.45; overflow: hidden; border-radius: 3px; background: #e6dfcf; }
.artwork img { position: absolute; width: 500%; max-width: none; height: auto; left: -138%; top: -98%; }
.artwork-figure figcaption { font-size: .78rem; line-height: 1.5; color: var(--muted-dark); margin-top: .9rem; }
.artwork-figure a { color: inherit; text-underline-offset: 3px; }

/* Bands */
.band { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); }
.band--light { background: var(--ivory-band); color: var(--ink); }
.band--deep { background: var(--teal-950); }
.band--model { background: var(--teal-850); }
.band .eyebrow { margin-bottom: 1.1rem; }
.band--light .eyebrow { color: var(--ink-muted); }
.band-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 18ch;
}
.band-intro { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: var(--measure); color: var(--body-dark); }
.band--light .band-intro { color: #33473f; }

/* Origin */
.origin-grid { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: clamp(2rem, 6vw, 6rem); }
.origin-copy { max-width: 46rem; }
.origin-copy p { font-family: var(--serif); font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.75; margin-bottom: 1.4rem; }
.origin-copy p:last-child { margin-bottom: 0; }
.origin-copy p:first-of-type::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: .82;
  padding: .06em .14em 0 0;
  font-weight: 700;
  color: var(--ink-accent);
}
.origin-copy .closing { font-weight: 700; color: var(--ink-accent); }

/* Moments: editorial index, not cards */
.moments { list-style: none; padding: 0; margin-top: clamp(2.5rem, 5vw, 4rem); }
.moment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 3vw, 2.3rem) 0;
}
.moment:last-child { border-bottom: 1px solid var(--line-dark); }
.moment-index {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--lime);
  min-width: 2.2ch;
}
.moment h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .55rem; }
.moment p { color: var(--body-dark); line-height: 1.65; max-width: var(--measure); }
.moments-foot { margin-top: 1.8rem; color: var(--muted-dark); font-size: .92rem; line-height: 1.55; max-width: var(--measure); }

/* Stage statement */
.stage-statement {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  max-width: 26ch;
  border-left: 4px solid var(--lime);
  padding-left: clamp(1.1rem, 2.5vw, 2rem);
}
.stage-support { margin-top: 1.6rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.65; max-width: var(--measure); color: #33473f; }

/* Model */
.model-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.model-note { color: var(--lime); font-size: .95rem; padding-bottom: .35rem; }
.model-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 3.5vw, 3.2rem); list-style: none; padding: 0; }
.model-item { border-top: 1px solid var(--line-dark); padding-top: 1.3rem; }
.model-item .number { font-size: .8rem; font-weight: 800; color: var(--lime); letter-spacing: .15em; }
.model-item h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; margin: 1.4rem 0 .7rem; }
.model-item p { color: var(--body-dark); line-height: 1.65; }
.model-foot { margin-top: clamp(2.2rem, 4vw, 3.2rem); font-size: 1.02rem; line-height: 1.65; max-width: 56rem; color: var(--body-dark); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.4rem var(--pad);
  color: var(--muted-dark);
  font-size: .85rem;
  border-top: 1px solid var(--line-dark);
  background: var(--teal-900);
}

/* Dialog */
dialog {
  border: 1px solid #65978e;
  border-radius: 20px;
  background: var(--teal-800);
  color: var(--ivory);
  padding: clamp(1.6rem, 4vw, 2.2rem);
  max-width: min(92vw, 430px);
  box-shadow: 0 25px 70px #071a20aa;
}
dialog::backdrop { background: #05171fbb; }
dialog h2 { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.01em; margin-bottom: .8rem; }
dialog p { line-height: 1.6; color: var(--body-dark); margin-bottom: 1.6rem; }
dialog .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--lime);
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: .6rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .artwork-figure { max-width: 40rem; }
  .origin-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .origin-grid .band-title { max-width: none; }
  .model-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .action { width: 100%; }
  .moment { grid-template-columns: 1fr; gap: .4rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
