/* jamieaprile.com
   One family (Instrument Sans), off-white ground, deep Aegean blue accent. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-latin-standard-normal.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: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-latin-standard-italic.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 {
  --limewash: #f3f3ef;   /* ground */
  --ink: #1b2027;        /* text */
  --ash: #555d67;        /* secondary text */
  --aegean: #1f4b78;     /* accent: deep sea blue */
  --aegean-deep: #163a5e;
  --wash: #d8e0ea;       /* pale blue, for text on the accent */
  --rule: #c5ccd3;

  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 40rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--aegean);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--aegean-deep); text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--aegean);
  outline-offset: 3px;
  border-radius: 2px;
}

cite { font-style: italic; }
strong { font-weight: 600; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul.plain, ol.record { list-style: none; padding: 0; }

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--limewash);
  z-index: 10;
}
.skip:focus { top: 0.75rem; }


/* Top navigation ---------------------------------------------------------- */

.top {
  max-width: 78rem;
  margin-inline: auto;
  padding: 1.4rem var(--gutter) 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  justify-content: flex-end;
  font-size: 0.9375rem;
  font-stretch: 95%;
  font-weight: 500;
}
.nav a { color: var(--ink); text-decoration-line: none; padding-block: 0.2rem; }
.nav a:hover { color: var(--aegean); text-decoration-line: underline; text-decoration-thickness: 1px; }


/* Intro: name, lead photograph, opening paragraph -------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 3rem;
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

h1 {
  font-size: clamp(2.7rem, 11vw, 8.75rem);
  font-weight: 600;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-left: -0.04em; /* optical alignment of the J with the text edge */
}

.role {
  max-width: 15rem;
  padding-bottom: 0.45em;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--aegean);
}

.lead-photo img {
  width: 100%;
  height: clamp(21rem, 72vh, 50rem);
  object-fit: cover;
  object-position: 50% 62%;
}
.lead-photo figcaption,
.door-photo figcaption {
  padding-top: 0.6rem;
  font-size: 0.875rem;
  font-stretch: 95%;
  line-height: 1.4;
  color: var(--ash);
}
.lead-photo figcaption { text-align: right; }

.opening {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
  padding-bottom: clamp(3rem, 5.5vw, 4.5rem);
}

.lede {
  max-width: 44rem;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.facts {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.facts div { padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.facts dt { font-stretch: 95%; color: var(--ash); }
.facts dd { font-weight: 500; }
.facts a { overflow-wrap: anywhere; }


/* Sections ----------------------------------------------------------------- */

.band > .cols {
  padding-bottom: clamp(3rem, 5.5vw, 4.5rem);
}
.band > .cols::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 1px;
  background: var(--rule);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.cols { display: grid; gap: 1.25rem; }

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--aegean);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  font-stretch: 92%;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prose > p { max-width: var(--measure); text-wrap: pretty; }
.prose > p + p { margin-top: 1.1em; }
.prose > h3 { margin-bottom: 0.9rem; }

/* About */
.degrees {
  max-width: var(--measure);
  margin-top: 2.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.degrees li { padding-block: 0.65rem; border-top: 1px solid var(--rule); }
.degrees .what { display: block; font-weight: 600; }
.degrees .where { color: var(--ash); }

.portrait { max-width: var(--measure); margin-bottom: 1.75rem; }
.portrait img { width: 100%; }

/* Fieldwork: feature with photograph */
.feature { display: grid; gap: 2.25rem; }
.door-photo { max-width: 26rem; }
.door-photo img { width: 100%; }

.list-title {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-stretch: 100%;
  letter-spacing: 0;
}
.list-title.first { margin-top: 0; }

/* Dated records: a staff with a tick at each entry, like a measuring rod */
.record {
  max-width: 50rem;
  border-left: 1px solid var(--aegean);
}
.record li {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0 0 1.15rem 1.5rem;
}
.record li:last-child { padding-bottom: 0.15rem; }
.record li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.7rem;
  height: 1px;
  background: var(--aegean);
}
.record .when {
  font-size: 0.9375rem;
  font-stretch: 95%;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ash);
}
.record .entry { line-height: 1.45; font-weight: 550; }

.note { margin-top: 2rem; }
.note > p, p.note { max-width: var(--measure); }

/* Selected work */
.works { max-width: 46rem; }
.works li { padding-block: 0.9rem; border-top: 1px solid var(--rule); line-height: 1.4; }
.works li:last-child { border-bottom: 1px solid var(--rule); }
.works a, .works .title { display: block; font-weight: 550; text-wrap: pretty; }
.works .detail {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ash);
}

/* In the news */
.press { max-width: 46rem; }
.press li { padding-block: 1rem; border-top: 1px solid var(--rule); line-height: 1.35; }
.press li:last-child { border-bottom: 1px solid var(--rule); }
.press .source {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  font-stretch: 95%;
  color: var(--ash);
}
.press a { font-size: 1.25rem; font-weight: 550; text-wrap: pretty; }


/* Contact: the one field of colour ---------------------------------------- */

.close {
  background: var(--aegean);
  color: var(--limewash);
}
.close > .cols {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.close h2 { color: var(--wash); }
.close a { color: var(--limewash); }
.close a:hover { color: #fff; }
.close a:focus-visible { outline-color: var(--limewash); }

.reach { max-width: 30rem; color: var(--wash); }
.mail {
  margin-top: 0.4rem;
  font-size: clamp(1.45rem, 5.4vw, 3.5rem);
  font-weight: 600;
  font-stretch: 82%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mail a { text-decoration-thickness: 2px; text-underline-offset: 0.14em; overflow-wrap: anywhere; }
.mail a:hover { text-decoration-thickness: 3px; }

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9375rem;
  font-weight: 500;
}
.legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid rgb(243 243 239 / 0.3);
  font-size: 0.875rem;
  color: var(--wash);
}


/* Wider screens ------------------------------------------------------------ */

@media (min-width: 60rem) {
  .cols {
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 3rem;
  }
  .cols > h2 { padding-top: 0.2rem; }

  .opening {
    grid-template-columns: minmax(0, 1fr) 17rem;
    column-gap: clamp(3rem, 7vw, 7rem);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem);
    column-gap: 3rem;
    align-items: start;
  }

  .record li {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
    padding-left: 1.75rem;
  }
  .record li::before { top: 0.82em; }
  .record .when { padding-top: 0.12rem; }
}

@media (max-width: 40rem) {
  .nav { justify-content: flex-start; gap: 0.25rem 1.25rem; }
  .lead-photo img { height: auto; aspect-ratio: 4 / 5; object-position: 50% 70%; }
  .lead-photo figcaption { text-align: left; }
  .role { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .skip { display: none; }
  .close { background: none; color: var(--ink); }
  .close a, .close h2, .reach, .legal { color: var(--ink); }
}
