/* ==========================================================================
   Sigra — Website v1 stylesheet
   Translated from Sigra Style Guide v1.2 (3 June 2026).
   Colour, type roles and family choices are lifted directly from the guide.
   The pixel/rem type scale below is a web adaptation of the guide's print
   and slide scale (§4.2) — the guide specifies pt sizes for A4 and 16:9
   contexts only and flags the web scale as an open gap (§9.1). The same
   1.25 (major third) ratio and role assignments are preserved.
   ========================================================================== */

/* ---- Brand fonts, self-hosted (variable), per §4.1 of the style guide --- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Variable.woff2') format('woff2-variations'),
       url('/fonts/CormorantGaramond-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Italic-Variable.woff2') format('woff2-variations'),
       url('/fonts/CormorantGaramond-Italic-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight-Variable.woff2') format('woff2-variations'),
       url('/fonts/InterTight-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight-Italic-Variable.woff2') format('woff2-variations'),
       url('/fonts/InterTight-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Variable.woff2') format('woff2-variations'),
       url('/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------- Design tokens ------------------------------ */
:root {
  /* Colour — §3.1 */
  --ink: #10141C;
  --graphite: #3A3F49;
  --slate: #6E7480;
  --bone: #F2EEE6;
  --paper: #FAF7F1;
  --brass: #A8884B;

  /* Type families — §4.1 */
  --font-display: 'Cormorant Garamond', 'Spectral', Georgia, serif;
  --font-body: 'Inter Tight', Inter, Calibri, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', Consolas, monospace;

  /* Type scale — web adaptation of §4.2, 1.25 ratio preserved */
  --text-caption: 0.8125rem;
  --text-small-caps: 0.8125rem;
  --text-body: 1.125rem;
  --text-h3: 1.1875rem;
  --text-h2: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem);
  --text-h1: clamp(2.25rem, 1.85rem + 1.8vw, 3.25rem);
  --text-display: clamp(2.25rem, 1.75rem + 2.2vw, 3.25rem);

  --line-body: 1.65;
  --measure: 68ch; /* §4.3 line-length target, 60–75 characters */

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

/* ------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ------------------------------ Structure --------------------------------- */
.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.prose { max-width: var(--measure); }
main { display: block; flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

section {
  padding-block: var(--space-5);
  border-bottom: 1px solid rgba(110, 116, 128, 0.25); /* Slate, low-opacity structural rule */
}
section:last-of-type { border-bottom: none; }

/* ------------------------------ Header / nav ------------------------------ */
.site-header {
  border-bottom: 1px solid rgba(110, 116, 128, 0.3);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}

/* Plain Cormorant wordmark — §5.2, used in compact/navigation contexts */
.wordmark-plain {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-plain .cap { text-transform: none; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--graphite);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav-toggle { display: none; }

/* -------------------------------- Hero ------------------------------------ */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-6) var(--space-5);
  border-bottom: none;
}
.hero .wrap { text-align: center; }

/* Underlined Cormorant lockup — §5.1, the primary mark, reserved for hero
   contexts. The underline is integral to the lockup: do not remove it. */
.wordmark-hero {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 2.1rem + 2vw, 3.5rem);
  color: var(--paper);
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--paper);
  margin-bottom: var(--space-4);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-small-caps);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--space-3);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: 1.25;
  max-width: 46rem;
  margin: 0 auto var(--space-3);
}

.hero .lede {
  font-size: 1.25rem;
  color: var(--bone);
  max-width: 50ch;
  margin: 0 auto var(--space-4);
}

/* Persona block — "Built for" plus three labelled audience items. Seniority-
   ordered (SRO, capability owner, technical/programme director), not
   lifecycle-ordered like the Mode cards further down the page. Text-only,
   no card fill: the hero is dark, and card-style Bone fills don't belong
   inside it — a thin Paper-tinted rule (matching the footer-legal divider)
   separates each item instead. */
.personas {
  max-width: 56rem;
  margin: 0 auto var(--space-4);
}
.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  text-align: left;
  margin-top: var(--space-2);
}
.persona {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(250, 247, 241, 0.18);
}
.persona h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}
.persona p {
  color: var(--bone);
  font-size: 0.95rem;
}
@media (max-width: 800px) {
  .personas-grid { grid-template-columns: 1fr; }
}

/* -------------------------------- Type ------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 600;
}

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

/* Eyebrow labels default to Slate (the guide's sanctioned captions/metadata
   colour, §3.2) rather than Brass: several eyebrows sit on Bone card
   backgrounds, and the style guide's contrast table (§3.4) marks Brass-on-Bone
   as a hard "never", not just a preference. On dark (.on-ink) sections, Brass
   is restored below — it passes AA there and matches the guide's allowance
   for short emphatic display type on Ink. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-small-caps);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--space-1);
}
.on-ink .eyebrow { color: var(--brass); }

.lede {
  font-size: 1.25rem;
  color: var(--graphite);
}

figcaption, .caption, small {
  font-size: var(--text-caption);
  color: var(--slate);
}

.rule {
  border: none;
  border-top: 1px solid var(--brass);
  width: 4rem;
  margin: 0 0 var(--space-3);
}
.rule.center { margin-inline: auto; }

/* Bullet mark — §4.3, solid square in Brass */
.list-square {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-square li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: var(--space-2);
}
.list-square li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5em;
  height: 0.5em;
  background: var(--brass);
}

/* ------------------------------- Cards ------------------------------------ */
.card {
  background: var(--bone);
  padding: var(--space-3);
}
.card h3 { margin-bottom: var(--space-1); }

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
@media (max-width: 800px) {
  .modes-grid { grid-template-columns: 1fr; }
}

/* --------------------------------- CTA ------------------------------------ */
.cta-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.3em;
}
.cta-link:hover { color: var(--brass); }
.cta-link .arrow { margin-left: 0.5em; }

.cta-block {
  text-align: center;
  padding-block: var(--space-5);
}
.cta-block .eyebrow { justify-content: center; }
.cta-block h2 { margin-bottom: var(--space-3); }

/* On Ink sections (dark), invert per §3.2 pairings */
.on-ink {
  background: var(--ink);
  color: var(--paper);
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--paper); }
.on-ink .lede { color: var(--bone); }
.on-ink .cta-link { color: var(--paper); }
.on-ink .cta-link:hover { color: var(--brass); }

/* ------------------------------- Footer ------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--space-4);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.site-footer .wordmark-plain { color: var(--paper); }
.footer-links { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--bone); font-size: 0.95rem; }
.footer-links a:hover { color: var(--brass); }
.footer-legal {
  width: 100%;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(242, 238, 230, 0.15);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* --------------------- Contact page: standalone CTA ----------------------- */
.cta-block.is-page {
  padding-top: var(--space-6);
  border-bottom: none;
}
.cta-block.is-page .lede { margin-inline: auto; }
.cta-block.is-page .cta-link { font-size: 1.1rem; }

/* -------------------------- About: portrait ------------------------------- */
.portrait {
  float: right;
  width: 13rem;
  margin: 0.3rem 0 var(--space-2) var(--space-3);
}
.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(110, 116, 128, 0.35); /* Slate hairline, as used on section rules */
}
@media (max-width: 640px) {
  .portrait { float: none; width: min(16rem, 70%); margin: 0 0 var(--space-3); }
}

/* -------------------------------- Utility ---------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  :root { --space-5: 3.5rem; --space-6: 5rem; }
  nav.primary-nav ul { gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
  .site-header .wrap { flex-direction: column; gap: var(--space-2); }
  .modes-grid { gap: var(--space-2); }
}
