/*
 * Lampway marketing site styles.
 *
 * Constraints (locked 2026-05-10 v0.5 goodwill release pivot):
 *   - No JS, no analytics, no cookies, no third-party scripts.
 *   - Single CSS file, hand-authored, no build step.
 *   - System fonts only (no web-font fetches).
 *   - Single accent color (amber — matches the dashboard default).
 *
 * The look intentionally pairs with the dashboard's "Paper" theme for
 * brand continuity: warm paper background, dark ink, amber accent.
 */

:root {
  --ink: #1a1611;
  --ink-soft: #4a4238;
  --paper: #faf6ef;
  --paper-warm: #f4ecdc;
  --rule: #d8cdb5;
  --accent: #c97a1a;
  --accent-soft: #f0d49f;
  --max-w: 70ch;
  --shadow: 0 1px 0 rgba(26, 22, 17, 0.06), 0 2px 8px rgba(26, 22, 17, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  background: var(--paper-warm);
}

header.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header.site-header a.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

header.site-header a.brand::before {
  content: "◊ ";
  color: var(--accent);
}

header.site-header nav a {
  color: var(--ink-soft);
  margin-left: 1.5rem;
  text-decoration: none;
  font-size: 0.95rem;
}

header.site-header nav a:hover,
header.site-header nav a:focus {
  color: var(--accent);
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 2.25rem; margin: 0.5rem 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0.75rem 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--ink); }

.hero {
  margin-top: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cta {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.05s ease;
}

.cta-primary {
  background: var(--accent);
  color: var(--paper);
}

.cta-primary:hover, .cta-primary:focus {
  background: var(--ink);
  color: var(--paper);
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.cta-secondary:hover, .cta-secondary:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature h3 { margin-top: 0; }
.feature p:last-child { margin-bottom: 0; }

ol.steps, ul.bare {
  padding-left: 1.5rem;
}

ol.steps li, ul.bare li {
  margin-bottom: 0.5rem;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
    "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

code {
  background: var(--paper-warm);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: transparent;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--rule);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper-warm);
  font-weight: 600;
}

aside.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  border-radius: 0 4px 4px 0;
}

aside.callout p:last-child { margin-bottom: 0; }

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem;
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--ink-soft);
  margin-right: 1rem;
}

footer.site-footer a:hover, footer.site-footer a:focus {
  color: var(--accent);
}

/* Voice slot — used by Help Center scaffolding to flag placeholder copy
 * Martin still needs to fill in. Renders visibly in dev so a missed slot
 * stands out at deploy time. Remove this rule once all slots are filled. */
.voice-slot {
  background: #fff3a1;
  border-left: 3px solid #b8860b;
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
  color: #6b5500;
  font-style: italic;
}

.voice-slot::before {
  content: "✎ VOICE SLOT — ";
  font-weight: 700;
  font-style: normal;
}
