/* Inductive — minimal dark theme */

/* TeX Gyre Bonum — matches the wordmark logo. */
@font-face {
  font-family: "TeX Gyre Bonum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/texgyrebonum-regular.woff2") format("woff2");
}
@font-face {
  font-family: "TeX Gyre Bonum";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/texgyrebonum-italic.woff2") format("woff2");
}
@font-face {
  font-family: "TeX Gyre Bonum";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/texgyrebonum-bold.woff2") format("woff2");
}

:root {
  --bg: #0d0d0f;
  --bg-elev: #15151a;
  --fg: #eaeaec;
  --fg-muted: #9a9aa4;
  --border: #26262e;
  --border-hover: #3a3a46;
  --accent: #8ab4f8;
  --maxw: 60rem;

  --serif: "TeX Gyre Bonum", "Bookman Old Style", "Book Antiqua", Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.nav__brand img {
  height: 1.4rem;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 1.75rem;
}
.nav__links a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav__links a:hover {
  color: var(--fg);
  text-decoration: none;
}

main {
  flex: 1 0 auto;
}

/* Hero */
.hero {
  text-align: center;
  padding: clamp(4rem, 13vh, 9rem) 0 clamp(3rem, 8vh, 6rem);
}
.hero__logo {
  width: min(28rem, 76%);
  height: auto;
  margin: 0 auto;
  display: block;
}
.hero__formula {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.6vw, 1.95rem);
  color: var(--fg);
  letter-spacing: 0.01em;
  margin: clamp(2.25rem, 6vh, 3.75rem) auto 0;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 34rem;
  margin: 1.25rem auto 0;
}

/* Sections */
.section {
  padding: clamp(3rem, 9vh, 5.5rem) 0;
  border-top: 1px solid var(--border);
}
.section__title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin: 0 0 2rem;
}

/* Project cards */
.projects {
  display: grid;
  gap: 1.25rem;
}
.project {
  display: block;
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.project:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.project__name {
  font-weight: lighter;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--fg);
  margin: 0;
}
.project__link {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}
.project__desc {
  color: var(--fg-muted);
  margin: 0.6rem 0 0;
}

/* Prose (about) */
.page {
  padding: clamp(3rem, 10vh, 6rem) 0;
}
.prose {
  max-width: 44rem;
}
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
}
.prose h2 {
  font-family: var(--serif);
  margin: 2.5rem 0 1rem;
}
.prose p {
  color: var(--fg);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.site-footer a {
  color: var(--fg-muted);
}
.site-footer a:hover {
  color: var(--fg);
}
