/* Framework Companies — institutional placeholder
   Typography-first editorial composition. No imagery beyond approved logos. */

/* ---------- Fonts (locally bundled, OFL / open-license) ---------- */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */

:root {
  --accent: #3483fa;
  --paper: #f8faf7;
  --ink: #07192b;
  --ink-secondary: rgba(7, 25, 43, 0.64);
  --ink-soft: rgba(7, 25, 43, 0.8);
  --rule: rgba(52, 131, 250, 0.24);
  --rule-quiet: rgba(52, 131, 250, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */

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

html {
  background: var(--paper);
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Editorial frame ---------- */

.frame {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule-quiet);
  border-right: 1px solid var(--rule-quiet);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Identity header ---------- */

.site-header {
  padding: 30px 48px 26px;
  border-bottom: 1px solid var(--rule-quiet);
}

.lockup {
  width: 204px;
}

.lockup-mark {
  width: 100%;
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vh, 96px) 48px clamp(56px, 8vh, 88px);
}

.hero-statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 9.2em;
}

.hero-lede {
  display: block;
}

.hero-thesis {
  display: block;
  font-style: italic;
  color: var(--accent);
  margin-top: 0.08em;
}

.hero-support {
  align-self: flex-end;
  max-width: 416px;
  margin-top: clamp(56px, 8vh, 88px);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Information rail ---------- */

.rail {
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 0 48px;
}

.rail-cell {
  padding: 40px 0 64px;
}

.rail-cell--chapter {
  padding-right: 56px;
}

.rail-cell + .rail-cell {
  border-left: 1px solid var(--rule-quiet);
  padding-left: 40px;
}

.rail-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.rail-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.rail-body + .rail-body {
  margin-top: 14px;
}

.rail-link-row {
  line-height: 1;
}

.rail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
  transition: color 180ms ease;
}

.rail-link .arrow {
  display: block;
  flex: none;
  transition: transform 180ms ease;
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--accent);
}

.rail-link:hover .arrow,
.rail-link:focus-visible .arrow {
  transform: translate(2px, -2px);
}

.rail-role {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* ---------- Focus visibility ---------- */

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

/* ---------- Balanced maker mark ---------- */

.maker {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 18px;
  display: block;
  opacity: 0.09;
  transition: opacity 300ms ease;
}

.maker:hover,
.maker:focus-visible {
  opacity: 1;
}

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
  .site-header {
    padding: 26px 40px 22px;
  }

  .hero {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-support {
    align-self: flex-start;
    margin-top: clamp(48px, 7vh, 72px);
  }

  .rail {
    padding: 0 40px;
    grid-template-columns: 1fr 1fr;
  }

  .rail-cell--chapter {
    grid-column: 1 / -1;
    padding: 40px 0 44px;
    border-bottom: 1px solid var(--rule-quiet);
  }

  .rail-cell--chapter .rail-body {
    max-width: 560px;
  }

  .rail-cell + .rail-cell {
    padding-top: 40px;
    padding-bottom: 72px;
  }

  .rail-cell--chapter + .rail-cell {
    border-left: none;
    padding-left: 0;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 639px) {
  .site-header {
    padding: 22px 24px 20px;
  }

  .lockup {
    width: 156px;
  }

  .hero {
    align-items: center;
    text-align: center;
    padding: 72px 24px 72px;
  }

  .hero-statement {
    max-width: 100%;
  }

  .hero-support {
    align-self: center;
    max-width: 320px;
    margin-top: 48px;
    font-size: 16px;
  }

  .rail {
    display: block;
    padding: 0 24px;
    text-align: left;
  }

  .rail-cell {
    padding: 36px 0;
  }

  .rail-cell--chapter {
    padding-right: 0;
    border-bottom: none;
  }

  .rail-cell + .rail-cell {
    border-left: none;
    border-top: 1px solid var(--rule-quiet);
    padding-left: 0;
  }

  .rail-cell:last-child {
    padding-bottom: 96px;
  }

  .rail-link {
    padding: 10px 0;
    margin: -6px 0;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .maker,
  .rail-link,
  .rail-link .arrow {
    transition: none;
  }

  .rail-link:hover .arrow,
  .rail-link:focus-visible .arrow {
    transform: none;
  }
}
