@font-face {
  font-family: "RegTimes";
  src: url("/assets/fonts/RegTimes.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "ANRT Baskerville";
  src: url("/assets/fonts/RegItalicAnrtBask.otf") format("opentype");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "RegTimes", "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  /* Asymmetric: generous left void, text hangs off it. */
  padding: 1.25rem 1.5rem 7rem clamp(1.25rem, 16vw, 13rem);
  line-height: 1.5;
  font-size: 1.05rem;
}

main {
  max-width: 36rem;
}

/* Titles match the corner links in size (1.08em of the body text).
   Nothing on the site changes size on hover. */
h1,
h2,
h3 {
  font-family: "RegTimes", "Times New Roman", serif;
  font-weight: normal;
  font-size: 1.08em;
  line-height: 1.5;
}

h1 {
  margin: 0 0 1.5rem;
}

a {
  color: var(--ink);
  text-decoration: none;
  font-family: "ANRT Baskerville", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.08em;
}

/* The home glyph — the custom italic font doesn't cover ⊹, so let it
   render upright from the system serif at a size that sits comfortably
   above the stacked links. */
.home-link {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: 1.2em;
  line-height: 1;
}

/* Corner navigation, stacked and right-aligned. */
header nav {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  z-index: 20;
}

.intro {
  margin-top: 26vh;
}

.intro h1 {
  margin-bottom: 0;
}

.intro p {
  margin-top: 0;
}

.intro-links {
  margin-top: 3.5rem;
}


article,
main > h1 {
  margin-top: 14vh;
}

.entry-list {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.entry-list li {
  margin: 1.4rem 0;
}


.meta {
  display: block;
  opacity: 0.5;
  font-size: 0.85rem;
  font-style: normal;
}

.section-note {
  opacity: 0.6;
}

/* Contact links live in the bottom-right corner, mirroring the nav. */
footer {
  position: fixed;
  right: 1.5rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  z-index: 20;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 40rem) {
  body {
    padding: 1rem 1rem 3rem;
  }

  header nav,
  footer {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
  }

  footer {
    margin-top: 4rem;
  }

  .intro {
    margin-top: 14vh;
  }

}

/* CV page: side-by-side section columns (not newspaper-style flow).
   Each .cv-col is one vertical stack; the grid places them in a row. */
body.cv-page {
  padding-left: 1.5rem;
}

.cv-page main {
  max-width: none;
  margin-right: 9rem;
}

.cv-sheet h1 {
  margin-bottom: 2rem;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.cv-section {
  min-width: 0;
}

.cv-section h2 {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.cv-section p {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0 0 0.25rem;
}

.cv-y {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 72rem) {
  .cv-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .cv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  body.cv-page {
    padding-left: 1rem;
  }

  .cv-page main {
    margin-right: 0;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-section p {
    grid-template-columns: 3.25rem 1fr;
  }
}

/* Overlay canvas used by the hover shader. It sits exactly on top of the
   hovered text but never intercepts the pointer, so text stays selectable.
   Fade is driven by a shader uniform so flat ink can composite over visible
   DOM text without CSS opacity darkening the letters. */
/* Fixed, not absolute: the canvas pads 28px past the hovered element, and
   an absolute canvas near a page edge would grow the document and summon
   scrollbars. Fixed elements never affect layout; the shader tears down on
   scroll anyway. */
.hover-shader-canvas {
  position: fixed;
  pointer-events: none;
  z-index: 10;
}

/* While the shader overlay is showing, the real text goes transparent but
   stays in the DOM — still selectable, still accessible. */
.shader-hidden,
.shader-hidden * {
  color: transparent !important;
  text-decoration-color: transparent !important;
}
