/* Sahasra AI — ledger design system.
   The register of this site is a REGISTER: hairline rules, monospace facts,
   entries hanging off a margin rail. The studio's distinguishing feature is
   that everything is written down, so the design is something being written. */

:root {
  --paper:   #F7F8F7;   /* cool archival white — deliberately not cream */
  --ink:     #14171A;
  --oxblood: #7A2E2E;   /* registry seal. the ONE accent. */
  --rule:    #D8DBD8;
  --sage:    #5C6B5D;
  --muted:   #6E7570;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.main { padding-top: 4rem; padding-bottom: 4rem; }
.muted { color: var(--muted); }
.narrow { max-width: 38rem; }
.mb { margin-bottom: 1rem; }

/* Display: Instrument Serif. Restraint — headings only. */
.display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

/* THE RULE: every fact is monospace.
   Sector, stage, date, ticker, count. If it is a datum, it is mono.
   This one convention carries the whole identity. */
.datum {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
a.datum:hover { color: var(--oxblood); }

.seal {
  color: var(--oxblood);
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 1px;
}

/* THE SIGNATURE — the ledger rail.
   Entries hang off a hairline vertical rule. Portfolio and feed share this
   grammar deliberately: the studio and its intelligence are one register. */
.rail { border-left: 1px solid var(--rule); padding-left: 1.75rem; }

.rail-entry {
  position: relative;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: block;
  text-decoration: none;
  color: inherit;
}
.rail-entry::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 2rem;
  width: .75rem;
  height: 1px;
  background: var(--rule);
  transition: background .15s;
}
.rail-entry:hover::before { background: var(--oxblood); }
.rail-entry:hover .display { color: var(--oxblood); }

.meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; align-items: baseline; }

.site-head { border-bottom: 1px solid var(--rule); }
.head-inner { display: flex; align-items: baseline; justify-content: space-between; padding: 1.25rem 1.5rem; }
.logo { font-size: 1.5rem; text-decoration: none; color: inherit; }
.nav { display: flex; gap: 1.75rem; }

.site-foot { border-top: 1px solid var(--rule); margin-top: 6rem; padding: 3rem 0; }
.foot-mark { margin-top: 2rem; }

.hero { margin-bottom: 6rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); max-width: 44rem; margin: 1.5rem 0 2rem; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.section { margin-bottom: 6rem; }

/* The feed masthead. A publication states its terms. */
.masthead {
  border-left: 2px solid var(--oxblood);
  padding: .25rem 0 .25rem 1.25rem;
  max-width: 36rem;
}

.spec { color: var(--oxblood); }
.tick { color: var(--sage); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

/* Flat-structure additions: active nav state + utility classes used by pages */
.nav a.is-active { color: var(--oxblood); }
.h1 { font-size: clamp(2.25rem, 5vw, 3rem); max-width: 38rem; margin: 1.5rem 0 1.5rem; }
.h2 { font-size: 1.5rem; }
.h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.h4 { font-size: 1.125rem; }
.sm { font-size: .875rem; }
.m0 { margin: 0; }
.mb2 { margin-bottom: 1.5rem; }
.lede { font-size: 1.05rem; }
.page-head { margin-bottom: 4rem; }
.prose { line-height: 1.7; }
