/* LightPane design tokens — Sunlit palette, ships-to-production variant.
   Alternate palette / mode toggles from the original handoff are dropped —
   we launch with Sunlit only. Re-add if future marketing experiments
   need them. */
:root {
  /* Surfaces — warm off-white base */
  --lp-canvas: #fbfaf7;
  --lp-paper: #ffffff;
  --lp-sunk:  #f5f2ec;
  --lp-line:  #ebe6dd;
  --lp-line-strong: #ddd6c9;

  /* Ink */
  --lp-ink:       #1a1814;
  --lp-ink-2:     #3a352e;
  --lp-ink-3:     #6b645a;
  --lp-ink-4:     #9b9385;
  --lp-ink-on-accent: #1a1814;

  /* Sunlit accents */
  --lp-amber:  #f5c518;
  --lp-amber-soft: #fde9a6;
  --lp-amber-wash: #fff7dc;
  --lp-ember:  #ff8a3d;
  --lp-ember-soft: #ffd7bd;
  --lp-coral:  #e85a5a;
  --lp-coral-soft: #fbd0d0;

  /* Links in body copy. A SEPARATE token because the instinctive choice is
     wrong: --lp-ember (#ff8a3d) measures 2.35:1 on white and fails WCAG AA
     for text, as does --lp-coral at 3.48:1. These are deepened embers that
     stay in the Sunlit family and pass:
         --lp-link        6.49:1 on #ffffff,  6.22:1 on --lp-canvas
         --lp-link-hover  9.03:1 on #ffffff,  8.65:1 on --lp-canvas
     Contrast with the SURROUNDING text is only ~1.1:1, so colour alone can
     never mark a link here — always underline it too (WCAG 1.4.1). */
  --lp-link:       #9a4513;
  --lp-link-hover: #7a3410;

  /* Glow / illumination */
  --lp-glow-warm:  radial-gradient(ellipse at center, rgba(255, 200, 90, 0.28), rgba(255, 200, 90, 0) 65%);
  --lp-glow-core:  radial-gradient(circle, rgba(255, 210, 120, 0.55), rgba(255, 138, 61, 0.18) 45%, rgba(255, 138, 61, 0) 70%);
  --lp-glow-soft:  radial-gradient(ellipse at center, rgba(255, 197, 24, 0.12), rgba(255, 197, 24, 0) 60%);

  /* Shadows — layered, warm-tinted */
  --lp-shadow-1: 0 1px 0 rgba(26, 24, 20, 0.04), 0 1px 2px rgba(26, 24, 20, 0.05);
  --lp-shadow-2: 0 1px 0 rgba(26, 24, 20, 0.03), 0 2px 6px rgba(26, 24, 20, 0.06), 0 8px 20px -8px rgba(120, 90, 40, 0.12);
  --lp-shadow-3: 0 1px 0 rgba(26, 24, 20, 0.03), 0 6px 16px -6px rgba(26, 24, 20, 0.10), 0 20px 40px -20px rgba(150, 110, 50, 0.22);
  --lp-shadow-hover: 0 1px 0 rgba(26, 24, 20, 0.03), 0 8px 22px -8px rgba(255, 160, 60, 0.35), 0 24px 48px -22px rgba(150, 110, 50, 0.28);
  --lp-shadow-inset-cde: inset 0 1px 2px rgba(26, 24, 20, 0.09), inset 0 -1px 0 rgba(255, 255, 255, 0.6);

  /* Type */
  --lp-font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --lp-font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --lp-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --lp-r-sm: 8px;
  --lp-r:    14px;
  --lp-r-lg: 20px;
  --lp-r-xl: 28px;
  --lp-r-pill: 999px;

  /* Spacing rhythm */
  --lp-gutter: 28px;

  /* Motion */
  --lp-ease: cubic-bezier(.2,.7,.2,1);
}

/* Resets and base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--lp-font-sans);
  color: var(--lp-ink);
  background: var(--lp-canvas);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* PROSE LINKS. The reset above is right for nav, cards and buttons — a
   whole card being an <a> should not be underlined — but it leaves a link
   inside a SENTENCE indistinguishable from the text around it. That is a
   WCAG 1.4.1 failure, not a style preference: with --lp-link only ~1.1:1
   against body text, colour cannot be the signal even where it is applied,
   and in prose it mostly was not applied at all. Found 2026-10-28 on the
   "Build with panes" links, which rendered as plain text.

   Marked with :where() so specificity stays 0 and any component can still
   override. Opt a new prose region in by adding it here, or by putting
   `lp-prose` on the container. */
:where(.lp-prose,
       .lp-guide-body, .lp-guide-note, .lp-guide-lede,
       .lp-catalog-body, .lp-catalog-linking, .lp-catalog-embed,
       .lp-catalog-columns, .lp-catalog-attrs, .lp-catalog-freshness,
       .lp-catalog-guide-link, .lp-catalog-intro-guide,
       .lp-catalog-pane-lede) a {
  color: var(--lp-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: from-font;
}
:where(.lp-prose,
       .lp-guide-body, .lp-guide-note, .lp-guide-lede,
       .lp-catalog-body, .lp-catalog-linking, .lp-catalog-embed,
       .lp-catalog-columns, .lp-catalog-attrs, .lp-catalog-freshness,
       .lp-catalog-guide-link, .lp-catalog-intro-guide,
       .lp-catalog-pane-lede) a:hover {
  color: var(--lp-link-hover);
}
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.lp-container-wide { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* Primitive: a pane */
.pane {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  box-shadow: var(--lp-shadow-2);
}
.pane-lg { border-radius: var(--lp-r-lg); }

/* Buttons */
.btn, .btn-primary, .btn-ghost, .btn-amber {
  white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--lp-r-pill);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  /* Every other .btn on the site is an <a>, which gets the pointer for
     free. The catalog's "Browse all N panes" is a real <button>, and a
     <button> defaults to cursor: default — so this belongs on the shared
     class, not on the one page that noticed. */
  cursor: pointer;
  transition: transform .2s var(--lp-ease), box-shadow .25s var(--lp-ease), background .2s var(--lp-ease);
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lp-ink);
  color: #fff8e8;
  box-shadow: 0 0 0 0 rgba(255,197,24,0), var(--lp-shadow-2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255,197,24,.18), 0 10px 24px -10px rgba(0,0,0,.35);
}
.btn-ghost {
  background: transparent; color: var(--lp-ink);
  border-color: var(--lp-line-strong);
}
.btn-ghost:hover { background: var(--lp-paper); box-shadow: var(--lp-shadow-2); }
.btn-amber {
  background: var(--lp-amber); color: var(--lp-ink-on-accent);
}
.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(245,197,24,.7), 0 0 0 4px rgba(245,197,24,.18);
}

/* Tag / eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--lp-font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lp-ink-3);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-amber); box-shadow: 0 0 10px var(--lp-amber); }

/* Subtle striped placeholder (for imagery we don't have) */
.ph-stripe {
  background-image:
    repeating-linear-gradient(135deg, rgba(26,24,20,.05) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #fdfaf2, #f4ede0);
  color: var(--lp-ink-3);
  font-family: var(--lp-font-mono);
  font-size: 11px;
  display: grid; place-items: center;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--lp-amber);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Section scaffolding */
section { position: relative; }
.section-title {
  font-family: var(--lp-font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--lp-ember); }
.lede {
  font-size: 18px;
  color: var(--lp-ink-2);
  max-width: 62ch;
}
