/* Styling for the index page, matched to aureliainstitute.org.
   Tokens extracted from that site's Squarespace stylesheet:
     --heading-font-font-weight: 400   (large headings at REGULAR weight, not bold)
     --heading-font-letter-spacing: 0em
     --heading-font-text-transform: none
     --heading-1-size-value: 4.2       (rem)
     dominant colors: #272727 #3e3e3e #f6f6f6 #e7e7e7 #f0523d #0e0e0e

   Their type is Adobe Fonts (semplicita-pro headings, proxima-nova body), which
   can't be reused here — the Squarespace kit is not a standalone kit. Figtree is
   the closest free stand-in for proxima-nova and is used throughout. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --fg: #272727;
  --fg-soft: #3e3e3e;
  --muted: #6f6f6f;
  --rule: #e7e7e7;
  --accent: #f0523d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --bg-alt: #161616;
    --fg: #f6f6f6;
    --fg-soft: #e0e0e0;
    --muted: #9a9a9a;
    --rule: #2c2c2c;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Shared measure. Left-aligned with generous whitespace, as on the main site. */
header, main, footer {
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 3.5rem);
  padding-right: clamp(1.25rem, 5vw, 3.5rem);
}

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

header {
  padding-top: clamp(2rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

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

/* ----------------------------------------------------------------------- main */

main {
  flex: 1;
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 9vw, 6rem);
}

h1 {
  /* 4.2rem ceiling mirrors their --heading-1-size-value, at weight 400. */
  margin: 0;
  font-size: clamp(2.5rem, 7.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.tagline {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--fg-soft);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
}

/* Index of tools and projects. One entry per item, newest first. */
.toc {
  list-style: none;
  margin: clamp(3rem, 8vw, 5rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.toc li {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--rule);
}

.toc a {
  display: inline-block;
  color: var(--fg);
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 120ms ease;
}

.toc a::after {
  content: " \2192";
  display: inline;
  color: var(--accent);
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent);
}

.toc .desc {
  display: block;
  margin-top: 0.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

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

footer {
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* The rule lives on an inner element so it aligns with the .toc rules, which sit
   inside the shared horizontal padding rather than outside it. */
.footer-inner {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

#version {
  font-variant-numeric: tabular-nums;
}
