/* True Aleph — www.true-aleph.ai
   The page as an advisory document: a cover, numbered sections, a margin rail,
   and ruled schedules. One mark, one typeface, three colors, one accent.
   Tokens per Brand Guidelines, First Edition, June 2026. */

:root {
  --near-black: #141512;  /* authority — ink, fields, the mark   */
  --off-white:  #F7F5F0;  /* the page — carries everything       */
  --charcoal:   #2A2B27;  /* secondary fields, quiet contrast    */
  --blue-green: #1A574E;  /* the accent — sparing, one at a time */

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Brand tracking: +220 wordmark, +140 caption, −10 display */
  --track-wordmark: 0.22em;
  --track-caption:  0.14em;
  --track-display: -0.01em;

  --measure: 36rem;                          /* body text measure        */
  --gutter: clamp(1.5rem, 5vw, 5rem);        /* page margin              */
  --rail: clamp(7rem, 14vw, 13rem);          /* document margin rail     */
  --rule-dark: 1px solid var(--charcoal);    /* hairline on dark fields  */
  --rule-light: 1px solid var(--near-black); /* hairline on the page     */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;       /* body: Regular 15/24 — never justified, never tracked */
  color: var(--near-black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Shared type roles ---------- */
/* Two text weights per page: Regular 400 and SemiBold 600.
   Medium 500 appears only in the wordmark, which is fixed artwork. */

.caption {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-caption);   /* +140 */
  font-size: 11px;
  line-height: 1.4;
}

.wordmark {
  font-weight: 500;                        /* Archivo Medium — lockup only */
  text-transform: uppercase;
  letter-spacing: var(--track-wordmark);   /* +220 */
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.mark { width: 24px; height: 24px; display: block; flex: none; }

/* ---------- Header — lockup at 24px on the off-white field ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--gutter);
  border-bottom: var(--rule-light);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;                  /* clear space ≥ ¼ mark width */
  text-decoration: none;
  color: var(--near-black);
}

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav a {
  color: var(--near-black);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The accent: action only. One per composition. */
.cta {
  display: inline-block;
  background: var(--blue-green);
  color: var(--off-white) !important;
  padding: 0.65rem 1.15rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-caption);
  text-decoration: none;
}

.cta:hover { background: var(--near-black); text-decoration: none !important; }

a:focus-visible { outline: 2px solid var(--blue-green); outline-offset: 3px; }

/* ---------- Cover ---------- */

.cover {
  padding: clamp(4.5rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.cover > .caption { margin-bottom: 1.75rem; }

.cover h1 {
  font-weight: 600;                       /* display: SemiBold */
  letter-spacing: var(--track-display);   /* −10               */
  line-height: 1.15;                      /* 1.15 line         */
  font-size: clamp(2.6rem, 7.2vw, 5.25rem);
  max-width: 14ch;
}

.lede {
  margin-top: 2rem;
  max-width: var(--measure);
}

.cover-meta {
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1rem;
  border-top: var(--rule-light);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 100%;
}

/* ---------- Document sections: rule + margin rail + body column ---------- */

.doc-section {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) clamp(3.5rem, 9vh, 6rem);
  border-top: var(--rule-light);
}

.rail-no { margin-bottom: 0.35rem; }
.rail-title { /* h2 set in caption style — the document's margin heading */ }

.body-col { min-width: 0; }

/* Dark field — the Plane writ large */
.doc-dark {
  position: relative;
  background: var(--near-black);
  color: var(--off-white);
  border-top: none;            /* the field itself is the division */
  overflow: hidden;
}

/* Bare glyph as watermark — permitted on quiet fields; never cropped */
.watermark {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(13rem, 24vw, 20rem);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
}

.doc-dark .rail,
.doc-dark .body-col { position: relative; }

/* Charcoal field — secondary, quiet contrast */
.doc-charcoal {
  background: var(--charcoal);
  color: var(--off-white);
  border-top: none;
}

/* ---------- 01 · Tenets ---------- */

.tenets { list-style: none; max-width: 40rem; }

.tenets li {
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1.3;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  max-width: 34ch;
  padding: 1.4rem 0;
}

.tenets li:first-child { padding-top: 0; }
.tenets li + li { border-top: var(--rule-dark); }

/* ---------- 02 / 03 · Ruled schedules ---------- */

.schedule { max-width: 52rem; }

.schedule-row {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: 1.5rem 0;
}

.schedule-row:first-child { padding-top: 0; }
.schedule-row + .schedule-row { border-top: var(--rule-light); }

.schedule dt {
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1.25;
  font-size: 1.2rem;
}

.schedule dd { max-width: var(--measure); }

/* On the charcoal field, rules and terms adapt */
.schedule-method .schedule-row + .schedule-row { border-top: var(--rule-dark); }
.schedule-method dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--track-caption);   /* method terms read as labels */
  line-height: 1.4;
  padding-top: 0.3rem;
}

/* ---------- 04 · Begin ---------- */

.contact-line {
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1.15;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  max-width: 22ch;
}

.contact-note { margin: 1.25rem 0 2rem; max-width: var(--measure); }

/* ---------- Footer — dark surface, mark inverts ---------- */

.site-footer {
  background: var(--near-black);
  color: var(--off-white);
  padding: 3rem var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-lockup { display: flex; align-items: center; gap: 12px; }

.footer-meta { color: var(--off-white); }

.footer-legal { font-size: 13px; line-height: 20px; }

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .site-nav { flex-wrap: wrap; gap: 1.25rem; }

  .doc-section {
    grid-template-columns: 1fr;          /* rail stacks above content   */
    gap: 1.5rem;
  }
  .rail { display: flex; gap: 0.75rem; align-items: baseline; }
  .rail-no::after { content: " ·"; }

  .schedule-row { grid-template-columns: 1fr; gap: 0.5rem; }

  .cover-meta { flex-direction: column; gap: 0.5rem; }

  .watermark { display: none; }          /* never crowd a small composition */
}
