/* ==========================================================================
   about.css — khalilli.ai/about and /work
   Two title pages set in circuit's reading faces. The name is the display,
   the first sentence is the second voice, and every link is ink: full
   strength with a quiet underline, against text that recedes. No colour
   that the rest of the site does not have. Loaded on these pages only.
   ========================================================================== */

/* ── Reading faces (self-hosted) ───────────────────────────────────────── */

@font-face {
  font-family: "IBM Plex Serif";
  src: url("/fonts/ibm-plex-serif-450.woff2") format("woff2");
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/fonts/ibm-plex-serif-450i.woff2") format("woff2");
  font-weight: 450;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/fonts/ibm-plex-serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens (circuit's values) ─────────────────────────────────────────── */

:root {
  --serif: "IBM Plex Serif", "Charter", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ink: #1e1e1e;
  --ink-mid: rgba(30, 30, 30, 0.68);
  --ink-soft: rgba(30, 30, 30, 0.55);
  --hairline: rgba(30, 30, 30, 0.14);
  --hairline-soft: rgba(30, 30, 30, 0.08);
}
.dark {
  --ink: #e9ecef;
  --ink-mid: rgba(233, 236, 239, 0.72);
  --ink-soft: rgba(233, 236, 239, 0.58);
  --hairline: rgba(233, 236, 239, 0.16);
  --hairline-soft: rgba(233, 236, 239, 0.09);
}

/* ── The display: the name, set in the reading serif itself ────────────── */

main.prose article .plate-head {
  text-align: left;
  margin: 0 0 2.75rem;
}
main.prose article .plate-head .name {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* ── Prose ─────────────────────────────────────────────────────────────── */

main.prose article section > p {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 450;
  line-height: 1.75;
  letter-spacing: 0.002em;
  text-wrap: pretty;
}

/* Every link is ink at full strength with a quiet underline that fills in
   on hover. Against receded text, the ink itself is the signpost. */
main.prose article section a,
main.prose article .entry-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  transition: text-decoration-color 120ms ease;
}
main.prose article section a:hover,
main.prose article .entry-body a:hover {
  text-decoration-color: currentColor;
}

/* ── /about: the title page ────────────────────────────────────────────── */

/* the composition sits centred in the viewport, like a plate */
main.prose:has(article.page-short) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 12rem);
}

main.prose article.page-short {
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
}

main.prose article.page-short section > p {
  text-align: left;
  hyphens: none;
}

/* one size for every paragraph; the hierarchy lives in the ink alone */
main.prose article.page-short section > p {
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 1.15rem;
}

/* the context, one step back in ink, not in size */
main.prose article.page-short section > p:nth-of-type(2),
main.prose article.page-short section > p:nth-of-type(3) {
  color: var(--ink-mid);
}

/* the principle stands apart by space */
main.prose article.page-short section > p:last-child {
  margin: 2.4rem 0 0;
}

/* the close: one rule, then the ways to reach him */
main.prose article.page-short .about-close {
  margin-top: 3.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-soft);
  text-align: left;
}
main.prose article.page-short .about-close .social {
  justify-content: flex-start;
  gap: 0.5rem 1.6rem;
}

/* ── Elsewhere: icon and name ──────────────────────────────────────────── */

main.prose article .about-close .social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.9rem;
}
main.prose article .about-close .social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 120ms ease;
}
main.prose article .about-close .social img {
  width: 15px;
  height: 15px;
  opacity: 0.62;
  transition: opacity 120ms ease;
}
.dark main.prose article .about-close .social img {
  filter: invert(1);
}
main.prose article .about-close .social a:hover {
  color: var(--ink);
}
main.prose article .about-close .social a:hover img {
  opacity: 1;
}

/* ── /work: the same opening, then the ledger ──────────────────────────── */

main.prose article.page-work .plate-head {
  margin-bottom: 3rem;
}
main.prose article.page-work .work-intro {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 36rem;
  margin: 1.2rem 0 0;
  text-wrap: pretty;
}

main.prose article .entry {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0 2.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline-soft);
}
main.prose article .entry:last-of-type {
  border-bottom: 1px solid var(--hairline-soft);
}

main.prose article .entry-head {
  padding-top: 0.1rem;
}
main.prose article .entry-name {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
/* a name that goes somewhere carries the same quiet underline as the prose */
main.prose article a.entry-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
  transition: text-decoration-color 120ms ease;
}
main.prose article a.entry-name:hover {
  text-decoration-color: currentColor;
}
main.prose article .entry-body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.7;
  margin: 0;
  text-wrap: pretty;
}

/* ── Small screens ─────────────────────────────────────────────────────── */

@media (max-width: 800px) {
  main.prose article .entry {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}
@media (max-width: 640px) {
  main.prose article .plate-head .name {
    font-size: 2.125rem;
  }
}
