/* Firefly brand tokens and shared styles. Source: firefly-branding skill.
   Fonts: Stabil Grotesk is not bundled, so the skill's fallback stack applies. */

:root {
  --orange: #FE661F;
  --yellow: #FFC817;
  --purple: #868AFC;
  --lilac: #C2C2FF;
  --black: #131313;
  --white: #FEFEFF;
  --link: #474A88;
  --radius: 14px;
  --font-head: "Stabil Grotesk", "Aptos Display", "Inter", "Helvetica Neue", sans-serif;
  --font-body: "Stabil Grotesk Light", "Aptos", "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "Monosten A", "Courier New", "Roboto Mono", monospace;
}

* { margin: 0; box-sizing: border-box; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }

/* Sections: full-bleed color, constrained inner column */
.section { width: 100%; padding: 4rem 0; }
.section-inner { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }
.section-orange { background: var(--orange); }
.section-yellow { background: var(--yellow); }
.section-lilac { background: var(--lilac); }
.section-white { background: var(--white); }

/* Asymmetric 40/60 split */
.split { display: grid; grid-template-columns: 2fr 3fr; gap: 2rem; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* Type */
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--black); }
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem); line-height: 1.2; font-weight: 600; margin-bottom: 0.4rem; }
p + p { margin-top: 0.75rem; }
.lede { font-size: 1.3rem; margin-top: 1.25rem; max-width: 34rem; }
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.side-note { margin-top: 1rem; max-width: 22rem; }

/* Solid-fill blocks: no borders, no shadows */
.block { border-radius: var(--radius); padding: 1.5rem 2rem; background: var(--yellow); }
.block-orange { background: var(--orange); }
.block-yellow { background: var(--yellow); }
.block-lilac { background: var(--lilac); }
.block-white { background: var(--white); }

/* Copy-ready prompt */
.prompt {
  display: block;
  margin-top: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--black);
  color: var(--yellow);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.prompt-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1rem; display: block; }

/* Hand-drawn underline accent */
.emphasis { position: relative; display: inline-block; z-index: 0; }
.emphasis::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: -0.12em;
  height: 0.28em;
  background: url("underline.svg") no-repeat center / 100% 100%;
  transform: rotate(-1deg);
  z-index: -1;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.nav .logo { width: 44px; height: 44px; margin-right: 0.75rem; }
.nav a {
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.05rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.nav a:hover { background: var(--white); }
.nav a[aria-current="page"] { background: var(--yellow); }
.nav a:focus-visible, .section a:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

.footer { padding: 2rem 0; background: var(--white); font-size: 0.95rem; }

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .section-inner { padding: 0 1.25rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .nav { margin-bottom: 2rem; }
  .block { padding: 1.25rem 1.5rem; }
  .lede { font-size: 1.15rem; }
}

/* Added for content pages */
code { font-family: var(--font-mono); font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--white); }
.block-white code, .section-white .block-white code { background: var(--yellow); }
.block code.prompt { padding: 0.9rem 1.1rem; background: var(--black); border-radius: 12px; font-size: 1rem; }
@media (min-width: 769px) {
  .split > div:first-child { position: sticky; top: 1.5rem; }
}
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 1.6rem;
  background: var(--black);
  color: var(--yellow);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.when { margin-top: 0.9rem; }
.when .label { margin-bottom: 0.2rem; display: block; }
.fineprint { font-size: 0.95rem; margin-top: 0.9rem; }
.step-text + .prompt-label { margin-top: 1rem; }
.expect { margin-top: 0.9rem; font-size: 1rem; }
.expect .label { margin-bottom: 0.1rem; display: block; }
.prompt.multi { white-space: pre-wrap; }
