/* ============================================================================
   landing.css - public landing page. Old Forge letterpress language.
   Self-contained (no Bootstrap, no product CSS), fully theme-aware in BOTH
   light (paper) and dark (forge), responsive. This is the reference for the
   unified design language the rest of the app migrates onto.
   ========================================================================== */

/* ── Tokens. Dark (forge) is the :root default; light (paper) overrides. ──── */
:root {
  --paper:    #15120d;   /* page */
  --paper-2:  #1b1711;   /* raised */
  --ink:      #f1e9d6;   /* primary text */
  --ink-2:    #c3b89f;   /* secondary text */
  --muted:    #8a7f68;   /* tertiary text - still ≥4.5:1 on --paper */
  --ember:    #e5602f;
  --ember-deep:#c8441c;
  --copper:   #cf9152;
  --steel:    #8aa6bd;
  --line:     rgba(241,233,214,.16);
  --line-soft:rgba(241,233,214,.08);
  --cta-bg:   #e5602f;
  --cta-fg:   #1a140d;   /* near-black on ember = high contrast in dark */
  --grain-op: .05;
  --dot:      rgba(241,233,214,.10);   /* halftone screen - see .lp-dots */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
[data-bs-theme="light"] {
  --paper:    #efe7d6;
  --paper-2:  #f7f1e3;
  --ink:      #1d1810;
  --ink-2:    #4b4534;
  --muted:    #6f6650;   /* darker than the dark-theme muted so it clears 4.5:1 on paper */
  --ember:    #c8441c;
  --ember-deep:#8c2e12;
  --copper:   #9c6326;
  --steel:    #3d5568;
  --line:     rgba(29,24,16,.16);
  --line-soft:rgba(29,24,16,.08);
  --cta-bg:   #c8441c;
  --cta-fg:   #fdf8ec;   /* warm white on deep ember = legible in light */
  --grain-op: .04;
  --dot:      rgba(29,24,16,.13);   /* ink dots need more weight on paper than paper dots do on coal */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.lp {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* fractal-noise grain - the Old Forge signature */
.lp-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Halftone screen - the second half of the Old Forge signature (2026-08-08).
   Letterpress IS a dot screen, so this is the printing idiom rather than a
   borrowed one. Deliberately NOT canvas: this page is app.wegweiser.tech for
   anyone not signed in, so it is the one page where a particle system would
   cost us something real.

   Sibling of .lp-grain rather than a layer on it, because .lp-grain carries
   opacity: var(--grain-op) and opacity multiplies down - dots parented there
   could never exceed 5%.

   The mask is what makes it Field B instead of an even screen: dots crowd the
   edges and clear where the words sit. It is fixed, so the vignette tracks the
   viewport as you scroll rather than sliding off. Where mask-image is
   unsupported the dots simply render evenly, which is a poorer version of the
   same idea and not a broken page. */
.lp-dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at center, var(--dot) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 46%, transparent 22%, #000 92%);
          mask-image: radial-gradient(ellipse 62% 56% at 50% 46%, transparent 22%, #000 92%);
}

.lp-top, .lp-main, .lp-foot { position: relative; z-index: 1; }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.lp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem);
}
.lp-brand {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
/* windrose mark - masked SVG tinted copper, same technique as .wg-brand__icon
   in core.css (this page is self-contained and doesn't load product CSS). */
.lp-brand__icon {
  width: 28px; height: 28px; display: block; flex-shrink: 0;
  background-color: var(--copper);
  -webkit-mask: url('../images/logo-icon.svg') center / contain no-repeat;
          mask: url('../images/logo-icon.svg') center / contain no-repeat;
}
.lp-theme {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--ink-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.lp-theme:hover { color: var(--ember); border-color: var(--ember); }
[data-bs-theme="dark"] .lp-ico-moon { display: none; }
[data-bs-theme="light"] .lp-ico-sun { display: none; }

/* ── Main: editorial two-column ─────────────────────────────────────────── */
.lp-main {
  flex: 0 0 auto;
  min-height: min(80vh, 760px);
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3.5rem) 2rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* entry / headword */
.lp-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--ember); margin: 0 0 1rem;
}
.lp-word {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 1.75rem; color: var(--ink);
}
/* Registered trade mark symbol on the header brand - same geometry as .wg-reg
   in core.css and .rmark on the marketing site. (The big hero wordmark stays
   unmarked; the header asserts the registration.) */
.lp-rmark {
  font-size: 0.55em; font-weight: 500; line-height: 1;
  letter-spacing: 0; margin-left: 0.05em;
  vertical-align: 0.5em; color: var(--ink-2);
}
.lp-def {
  border-top: 1px solid var(--line); padding-top: 1.25rem; max-width: 30rem;
}
.lp-def__meta { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.lp-pos { font-style: italic; color: var(--ink-2); font-size: 1rem; }
.lp-ipa { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.lp-def__meaning { font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin: 0 0 0.85rem; }
.lp-def__context { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* act / value + doors */
.lp-lede { font-size: 1.3rem; line-height: 1.45; color: var(--ink); margin: 0 0 1.75rem; letter-spacing: -0.005em; }
.lp-points { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.lp-points li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.lp-pt-k { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ember); padding-top: 0.15rem; }
.lp-points strong { display: block; font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.1rem; }
.lp-points span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }

/* CTAs */
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 10px; font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.lp-btn--primary { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.lp-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(200,68,28,.32); }
.lp-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.lp-btn--ghost:hover { border-color: var(--ember); color: var(--ember); }

.lp-sov {
  display: flex; align-items: center; gap: 0.45rem; margin: 0;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted);
}
.lp-sov svg { color: var(--copper); flex-shrink: 0; }

/* scroll cue down to the capabilities */
.lp-more {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.lp-more:hover { color: var(--ember); }
.lp-more svg { transition: transform .2s; }
.lp-more:hover svg { transform: translateY(2px); }

/* ── Feature deck (the senses) ──────────────────────────────────────────── */
.lp-deck {
  position: relative; z-index: 1;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 1.5rem;
}
.lp-deck__head { max-width: 42rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.lp-deck__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.04; letter-spacing: -0.022em;
  margin: 0 0 0.75rem; color: var(--ink);
}
.lp-deck__sub { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* each capability = a numbered dictionary sense */
.lp-features { list-style: none; margin: 0; padding: 0; }
.lp-feature {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3.5vw, 2.75rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
}
.lp-feature:last-child { border-bottom: 1px solid var(--line); }
.lp-feature__k {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ember);
  padding-top: 0.5rem; letter-spacing: 0.06em;
}
.lp-feature__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 0.5rem; color: var(--ink);
}
.lp-feature__gloss {
  font-style: italic; font-size: 1.1rem; line-height: 1.4;
  color: var(--ink); margin: 0 0 0.65rem;
}
.lp-feature__detail {
  font-size: 0.96rem; line-height: 1.65; color: var(--ink-2);
  margin: 0; max-width: 48rem;
}

/* ── Close band: back to the two doors ──────────────────────────────────── */
.lp-close {
  position: relative; z-index: 1;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5.5rem);
}
.lp-close__line {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 1.5rem; max-width: 24rem;
}
.lp-close .lp-cta { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lp-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem); border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted);
}
.lp-foot__nav { display: flex; gap: 1.25rem; }
.lp-foot__nav a { color: var(--muted); text-decoration: none; }
.lp-foot__nav a:hover { color: var(--ember); }
/* inline links in the copyright / trade-mark lines stay quiet until hovered */
.lp-foot__c a, .lp-foot__tm a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lp-foot__c a:hover, .lp-foot__tm a:hover { color: var(--ember); }
/* flex-basis:100% drops the notice onto its own line below the copyright row. */
.lp-foot__tm {
  flex-basis: 100%; margin: 0; font-size: 0.68rem; line-height: 1.5;
  color: var(--muted); opacity: 0.75;
}
.lp-rmark-sm { font-size: 0.85em; vertical-align: text-top; line-height: 1.2; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lp-main { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; padding-top: 1rem; min-height: 0; }
  .lp-def { max-width: none; }
}

/* ── Blog (Notes) ───────────────────────────────────────────────────────
   Added 2026-08-11 with the blog. Reuses the landing tokens throughout so
   the two public surfaces are one publication, not two that resemble
   each other. Reading column capped at 38rem: the landing page is a poster,
   this is prose, and prose needs a measure. */
/* The landing page's .lp-main is a two-column poster grid; prose needs one
   column, top-aligned, with a real measure. */
.lp-blog {
  display: block;
  min-height: 0;
  max-width: 46rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.lp-blog .lp-entry { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
/* Inline links in blog chrome (not prose) - without this they fall back to
   browser blue, which is the one colour this palette does not contain. */
.lp-blog .lp-def__context a { color: var(--ember); text-underline-offset: 3px; }
.lp-word--sm { font-size: clamp(2.4rem, 7vw, 4.2rem); }

.lp-posts { list-style: none; margin: 0; padding: 0; }
.lp-post {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.lp-post:last-child { border-bottom: 0; }
.lp-post__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 0.4rem;
}
.lp-post__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.25;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}
.lp-post__title a { color: var(--ink); text-decoration: none; }
.lp-post__title a:hover { color: var(--ember); }
.lp-post__sum { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; margin: 0 0 0.6rem; max-width: 40rem; }

.lp-article { max-width: 40rem; }
.lp-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); text-decoration: none; margin-bottom: 1.5rem;
}
.lp-back:hover { color: var(--ember); }
.lp-article__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.2rem 0 1rem;
}
.lp-deck__title--sm { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }

/* Prose: the rendered markdown. Everything here is a type decision, not a
   layout one, so it stays scoped to .lp-prose and cannot leak into the app. */
.lp-prose { color: var(--ink-2); font-size: 1.06rem; line-height: 1.72; }
.lp-prose > * + * { margin-top: 1.1rem; }
.lp-prose h2 {
  font-family: var(--font-serif); color: var(--ink); font-weight: 600;
  font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em;
  margin-top: 2.4rem; margin-bottom: -0.2rem;
}
.lp-prose h3 {
  font-family: var(--font-serif); color: var(--ink); font-weight: 600;
  font-size: 1.18rem; margin-top: 1.8rem; margin-bottom: -0.3rem;
}
.lp-prose strong { color: var(--ink); font-weight: 600; }
.lp-prose a { color: var(--ember); text-underline-offset: 3px; }
.lp-prose ul, .lp-prose ol { padding-left: 1.2rem; }
.lp-prose li + li { margin-top: 0.45rem; }
.lp-prose li::marker { color: var(--copper); }
.lp-prose code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 0.1em 0.35em; color: var(--ink);
}
.lp-prose pre {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.9rem 1rem; overflow-x: auto;
}
.lp-prose pre code { background: none; border: 0; padding: 0; font-size: 0.82rem; line-height: 1.6; }
.lp-prose blockquote {
  border-left: 2px solid var(--ember); padding-left: 1rem;
  color: var(--ink-2); font-style: italic; margin-left: 0;
}
.lp-prose img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.lp-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.lp-prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.lp-prose th, .lp-prose td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line-soft); }
.lp-prose th { color: var(--ink); font-weight: 600; }

@media (max-width: 520px) {
  .lp-cta { flex-direction: column; }
  .lp-btn { width: 100%; }
  .lp-foot { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .lp-feature { gap: 0.85rem; }
  .lp-feature__gloss { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn, .lp-more svg { transition: none; }
}
