/* lonemountainintelligence.com: the brand's charcoal and blue-black, its amber, a serif for
   display and a clean sans for reading (brand-spec.md). Font families stand in until licensed ones are chosen. */
:root {
  --ground: #10151d;
  --ground-deep: #0a0e15;
  --card: #18202b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --body: #cdd6e1;
  --muted: #a8b4c4;
  --amber: #d9b98a;
  --glow: #ffc98a;
  --ok: #8fc9a3;
  --critical: #ff7a5c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); }
img { max-width: 100%; display: block; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 6vw; background: linear-gradient(180deg, rgba(10, 14, 21, 0.92), rgba(10, 14, 21, 0.7)); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wordmark { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); }
/* The mark turns (assets/js/mark.js); the still SVG shows until its first frame, and without script. */
.site-header .wordmark canvas { width: 52px; height: 52px; display: block; background: url(/assets/img/mark-full.svg) center / contain no-repeat; }
.site-header .wordmark img { height: 30.6px; width: auto; display: block; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 6vw 56px; color: var(--muted); font-size: 14px; line-height: 1.7; background: var(--ground-deep); position: relative; z-index: 2; }
.site-footer .name { color: var(--text); }
.site-footer a { color: var(--muted); }

/* Reading pages */
.page { max-width: 760px; margin: 0 auto; padding: 80px 6vw 100px; }
.page.wide { max-width: 1040px; }
.kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; margin: 0 0 24px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 56px 0 16px; }
h3 { font-size: 17px; margin: 28px 0 8px; }
p, li { font-size: 18px; line-height: 1.65; color: var(--body); }
p { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 600; }
.lede { font-size: 21px; }
.fine { font-size: 14px; color: var(--muted); }
blockquote { margin: 40px 0; padding: 0 0 0 22px; border-left: 2px solid var(--amber); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--text); font-style: italic; }
.button { display: inline-block; padding: 13px 22px; border-radius: 999px; background: linear-gradient(180deg, var(--glow), var(--amber)); color: #1a1408; font-weight: 600; text-decoration: none; font-size: 16px; }
.button.quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.card { background: linear-gradient(180deg, #202a37, var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--text); }
.card p { font-size: 16px; margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
th { color: var(--muted); font-weight: 500; }
td.works { color: var(--ok); }
td.stops { color: var(--critical); }

/* The home page: the house fixed behind, the words scrolling over it */
.home #scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.home main { position: relative; z-index: 1; width: min(560px, 44vw); margin-left: 6vw; }
.home::before { content: ""; position: fixed; inset: 0 auto 0 0; width: 54vw; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 21, 29, 0.86), rgba(16, 21, 29, 0.5) 70%, rgba(16, 21, 29, 0)); }
.chapter { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 12vh 0; }
.chapter h2 { margin-top: 0; }
.chapter .four { display: grid; gap: 16px; }
.chapter .four p { margin: 0; }
.house-says { position: fixed; right: 32px; bottom: 32px; width: 330px; z-index: 2; font-size: 12.5px; line-height: 1.45; }
.house-says .clock { font-family: var(--serif); font-size: 17px; margin-bottom: 8px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.house-says ol { list-style: none; margin: 0; padding: 0; }
.house-says li { font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-left: 2px solid var(--amber); margin-bottom: 6px; color: var(--muted);
  background: rgba(16, 21, 29, 0.66); backdrop-filter: blur(6px); }
.house-says li strong { color: var(--text); }

/* The live house */
.live::before { content: ""; position: fixed; inset: 0 auto 0 0; width: 50vw; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 21, 29, 0.88), rgba(16, 21, 29, 0.5) 70%, rgba(16, 21, 29, 0)); }
.live #scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.live .intro { position: absolute; top: 96px; left: 6vw; width: min(520px, 88vw); z-index: 2; }
.live .intro h1 { font-size: clamp(32px, 4vw, 48px); }
.live .intro p { font-size: 16px; }
.live .connection { font-size: 13px; color: var(--muted); }
.live .connection.ok { color: var(--ok); }
.live .status { position: fixed; right: 28px; top: 96px; width: 340px; z-index: 2; }
.live .status .clock { font-family: var(--serif); font-size: 17px; margin-bottom: 8px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.live .status ol { list-style: none; margin: 0; padding: 0; }
.live .status li { font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-left: 2px solid var(--amber); margin-bottom: 6px; color: var(--muted); background: rgba(16, 21, 29, 0.7); backdrop-filter: blur(6px); }
.live .status .alerts li { border-left-color: var(--critical); color: #ffd2c4; }
.live .status li strong { color: var(--text); }
.live .controls { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end;
  max-width: 94vw; padding: 16px 20px; border-radius: 18px; background: rgba(16, 21, 29, 0.82); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.live .controls label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.live .controls input[type=range] { width: 200px; accent-color: var(--amber); }
.live .controls output { color: var(--text); font-size: 13px; }
.live .scenarios { display: flex; flex-wrap: wrap; gap: 8px; }
.live .scenarios button { background: transparent; color: var(--amber); border: 1px solid rgba(217, 185, 138, 0.45); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.live .scenarios button:hover { background: rgba(217, 185, 138, 0.12); }

/* Forms */
form.inquiry { display: grid; gap: 16px; margin-top: 28px; }
form.inquiry label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
form.inquiry input, form.inquiry select, form.inquiry textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
form.inquiry textarea { min-height: 140px; resize: vertical; }
form.inquiry .hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.inquiry button { justify-self: start; border: 0; cursor: pointer; }
.notice { padding: 12px 16px; border-radius: 12px; background: rgba(255, 122, 92, 0.12); border: 1px solid rgba(255, 122, 92, 0.4); color: #ffd2c4; }

/* The app page */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 30px 0; align-items: start; }
.shots img { border-radius: 22px; border: 1px solid var(--line); }
.app-head { display: flex; gap: 22px; align-items: center; }
.app-head .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(232, 237, 244, 0.18); background: #10151d url(/assets/img/app-icon.png) center / cover no-repeat; }

/* Blog */
.post-meta { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.post-list a { color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 28px; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 18px; }
.sources a { color: var(--muted); }

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; padding: 14px 22px; }
  .home main { width: auto; margin: 0 22px; }
  .home::before, .live::before { width: 100vw; background: rgba(16, 21, 29, 0.6); }
  .house-says { display: none; }
  .live .status { position: absolute; top: auto; bottom: 230px; left: 16px; right: 16px; width: auto; }
  .live .controls input[type=range] { width: 42vw; }
}
