@font-face{font-family:'Geist';src:url(/fonts/geist-latin-ext-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geist';src:url(/fonts/geist-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist Mono';src:url(/fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geist Mono';src:url(/fonts/geist-mono-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Tokens and rules from lafabrique.ai design/VISUAL_IDENTITY.md */
:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #101214);
  --ink: light-dark(#101214, #eef0f3);
  --mute: light-dark(#5f646c, #8d939b);
  --hair: light-dark(#dfe1e5, #2a2e33);
  --card: light-dark(#f2f3f5, #1a1d21);
  /* Brand green */
  --field: #30ba78;
  --on: #0f1115;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; min-width: 0; }
body {
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 max(4vw, 16px) 48px;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  letter-spacing: -0.003em;
  overflow-wrap: break-word;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 22px 0 14px; border-bottom: 1.5px solid var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 22px; font-weight: 500; letter-spacing: -0.035em; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo .ai { font-family: var(--mono); font-weight: 400; letter-spacing: 0; color: var(--mute); font-size: .62em; margin-left: .12em; }

.out { display: inline-block; line-height: 44px; color: inherit; text-underline-offset: 3px; text-decoration: underline 2px var(--field); }
.out span { color: var(--mute); }

.band { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; background: var(--field); color: var(--on); border-radius: 3px; margin-top: 16px; padding: 16px clamp(16px, 2vw, 24px); }
.pic { width: 48px; height: 48px; }
h1 { margin: 0; font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.lede { grid-column: 2; margin: 4px 0 0; line-height: 1.4; }
.strip { grid-column: 1 / -1; margin-top: 14px !important; }
.strip { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid currentColor; font: 400 12px/1.35 var(--mono); letter-spacing: 0.01em; }
.strip > div { padding: 8px 16px 0 0; margin-right: 16px; border-right: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.strip > div:last-child { border-right: 0; margin-right: 0; }
.strip dt { opacity: .82; }
.strip dd { margin: 0; }

main { max-width: 68ch; padding-top: 24px; }

#log > div::before { display: block; font: 400 12px/1.35 var(--mono); letter-spacing: 0.01em; color: var(--mute); margin-bottom: 6px; }
#log .user { border-top: 1.5px solid var(--ink); padding: 12px 0 16px; font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
#log .user::before { content: "Question"; font-weight: 400; }
#log .assistant { border-top: 1px solid var(--hair); padding: 12px 0 32px; }
#log .assistant::before { content: "Answer"; }
#log .assistant p { margin: 0 0 12px; }
#log ul, #log ol { margin: 0 0 16px; padding: 0; list-style: none; }
#log li { position: relative; padding-left: 22px; margin-bottom: 4px; }
#log ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--field); }
#log ol { counter-reset: item; }
#log ol li { counter-increment: item; padding-left: 30px; }
#log ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; font: 400 12px/2.3 var(--mono); color: var(--mute); }
#log strong { font-weight: 500; padding: 0 3px; background: color-mix(in srgb, var(--field) 14%, var(--bg)); }

#examples { counter-reset: example; border-top: 1.5px solid var(--ink); margin-bottom: 32px; }
#examples button { counter-increment: example; display: flex; align-items: baseline; gap: 16px; width: 100%; min-height: 48px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#examples button::before { content: counter(example, decimal-leading-zero); font: 400 12px var(--mono); color: var(--mute); }
#examples button:hover { background: color-mix(in srgb, var(--field) 14%, var(--bg)); }

#form { display: flex; gap: 8px; }
#question { flex: 1; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 3px; background: var(--card); color: inherit; font: inherit; }
#question::placeholder { color: var(--mute); }
#form button { min-height: 48px; min-width: 88px; border: 0; border-radius: 3px; background: var(--ink); color: var(--bg); font: 500 17px var(--sans); cursor: pointer; }

@media (max-width: 640px) { body { font-size: 16px; } }
