/* jamesuriarte.com — index. Same tokens as the retrospective, far less of it. */

@font-face {
  font-family: 'Source Serif'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/source-serif-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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/inter-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;
}

:root {
  --paper: #ffffff;
  --paper-alt: #f6f6f4;
  --ink: #16181d;
  --ink-2: #40454e;
  --ink-3: #6d7481;
  --rule: #e0e0dc;
  --rule-firm: #c8c8c2;
  --accent: #1f3d63;
  --serif: 'Source Serif', Charter, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #14161a; --paper-alt: #1a1d22;
    --ink: #eceef1; --ink-2: #b9bec7; --ink-3: #8b929d;
    --rule: #2c3037; --rule-firm: #3c424b; --accent: #9dc0e8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  width: min(100% - 2.75rem, 40rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 12vh, 7rem) 3rem;
  flex: 1;
}

h1 {
  font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.8vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.9rem; line-height: 1.15;
}
.standfirst {
  font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5; color: var(--ink-2); margin: 0 0 3rem; max-width: 34rem;
}

h2 {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 1.1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule);
}

.entry { display: block; text-decoration: none; color: inherit; padding: 0.35rem 0 1.5rem; }
.entry:hover .entry__t { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry__t {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  line-height: 1.3; margin: 0 0 0.4rem; display: block;
}
/* These are spans (they sit inside the anchor), so they need to be told to
   behave as blocks or the meta line runs on from the description. */
.entry__d { display: block; color: var(--ink-2); margin: 0 0 0.5rem; font-size: 0.97rem; max-width: 34rem; }
.entry__m { display: block; font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.02em; }

.contact { margin-top: 2.75rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.links a {
  font-size: 0.92rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule-firm); padding: 0.5rem 1rem;
  transition: border-color .15s, color .15s;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

footer {
  border-top: 1px solid var(--rule); background: var(--paper-alt);
  font-size: 0.82rem; color: var(--ink-3);
}
footer p { width: min(100% - 2.75rem, 40rem); margin: 0 auto; padding-block: 1.5rem; }
