/* sovereigncreatorproject.com — Sovereign Creator
 *
 * ONE SCHEME, AND IT IS LIGHT ON PURPOSE.
 *
 * 3fts.ai is dark amber; 1bx.app is light-and-dark slate teal. This page is a
 * third identity: a printed repertory-cinema programme — warm paper, oxblood
 * rule work, and a Georgia/serif display treatment rather than the sans-serif
 * used on the other two sites. The single scheme is declared in the markup with
 * meta name="color-scheme" content="light", so there is no second palette to
 * measure and no dark-mode drift to maintain.
 *
 * NO INLINE STYLES ANYWHERE. The CSP is `style-src 'self'` with no
 * 'unsafe-inline', so a style="..." attribute or a <style> block is silently
 * dropped by the browser and fails the build gate. Every value lives here.
 *
 * NOT A RESKIN. The class names are this site's own; none of them is borrowed
 * from 3fts.ai/style.css or 1bx.app/style.css. The wireframe primitives below
 * (.teaser, .ui, .spec) play the same ROLE as the product-kit names in
 * sites/KIT_CONTRACT.md §1, but they are re-implemented for this identity and
 * every class used in the markup has a rule in this file.
 */

:root {
  --paper: #f4ede1;
  --paper-2: #ece2d2;
  --card: #fbf6ee;
  --ink: #1c1917;
  --ink-2: #46403a;
  --line: #d9cdb8;
  --line-strong: #b9a98d;
  --accent: #7a1f2b;
  --accent-2: #1f4d46;
  --accent-3: #6b4a12;
  --accent-4: #3f3a6b;
  --measure: 66ch;
  --radius: 6px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--paper);
  background-image: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 320px);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 0.85rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--ink);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 0.25em;
}

/* ---------- shell ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 40;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-sub {
  margin: 0 0 0 auto;
  color: var(--ink-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-main {
  display: block;
}

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: Georgia, "Times New Roman", Times, serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
  margin: 0 0 0.9rem;
}

.eyebrow--2 {
  color: var(--accent-2);
}

.eyebrow--3 {
  color: var(--accent-4);
}

.lede {
  font-size: 1.12rem;
  max-width: var(--measure);
}

.muted {
  color: var(--ink-2);
  max-width: var(--measure);
}

.note {
  color: var(--ink-2);
  font-size: 0.92rem;
  border-left: 3px solid var(--line-strong);
  padding-left: 0.75rem;
  max-width: var(--measure);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.status-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

/* ---------- sections ---------- */

.section {
  padding: 2.6rem 0;
}

.section__head {
  margin-bottom: 1.4rem;
}

.section__head p {
  max-width: var(--measure);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.6rem 0 2.2rem;
}

.hero__copy > p:last-child {
  margin-bottom: 0;
}

.hero__visual {
  margin: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.75rem;
  }
}

/* ---------- pills ---------- */

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--ink-2);
  background: var(--card);
}

.pill--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.pill--2 {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.pill--3 {
  border-color: var(--accent-3);
  color: var(--accent-3);
}

.pill--4 {
  border-color: var(--accent-4);
  color: var(--accent-4);
}

/* ---------- actions ---------- */

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.action-link:hover,
.action-link:focus {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
}

/* ---------- demo strip ---------- */

.demo {
  margin: 1.3rem 0 0;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.demo p {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

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

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.card > :last-child {
  margin-bottom: 0;
}

.card--2 {
  border-left-color: var(--accent-2);
}

.card--3 {
  border-left-color: var(--accent-3);
}

.card--4 {
  border-left-color: var(--accent-4);
}

.card--plain {
  border-left-color: var(--line-strong);
}

.card p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- stat cards ---------- */

.stat {
  border-left-color: var(--accent);
}

.stat--2 {
  border-left-color: var(--accent-2);
}

.stat--3 {
  border-left-color: var(--accent-3);
}

.stat--4 {
  border-left-color: var(--accent-4);
}

.stat__value {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ---------- teaser / study panel ---------- */

.teaser {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.teaser__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  padding: 0.55rem 0.75rem;
}

.teaser__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.teaser__dot--1 {
  background: var(--accent);
}

.teaser__dot--2 {
  background: var(--accent-3);
}

.teaser__dot--3 {
  background: var(--accent-2);
}

.teaser__title {
  margin: 0 0 0 0.4rem;
  color: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.teaser__body {
  padding: 1rem;
}

.teaser__body--flush {
  padding: 0;
}

.teaser__caption {
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.shot {
  display: block;
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- interface study primitives ---------- */

.ui {
  display: block;
}

.ui__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.ui__row--soft {
  border-bottom-style: dotted;
}

.ui__row:last-of-type {
  border-bottom: 0;
}

.ui__label {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.ui__chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
}

.ui__chip--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.ui__chip--2 {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.ui__chip--3 {
  border-color: var(--accent-3);
  color: var(--accent-3);
}

.ui__chip--4 {
  border-color: var(--accent-4);
  color: var(--accent-4);
}

.ui__note {
  margin: 0.85rem 0 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

/* ---------- checks ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.checks li {
  position: relative;
  padding: 0 0 0 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

.checks strong {
  color: var(--ink);
}

/* ---------- spec ---------- */

.spec {
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .spec__row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1rem;
  }
}

.spec__key {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  color: var(--ink);
}

.spec__val {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- cta ---------- */

.cta {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.6rem 1.4rem;
  margin: 0 0 2.6rem;
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 1.8rem 0;
}

.site-footer p {
  color: var(--ink-2);
  max-width: var(--measure);
}

.site-footer .link-row {
  margin-top: 0.9rem;
}

.site-footer .link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  color: var(--accent);
  font-weight: 600;
}
