/* 1pt ≈ 1.333px at 96dpi */

:root {
  --paper: #ffffff;
  --rich-black: #08090a;
  /* Left edge shared by the fixed name (top) and the colophon (bottom). */
  --edge: max(24px, calc(50vw - 16rem));
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--rich-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 15pt;
  line-height: 18pt;
  font-feature-settings: "kern" 1;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

main.page {
  margin: 0;
}

/* ───── Intro: one viewport tall, text at top, white below ───── */

.intro {
  height: 100vh;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* Label pinned to the bottom of the opening viewport, left-aligned to the
   text column above it (same box as the bio). */
.intro-label {
  max-width: 32rem;
  width: 100%;
  margin: auto auto 0;
  text-align: left;
}

.info-block {
  max-width: 32rem;          /* mid-size text box: horizontally centred, at top */
  margin: 0 auto;
}

.col-name {
  padding-top: 18pt;         /* reserve the fixed name's line */
  margin-bottom: 18pt;       /* name / number / email sit on top */
}

/* Second paragraph: no gap, an indent marks the new paragraph. */
.info-block .bio + .bio {
  text-indent: 1.5em;
}

/* Small caps for acronyms (e.g. BA). */
.sc {
  font-variant-caps: all-small-caps;
  font-variant: all-small-caps;
}

.info-block h1.name {
  position: fixed;           /* follows the page as you scroll */
  top: 20px;
  left: var(--edge);
  z-index: 10;
  font-size: 15pt;
  font-weight: 700;
  line-height: 18pt;
  margin: 0;
}

.info-block .meta { margin: 0; }
.info-block .meta span { display: block; }
.info-block .meta a { border-bottom: none; }

.info-block .bio {
  margin: 0;
  font-weight: 700;
}

/* ───── Shots: each image fills a viewport, caption breaks underneath ───── */

.shot {
  max-width: 60rem;          /* centred with white margins, shown whole */
  margin: 0 auto 2rem;       /* tight stacking */
  padding: 0 24px;
}

.shot .feature {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;          /* keep portrait / square images from getting too tall */
  margin: 0 auto;            /* centre when height-limited */
}

/* Single-line caption directly beneath each image. */
.caption {
  margin: 0.6rem 0 0;
  text-align: center;
}

/* ───── Closing: viewport-height space, text at the bottom ───── */

.outro {
  min-height: 50vh;            /* about half a viewport of closing space */
  display: flex;
  align-items: flex-end;       /* text sits at the bottom */
  padding: 0 24px 20px var(--edge);   /* left-aligned to the fixed name */
}

.outro .info-block { max-width: none; margin: 0; }

.colophon { margin: 0; }

/* ───── Mobile ───── */

@media (max-width: 720px) {
  /* Wider side margin for the text column on mobile; name, bio and
     colophon all align to this edge. */
  :root { --edge: clamp(20px, 8vw, 64px); }

  /* Smaller image captions on mobile (~2pt down from 15pt). */
  .caption { font-size: 13pt; line-height: 16pt; }

  .intro { padding: 16px var(--edge); }

  .info-block { max-width: none; }

  .col-name { margin-bottom: 18px; }

  .info-block h1.name { top: 16px; }

  .shot {
    padding: 0 16px;
    margin-bottom: 1.5rem;
  }

  .shot .crop { overflow: hidden; }

  /* Horizontal images: crop ~10% off each side so they sit taller
     (clipped at the content edge, side margins preserved). */
  .shot:not(.portrait):not(.square) .crop .feature {
    width: 125%;
    max-width: 125%;
    max-height: none;
    margin: 0 0 0 -12.5%;
  }

  /* Portrait / square images: constrain the width so they read
     proportionally next to the horizontals (more white margin). */
  .shot.portrait .crop .feature,
  .shot.square .crop .feature {
    width: 75%;
    max-width: 75%;
    max-height: none;
    margin: 0 auto;
  }

  .outro { padding: 0 var(--edge) 16px; }
}
