/* Inplexion — inplexion.co
   Design source of truth: ../design-system-inplexion/ (cool ground, Blueprint
   accent, Lissajous mark at d = 0.95). Shares type and measures with
   aporian.org but no longer its palette or identity — diverge freely. */

/* ---------- fonts ----------
   Static single-weight woff2 subsets, latin only, self-hosted from /fonts.
   Only the weights the page actually uses: Source Serif 4 at 400 (thesis) and
   600 (wordmark), Public Sans at 400 (prose) and 600 (eyebrow, labels),
   Plex Mono at 400. latin-ext is declared for the two 400 text faces only;
   unicode-range means it is never fetched unless a character in that range
   appears in the copy.
   Licenses: fonts/LICENSES/ (all three are SIL OFL 1.1).                      */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Italic is declared but currently unused — no italic text exists on the page, so
   the browser never requests the file and it costs nothing on the critical path.
   Retained deliberately for future build-out. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/public-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/public-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/public-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --paper: #F8F9FA;         /* cool light */
  --ink: #14161A;           /* near-black: the accent carries the blue */
  --muted: #565B63;
  --accent: #1F3B54;        /* Blueprint — links, focus ring only */
  --accent-hover: #16293C;
  --rule: #E2E4E8;          /* moves with --paper */

  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --measure: 64ch;   /* page column */
  --prose: 62ch;     /* body text and the signature mark — both sites */
  --thesis: 34ch;    /* thesis measure — must match aporian.org exactly */
}

/* ---------- reset ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 3rem 1.5rem 1.75rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main, footer { width: 100%; max-width: var(--measure); margin-inline: auto; }

p { margin: 0 0 1.05em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

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

/* ---------- masthead: eyebrow, then the horizontal lockup ----------
   The lockup sets one font-size; the wordmark is 1em and the mark 1.33em
   (the 56px-mark / 42px-wordmark ratio from the Identity board), so the
   two scale together at every viewport.                                    */

.lockup {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(2.9rem, 8.5vw, 5.25rem);
}

.mark {
  display: block;
  flex: none;
  width: 1.33em;
  height: 1.33em;
}

.mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;            /* on the 100-unit box: scales with the mark */
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 1.75rem;
  font-size: 0.735rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.thesis {
  margin: 1.5rem 0 1.75rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
  max-width: var(--thesis);
  font-family: var(--display);
  font-size: clamp(1.24rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  font-synthesis: none;   /* never fake an italic — use the real face or fail loudly */
}

/* ---------- contact ---------- */

.contact {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.925rem;
  letter-spacing: -0.01em;
}

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

footer {
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

footer p { margin: 0; font-size: 0.85rem; }

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

@media (prefers-reduced-motion: no-preference) {
  /* Draw-on, once on load, never looped. pathLength="1" makes the dash exact. */
  .mark path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2200ms cubic-bezier(0.33, 0.9, 0.4, 1) 250ms forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- narrow ---------- */

@media (max-width: 30rem) {
  body { padding-top: 2.75rem; gap: 2.75rem; }
}
