/* Launch Lantern: "Porch light" (docs/spec/website.md#visual-direction). A warm paper page, serif headlines, one amber
   lantern accent, full-width bands. Fonts are served from /static/fonts, never a third party. Works from 360px wide. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f5efe3;
  --card: #fffaf0;
  --ink: #1c1813;
  --body: #3b342b;
  --mute: #5f5649;
  --line: #dcd2bf;
  --amber: #ffb340;
  --on-amber: #1a1205;
  --amber-ink: #a35a00;
  --night: #161310;
  --night-deep: #0b0a08;
  --night-line: #2e2922;
  --night-ink: #f5efe3;
  --night-mute: #c7bdab;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: inherit; }
a:hover { color: var(--amber-ink); }
::selection { background: var(--amber); color: var(--on-amber); }

:focus-visible {
  outline: 3px solid var(--amber-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible, .amber :focus-visible, .site-footer :focus-visible { outline-color: currentColor; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: .96; letter-spacing: -.025em; max-width: 14ch; }
h1 em, h2 em { color: var(--amber-ink); }
h2 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -.02em; margin-bottom: 20px; }
h3 { font-size: 30px; line-height: 1.1; }
.mono, .eyebrow, .label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.eyebrow { font-weight: 400; margin: 0 0 24px; }
.label { margin: 0 0 10px; }
.tag {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--amber-ink);
  color: var(--amber-ink);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.lede { font-size: 20px; line-height: 1.55; color: var(--body); margin: 0; max-width: 52ch; text-wrap: pretty; }
.mute { color: var(--mute); }
.body { color: var(--body); font-size: 18px; max-width: 46ch; text-wrap: pretty; margin: 0; }
p { margin: 0 0 12px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #000; color: var(--amber); }
.btn.big { font-size: 17px; padding: 16px 28px; }
.btn.lit { background: var(--amber); color: var(--on-amber); font-weight: 700; }
.btn.lit:hover { background: var(--ink); color: var(--amber); }
.dark .btn.lit:hover, .btn.lit.on-night:hover { background: #fff; color: var(--on-amber); }
.amber .btn { background: var(--on-amber); color: var(--amber); font-weight: 700; }
.amber .btn:hover { background: #000; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 15px 26px; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0 0; }
.text-link { font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 239, 227, .94);
  backdrop-filter: blur(8px);
}
.bar { position: relative; display: flex; align-items: center; gap: 24px; min-height: 72px; }
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.lamp {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 179, 64, .25), 0 0 18px 4px rgba(255, 179, 64, .55);
}
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a, .menu nav a { text-decoration: none; }
.tel { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu { display: none; }

/* Bands: full-width sections, each with its own wrap */
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.dark, .band.amber, .band.dark + .band, .band.amber + .band { border-top: 0; }
.dark { background: var(--night); color: var(--night-ink); }
.dark .body, .dark .mute { color: var(--night-mute); }
.dark .tag { border-color: var(--amber); color: var(--amber); }
.dark .label { color: var(--amber); }
.dark a:hover { color: var(--amber); }
.amber { background: var(--amber); color: var(--on-amber); }
.amber a:hover { color: var(--on-amber); }
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.page-hero { padding: clamp(56px, 9vw, 112px) 0 56px; }
.page-hero .lede { font-size: 22px; margin-top: 24px; max-width: 48ch; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 80px; align-items: start; }
.split.center { align-items: center; }
.hero .split { margin-top: 48px; align-items: end; }
.heading-row { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.heading-row h2 { margin: 0; }
.heading-row p { font-size: 18px; color: var(--body); margin: 0; max-width: 40ch; }
/* A heading on the left, its content spanning the rest (About, Pricing's terms) */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 64px; }
.row > h2 { font-size: 38px; line-height: 1.05; margin: 0; }
.row > .span { grid-column: span 2; min-width: 0; }
.row.tight { padding: 48px 0; }

/* Home with the demo line on: the demo number in an outlined amber call button, the largest thing on the page. The
   headline steps down so the number outranks it at every width; the number stays on one line at 360px. */
.hero.demo h1 { font-size: clamp(36px, 6.4vw, 76px); }
.call {
  display: block;
  text-decoration: none;
  background: var(--night);
  border: 2px solid var(--amber);
  border-radius: 28px;
  padding: 24px clamp(18px, 4vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(160, 90, 0, .55);
}
.call span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.call span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 3px rgba(255, 179, 64, .7);
}
.call b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 8.4vw, 100px);
  line-height: 1.05;
  color: var(--night-ink);
  white-space: nowrap;
  margin-top: 8px;
}
.call:hover b { color: var(--amber); }
.under-call { font-size: 15px; color: var(--mute); margin: 14px 0 0; max-width: 46ch; }
.under-call a { color: var(--ink); font-weight: 600; }
/* The call button again under "We're new": underlined, inline */
.call.inline {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  background: none;
  border: 0;
  border-bottom: 3px solid var(--amber);
  border-radius: 0;
  padding: 0 0 4px;
  box-shadow: none;
}
.call.inline span { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.call.inline span::before { display: none; }
.call.inline b { font-size: 44px; line-height: 1; color: var(--ink); margin: 0; }

/* Home: the evening timeline */
.clock { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.clock li { position: relative; padding: 0 0 30px 32px; }
.clock li:last-child { padding-bottom: 0; }
.clock li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.clock b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--amber-ink); margin-bottom: 4px; }
.clock span { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.2; text-wrap: pretty; }

/* Home: the fictional example, drawn as a phone (text only) */
.phone {
  background: var(--night-deep);
  border: 1px solid #332d25;
  border-radius: 40px;
  padding: 20px 18px 24px;
  max-width: 400px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 40px 80px -40px rgba(255, 179, 64, .35);
}
.phone-title { text-align: center; font-size: 13px; font-weight: 600; color: var(--night-mute); margin: 4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid #26211b; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bub { padding: 10px 14px; max-width: 84%; font-size: 15px; line-height: 1.45; }
.bub.ai { background: #26211b; color: var(--night-ink); border-radius: 18px 18px 18px 6px; }
.bub.me { background: var(--amber); color: var(--on-amber); border-radius: 18px 18px 6px 18px; margin-left: auto; }
.sys { text-align: center; font-family: var(--mono); color: #a89e8c; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 8px; }

/* Home: how it works, numbered from the list's order */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--amber-ink); }
.step h3 { margin: 12px 0 10px; }
.step p { margin: 0; color: var(--mute); font-size: 16px; text-wrap: pretty; }

/* Home: what's always true, numbered */
.facts { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: fact; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: 64px; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: fact; color: var(--mute); font-size: 16px; }
.facts li::before { content: counter(fact, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--amber-ink); padding-top: 8px; grid-row: span 2; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--ink); }

/* The price */
.amount { font-family: var(--serif); font-size: clamp(54px, 7.4vw, 96px); line-height: .9; letter-spacing: -.03em; margin: 0; }
.amount.huge { font-size: clamp(60px, 14vw, 184px); line-height: .88; letter-spacing: -.035em; }
.amount.mid { line-height: .95; }
.price-heading { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; line-height: 1.4; }
.page-hero .price-heading { color: var(--amber-ink); margin-bottom: 12px; }
.price-note { font-size: 18px; margin: 18px 0 0; max-width: 40ch; }
.page-hero .price-note { font-size: 22px; color: var(--body); margin-top: 22px; max-width: none; }
.terms { list-style: none; padding: 0; margin: 0; }
.terms li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; text-wrap: pretty; }
.amber .terms li { border-color: rgba(26, 18, 5, .25); }
/* Pricing's numbered terms */
.terms.numbered { counter-reset: term; }
.terms.numbered li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; font-size: 17px; counter-increment: term; }
.terms.numbered li::before { content: counter(term, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--amber-ink); padding-top: 3px; }
/* About's claims, each with a lantern dot */
.terms.dots li { display: flex; gap: 14px; font-size: 17px; }
.terms.dots li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 10px; }
/* Pricing: what you get, on the night band */
.gets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.gets li { border-top: 1px solid var(--amber); padding-top: 16px; font-size: 17px; color: #e8dfcf; text-wrap: pretty; }
.dark .tel-link { color: var(--amber); font-weight: 600; text-decoration: none; }
.dark .tel-link:hover { color: #fff; }

/* Home: we're new, and about */
.new h2 { font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.025em; max-width: 12ch; margin: 0; }
.new .split { margin-top: 40px; }
.side { border-top: 2px solid var(--ink); padding-top: 18px; }
.side + .side { margin-top: 28px; }
.links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Contact */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 48px; margin-top: 56px; }
.contact-card { display: block; border-top: 2px solid var(--ink); padding: 20px 0 28px; text-decoration: none; }
.contact-card .label { display: block; margin: 0; }
.contact-card .big { display: block; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.15; margin-top: 8px; overflow-wrap: anywhere; font-style: normal; }

.callout { margin-top: 40px; border-radius: 28px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.callout p { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; max-width: 26ch; }

/* Get started: what happens next, as cards */
.then { list-style: none; padding: 0; margin: 0; counter-reset: then; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.then li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; font-family: var(--serif); font-size: 24px; line-height: 1.2; text-wrap: pretty; counter-increment: then; }
.then li::before {
  content: counter(then);
  display: flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.then-wrap { padding-bottom: 64px; }
.soon { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 0 0 18px; }

/* The legal pages: a side menu of the three, and the Markdown in one readable column */
.legal-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 64px; align-items: start; padding: clamp(48px, 7vw, 96px) 24px 96px; }
.legal-nav { order: -1; display: flex; flex-direction: column; position: sticky; top: 96px; font-size: 15px; }
.legal-nav a { text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); }
.legal-nav a:last-child { border-bottom: 1px solid var(--line); }
.legal-nav a[aria-current] { font-weight: 700; }
.legal { grid-column: span 3; min-width: 0; max-width: 68ch; }
.legal h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 0 0 20px; max-width: none; }
.legal h2 { font-size: 30px; line-height: 1.15; margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 24px; margin: 24px 0 8px; }
.legal p, .legal li { color: #2c261f; }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 12px; }
.legal li + li { margin-top: 6px; }
.legal .version { font-family: var(--mono); font-size: 14px; color: var(--amber-ink); margin: 0 0 24px; }

/* 404 */
.lost { min-height: 60vh; padding: clamp(72px, 12vw, 160px) 0; }
.lost h1 { font-size: clamp(52px, 9vw, 120px); line-height: .95; max-width: 11ch; }
.lost .actions { margin-top: 40px; }
.lost .btn.ghost { padding: 12px 22px; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-mute); font-size: 15px; }
.site-footer a { color: var(--night-ink); }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px 48px; padding-top: 64px; padding-bottom: 40px; }
.footer-grid p { margin: 0; }
.footer-grid .footer-mark { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--serif); font-size: 26px; color: var(--night-ink); line-height: 1; }
.footer-mark .lamp { width: 12px; height: 12px; box-shadow: 0 0 14px 3px rgba(255, 179, 64, .6); }
.identity { font-style: normal; }
.site-footer .identity { display: flex; flex-direction: column; gap: 4px; }
.site-footer .identity br { display: none; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.copyright { border-top: 1px solid var(--night-line); padding-top: 20px; padding-bottom: 96px; font-size: 13px; margin: 0; }

/* Mobile: the nav folds into a menu; the number and Get started stay visible. */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .legal-layout { padding-left: 16px; padding-right: 16px; }
  .legal-nav { position: static; }
  .row > .span, .legal { grid-column: auto; }
  .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark menu" "tel get-started";
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .mark { grid-area: mark; font-size: 24px; }
  .nav { display: none; }
  .menu { display: block; grid-area: menu; justify-self: end; }
  .tel { grid-area: tel; }
  .bar > .btn { grid-area: get-started; }
  .menu summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: " \25BE"; }
  .menu[open] summary::after { content: " \25B4"; }
  .menu nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .menu nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .callout { padding: 28px 20px; }
}
