/* Solamarc Publishing — startup site
   Brand: existing mark, black, paper, #FF2B00.
   Fonts are self-hosted (OFL). No runtime CDN. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

:root {
  --ink: #1c0a07;
  --ink-soft: #5a3d36;
  --paper: #fffcfb;
  --paper-2: #f6ece8;
  --line: rgba(28, 10, 7, 0.14);
  --black: #000;
  --cream: #fffcfb;
  --cream-dim: rgba(255, 252, 251, 0.74);
  --accent: #ff2b00;
  --ok: #0f6b3c;
  --warn: #8a4b08;
  --bad: #9d1c12;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, summary { font: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}
.wrap-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.kicker, .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 12px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: var(--black);
  color: var(--cream);
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-open, .nav-close {
  display: none;
  border: 1px solid rgba(255, 252, 251, 0.35);
  color: var(--cream);
  background: transparent;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.btn:hover { color: var(--ink); }
[x-cloak] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
}
.btn:hover { background: #ff5a33; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 252, 251, 0.45);
}
.btn-ghost:hover { color: var(--ink); background: var(--cream); }
.btn-ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-ink:hover { background: #3a1812; }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--cream); }

.hero {
  background: var(--black);
  color: var(--cream);
  padding: 48px 0 72px;
}
.hero h1 { max-width: 12em; color: var(--cream); }
.lede {
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--cream-dim);
  margin-bottom: 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.statement {
  margin-top: -32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  padding: 28px 28px 32px;
}
.statement .label { display: block; margin-bottom: 12px; }
.product-statement {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  margin: 0;
}

.band { padding: 72px 0; }
.band-alt { background: var(--paper-2); }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 140px;
}
.fact strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin: 8px 0; }
.fact p { color: var(--ink-soft); margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 220px;
}
.card:hover { border-color: var(--accent); }
.card .num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
}
.card p { color: var(--ink-soft); flex: 1; }
.card span { font-weight: 600; }

.stage {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.stage:hover { outline: 2px solid var(--accent); }
.stage-copy, .stage-note { padding: 22px; }
.stage-copy { border-right: 1px solid var(--line); }
.stage-note { background: #fff6f2; }
.stage mark {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 -0.35em 0 rgba(255, 43, 0, 0.35);
}
.stage-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}

.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.limits li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.limits strong { display: block; }

.journal-card, .founder {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}

.mark-tile {
  background: var(--black);
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 16px;
}
.mark-tile img { width: 92px; height: auto; }
.founder a { color: var(--ink); }

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink);
}
.page-hero {
  background: var(--black);
  color: var(--cream);
  padding: 36px 0 48px;
}
.page-hero h1 { color: var(--cream); max-width: 16ch; }
.page-hero p { color: var(--cream-dim); max-width: 40rem; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; margin-bottom: 16px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--cream-dim); }

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step .num { font-family: var(--mono); color: var(--accent); padding-top: 6px; }
.status {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 22px;
}
.status ul { margin: 8px 0 0; padding-left: 18px; }
.status li { margin: 6px 0; }

.site-footer {
  background: var(--black);
  color: var(--cream-dim);
  padding: 28px 0 36px;
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--cream); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Demo */
.demo-intro { padding: 28px 0 8px; }
.demo-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.banner {
  background: #fff1cc;
  border: 1px solid #e2c27a;
  color: var(--ink);
  padding: 12px 14px;
  margin: 12px 0 20px;
}
.app {
  border: 1px solid var(--ink);
  background: var(--paper);
  margin-bottom: 48px;
}
.app-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--ink);
  color: var(--cream);
}
.app-title { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.modes button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 252, 251, 0.35);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.modes button[aria-pressed="true"],
.modes button.is-on {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.app-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  min-height: 420px;
}
.manuscript, .assistant { padding: 20px; }
.manuscript { border-right: 1px solid var(--line); }
.manuscript h2, .assistant h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.doc-title { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 8px; }
.fictional { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.manuscript p.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; }
mark.hit {
  background: transparent;
  color: inherit;
  padding: 0 1px;
}
.app.is-ready mark.hit { box-shadow: none; }
.app.is-ready mark.hit.on {
  box-shadow: inset 0 -0.38em 0 rgba(255, 43, 0, 0.38);
}
.app.is-ready mark.hit.cut.on {
  box-shadow: none;
  background: #fde2dc;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.replace {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.replace div { border: 1px solid var(--line); padding: 10px 12px; }
.replace .to { border-color: var(--ink); }
.replace small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.app.is-ready .note { display: none; }
.app.is-ready .note.is-active { display: block; }
.note { border-top: 3px solid var(--accent); padding-top: 10px; margin-bottom: 16px; }
.note h3 { font-size: 1.15rem; }
.app.is-ready .replace { display: none; }
.app.is-ready .replace.on { display: grid; }
.decision { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.decision button { min-height: 44px; cursor: pointer; }
.decision-result {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.citations { border-top: 1px solid var(--ink); }
.citations header { padding: 16px 20px 0; }
.citations h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.cite-table { width: 100%; border-collapse: collapse; }
.cite-table th, .cite-table td {
  text-align: left;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.cite-table th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; color: var(--ink-soft); }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag-ok { color: var(--ok); }
.tag-warn { color: var(--warn); }
.tag-bad { color: var(--bad); }
.tag-muted { color: var(--ink-soft); }

@media (max-width: 860px) {
  .facts, .cards, .limits, .journal-card, .founder, .stage, .app-grid { grid-template-columns: 1fr; }
  .stage-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .manuscript { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-open { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-top: 1px solid rgba(255, 252, 251, 0.15);
    padding: 8px 12px 16px;
  }
  .site-nav a, .nav-close { padding: 12px; min-height: 44px; }
  .nav-close { display: flex; justify-content: center; margin-top: 8px; }
  .nav-check:checked ~ .site-nav { display: flex; }
  .nav-check:focus-visible + .nav-open { outline: 2px solid var(--accent); outline-offset: 3px; }
  .cite-table, .cite-table tbody, .cite-table tr, .cite-table td { display: block; width: 100%; }
  .cite-table thead { display: none; }
  .cite-table td { border-top: 0; padding-top: 4px; padding-bottom: 4px; }
  .cite-table tr { border-top: 1px solid var(--line); padding: 10px 0; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
