/* smallDat — marketing site.
   Static, no build step. Palette/tokens match sandycoast's docs site so the
   two properties read as one family. */

:root {
  --sand-1: #e8c45a;
  --sand-2: #e8895a;
  --pink: #e8598b;
  --blue: #8bc4e8;
  --green: #5ae89a;
  --violet: #b98be8;

  --bg: #14110d;
  --bg-soft: #1d1913;
  --panel: #221d16;
  --line: #3a3025;
  --text: #efe7d8;
  --muted: #b3a891;
  --faint: #8a7f6b;
  --accent: var(--sand-1);

  --radius: 12px;
  --gutter: 28px;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf6ee;
    --bg-soft: #f3ecdd;
    --panel: #fffdf8;
    --line: #e3d8c2;
    --text: #2a2318;
    --muted: #6b6250;
    --faint: #9a8f78;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* .wrap owns the horizontal gutter; sections own their vertical rhythm via
   padding-block. Keep it split by axis — a `padding` shorthand in either place
   silently resets the other axis to 0. */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- Header ---- */
header {
  padding-block: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
}
.brand .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 30% 30%, var(--sand-1), transparent 60%),
    radial-gradient(circle at 70% 65%, var(--sand-2), transparent 55%),
    radial-gradient(circle at 55% 45%, var(--pink), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* ---- Hero ---- */
.hero {
  padding-block: 56px 8px;
  text-align: center;
}
.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 0 0 -10px;
}
.hero h1 img {
  display: block;
}
.hero p {
  margin: 0 auto;
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  letter-spacing: 0.03em;
}

/* Wide demo frame under the hero copy. It's a direct child of <main>, so it
   runs wider than the .wrap sections (up to 1240px) but keeps the same gutter
   at every width — it should never touch the viewport edge. No negative margin
   needed; a calc(50% - 50vw) bleed would overshoot by half the scrollbar width
   and force a horizontal scroll. */
.hero-demo {
  margin: 40px 0 0;
  padding-block: 0 64px;
  padding-inline: var(--gutter);
}
.hero-demo img {
  display: block;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ---- Product section ---- */
.product {
  padding-block: 8px 64px;
  border-top: 1px solid var(--line);
}
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin: 56px 0 10px;
}
.product h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.product p {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 24px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}
/* Each tile is a link into the playground; the anchor is the card so the whole
   tile is the hit target. */
.gallery > a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.gallery > a:hover,
.gallery > a:focus-visible {
  border-color: var(--accent);
}
.gallery figure {
  margin: 0;
}
.gallery img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
}
.gallery figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.gallery > a:hover .tile-name {
  color: var(--text);
}
/* Reads as a button in its own right — same pill shape as .links a, just
   smaller — so "open the demo" is explicit rather than implied by the whole
   card being clickable. */
.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.gallery > a:hover .tile-cta,
.gallery > a:focus-visible .tile-cta {
  border-color: var(--accent);
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.links a:hover {
  border-color: var(--accent);
}

/* ---- Footer ---- */
footer {
  padding-block: 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 17px;
  }
  .product h2 {
    font-size: 24px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
