/* Ensayo y error — landing page */

/* Theme: dark for everyone, light only when the footer button chose it
   (data-theme on <html>, set by site.js). */
:root {
  --bg: #0b0b0b;
  --ink: #e8e8e8;
  --text: #b5b5b5;
  --shine: #ffd27a;
}
:root[data-theme="light"] {
  --bg: #f5f5f3;
  --ink: #141414;
  --text: #3a3a3a;
  --shine: #c8962e;
}

/* Page */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

/* Logo */
.hero {
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero svg {
  width: min(82.8vw, 702px);
  height: auto;
  display: block;
}
/* The drawing's own stroke styles (from Illustrator), in the theme's colour. */
.st0, .st1, .st2, .st3, .st4, .st5, .st6 {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.st0 { stroke-width: 8; }
.st1 { stroke-width: 7.8606; }
.st2 { stroke-width: 7.6223; }
.st4, .st5, .st6 { stroke-width: 1.7; }
.st5 { stroke-linejoin: bevel; }
.st6 { stroke-linejoin: round; }
.dot { fill: var(--ink); }
/* The "a" and the "n" turn back on themselves at a point where the drawing
   gives the curve no direction (a control point on top of its end point).
   With the default sharp (miter) join, Chrome guessed a direction there and
   drew a spike on the "a". A bevel join is the flat cut Firefox and Safari
   already draw there: the designer's logo, unchanged, in every browser. */
.cusp { stroke-linejoin: bevel; }

/* The cab's bottom speaker (see site.js): no cursor, no highlight, no tap flash. */
.hit { fill: transparent; }
.woofer {
  cursor: default;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Text columns: one narrow column on phones and portrait tablets, three side
   by side on wider screens (never two plus an orphan). Each opens with a short
   gold bar, its first line in the logo's colour. */
.cols {
  max-width: 36rem;
  margin: 1rem auto 4rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .cols {
    max-width: 1100px;
    gap: 4.5rem;
    grid-template-columns: repeat(3, 1fr);
  }
}
.cols p {
  position: relative;
  margin: 0;
  padding-top: 1.1rem;
  font-size: .95rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.cols p .lead {
  color: var(--ink);
  letter-spacing: .02em;
}
:root[data-theme="light"] .cols p .lead { color: #000; }
.cols p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  border-radius: 1px;
  background: var(--shine);
}

/* Footer: the theme button */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
footer button {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--text);
  opacity: .6;
  cursor: pointer;
  line-height: 0;
}
footer button:hover { opacity: 1; }
