@font-face {
  font-family: "Libre Caslon Display";
  src: url("/assets/caslon-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/caslon-text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/caslon-text-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Layout: two fields that meet. A deep green field and a pale stone field sit
     side by side, and each page is composed across the line where they join. */
  color-scheme: light;
  --forest: #15332d;        /* the deep field: openings, the research band, the close */
  --stone: #e6e9e3;         /* the pale field */
  --paper: #fbfbf9;         /* reading surface */
  --ink: #1b2b27;           /* text on paper and stone */
  --muted: #5c6a66;         /* dates, sources */
  --brass: #a8873f;         /* fine lines only */
  --brass-text: #775d22;    /* small labels on light fields */
  --brass-light: #d2b77c;   /* small labels and lines on the deep field */
  --line: #d3d8d1;
  --on-forest: #eef2ec;
  --on-forest-muted: #b3c3bb;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --band: clamp(4rem, 8vw, 7rem);
  --portrait: clamp(10rem, 19vw, 17rem);
  --seam-gap: clamp(1.5rem, 3vw, 2.75rem);
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { min-height: 55vh; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--forest);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
::selection { background: #cfdcd3; color: var(--forest); }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .4em; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 86rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: fixed;
  z-index: 100;
  top: .6rem;
  left: .6rem;
  padding: .6rem 1rem;
  background: var(--paper);
  color: var(--forest);
  font-weight: 600;
  transform: translateY(-220%);
}
.skip:focus { transform: none; }

.lead { font: 400 clamp(1.2rem, 1.75vw, 1.45rem)/1.5 var(--serif); }
.kind { margin: 0 0 .9rem; color: var(--brass-text); font: 600 .92rem/1.4 var(--sans); }
.meta { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.link { font-weight: 600; font-size: .98rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 1.75rem 0 0; }

/* Header: the monogram and the menu sit over the opening field of each page. */
.site-header { position: absolute; z-index: 20; inset: 0 0 auto 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.75rem; }
.identity { display: inline-flex; color: var(--on-forest); }
.identity svg { width: 3.5rem; height: auto; fill: currentColor; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.1vw, 2.1rem); font-size: .96rem; font-weight: 500; }
.desktop-nav a { padding-block: .35rem; border-bottom: 1px solid transparent; color: var(--on-forest); text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { border-bottom-color: var(--brass-light); }
.desktop-nav a.nav-contact { padding: .5rem 1.1rem; border: 1px solid currentColor; border-radius: 2px; }
.desktop-nav a.nav-contact:hover, .desktop-nav a.nav-contact[aria-current="page"] { border-color: var(--on-forest); background: var(--on-forest); color: var(--forest); }
.mobile-nav { display: none; }

/* Home: the two fields, with the portrait on the line between them */
.split-hero { background: linear-gradient(90deg, var(--forest) 50%, var(--stone) 50%); }
.split-inner, .split-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--portrait) minmax(0, 1fr);
  column-gap: var(--seam-gap);
}
.split-inner { align-items: center; padding-top: 8.25rem; }
.half { margin: 0; font: 400 clamp(2.2rem, 4.85vw, 4.6rem)/1.05 var(--display); }
.half-a { color: var(--on-forest); }
.half-b { color: var(--forest); }
.seam-portrait { position: relative; z-index: 0; }
.seam-portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; filter: grayscale(1); }
.seam-portrait::before {
  content: "";
  position: absolute;
  inset: .85rem -.85rem -.85rem .85rem;
  border: 1px solid var(--brass);
}
.split-foot { align-items: end; padding-block: clamp(2.75rem, 5vw, 4rem) clamp(2rem, 3.5vw, 2.75rem); }
.who { margin: 0; color: var(--on-forest-muted); font-size: .95rem; line-height: 1.5; }
.who b { display: block; margin-bottom: .15rem; color: var(--on-forest); font: italic 400 1.25rem/1.3 var(--serif); }
.split-foot .links { grid-column: 3; margin: 0; }

/* Bands */
.band { padding-block: var(--band); }
.band-stone { background: var(--stone); }
.band-forest { background: var(--forest); color: var(--on-forest); }
.band-forest h2, .band-forest h3, .band-forest h4 { color: #fff; }
.band-forest .kind { color: var(--brass-light); }
.band h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); }
.band-intro { max-width: 38rem; margin-top: 1.25rem; }
.after { margin-top: clamp(2rem, 4vw, 2.75rem); }

.lede-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 7vw, 7rem); align-items: start; }
.lede-grid .lead { margin-bottom: 1.2em; color: var(--forest); }
.lede-grid p { max-width: 36rem; }

/* Two sides, divided by a fine line */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > div { padding-right: clamp(1.5rem, 5vw, 5rem); }
.duo > div + div { padding-right: 0; padding-left: clamp(1.5rem, 5vw, 5rem); border-left: 1px solid var(--brass); }
.band-forest .duo > div + div { border-left-color: var(--brass-light); }
.duo h3 { margin-bottom: 1rem; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.duo p { max-width: 31rem; }
.duo-top { margin-top: clamp(2rem, 4vw, 3rem); }

.entry { padding-block: 1.2rem 1.35rem; border-top: 1px solid rgba(27, 43, 39, .16); }
.band-forest .entry { border-top-color: rgba(238, 242, 236, .18); }
.entry h4 { margin-bottom: .45rem; font: 400 1.3rem/1.25 var(--serif); }
.entry p { font-size: 1rem; line-height: 1.6; }
.band-forest .entry p { color: var(--on-forest-muted); }
.entry .link { display: inline-block; margin-top: .65rem; font-size: .9rem; }
.entry .links { margin-top: .65rem; gap: .3rem 1.25rem; }
.entry .links .link { margin-top: 0; }
.duo .kind { margin-bottom: 1.1rem; }

/* Essays as two tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.tiles-first { margin-top: 0; }
.tile { padding-top: 1.4rem; border-top: 2px solid var(--forest); }
.tile h2, .tile h3 { margin: .7rem 0 .8rem; font-size: clamp(1.75rem, 2.7vw, 2.35rem); line-height: 1.12; }
.tile a { text-decoration: none; }
.tile a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; }
.tile p { max-width: 33rem; }

/* The close mirrors the opening */
.split-close { background: linear-gradient(90deg, var(--stone) 50%, var(--forest) 50%); }
.split-close .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.close-a { padding: var(--band) clamp(1.5rem, 5vw, 5rem) var(--band) 0; }
.close-b { padding: var(--band) 0 var(--band) clamp(1.5rem, 5vw, 5rem); color: var(--on-forest); }
.close-a h2, .close-b h2 { margin-bottom: 1.25rem; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.close-b h2 { color: #fff; }
.close-a p, .close-b p { max-width: 31rem; }
.email-link { display: inline-block; font: 400 clamp(1.3rem, 2.3vw, 1.75rem)/1.3 var(--serif); overflow-wrap: anywhere; }
.close-b .email-link, .contact-band .email-link { margin-top: 1.5rem; }
.contact-band { padding-block: var(--band); background: var(--forest); color: var(--on-forest); }
.contact-band h2 { margin-bottom: 1.25rem; color: #fff; font-size: clamp(2rem, 3.7vw, 3.15rem); }
.contact-band p { max-width: 33rem; }

.site-footer { padding-block: 1.6rem 1.9rem; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }

/* Inner pages open on the deep field, with the monogram large and faint */
.page-band { position: relative; overflow: hidden; padding-block: 8.75rem clamp(3rem, 6vw, 5rem); background: var(--forest); color: var(--on-forest); }
.page-band .wrap { position: relative; }
.page-band h1 { max-width: 17ch; color: #fff; font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.05; }
.page-band .lead { max-width: 37rem; margin-top: 1.4rem; }
.page-band .meta { margin-top: 1.5rem; color: var(--on-forest-muted); }
.page-band .back { display: inline-block; margin-bottom: 1.75rem; color: var(--on-forest-muted); font-size: .92rem; font-weight: 600; }
.mark { position: absolute; right: -2rem; bottom: -5.5rem; width: clamp(15rem, 34vw, 30rem); height: auto; fill: rgba(238, 242, 236, .06); pointer-events: none; }

.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 6vw, 5rem); }
.service + .service { border-top: 1px solid var(--line); }
.service h2 { font-size: clamp(2rem, 3.5vw, 2.95rem); }
.service-body > p { max-width: 38rem; }
.questions { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.questions > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .2rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.questions dt { color: var(--forest); font-weight: 600; font-size: .98rem; }
.outcome { max-width: 36rem; margin-top: 1.9rem; padding-left: 1.15rem; border-left: 2px solid var(--brass); color: var(--forest); font: italic 400 1.22rem/1.5 var(--serif); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem clamp(2rem, 7vw, 7rem); margin-top: clamp(2rem, 4vw, 3rem); }
.principles h3 { margin-bottom: .55rem; font: 400 1.4rem/1.25 var(--serif); }
.principles p { max-width: 31rem; }
.note { max-width: 38rem; }

.pull { max-width: 26ch; padding-left: clamp(1.1rem, 2.5vw, 2rem); border-left: 2px solid var(--brass); color: var(--forest); font: 400 clamp(1.75rem, 3.3vw, 2.7rem)/1.18 var(--display); }
.pull-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 7vw, 7rem); align-items: center; }

.rows { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .4rem 2rem; padding-block: 1.8rem 1.95rem; border-bottom: 1px solid var(--line); }
.row .meta { padding-top: .3rem; }
.row h3 { max-width: 46rem; font: 400 1.38rem/1.3 var(--serif); text-wrap: pretty; }
.row p { max-width: 40rem; }
.row .byline { margin: .5rem 0 .95rem; color: var(--muted); font-size: .92rem; }
.row .links { margin-top: 1rem; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; }
.band-stone .rows, .band-stone .row { border-color: rgba(27, 43, 39, .16); }
/* A paper's own page gives its formal title and authors under the plain-language opening */
.paper-ref { max-width: 44rem; margin-top: 1.9rem; padding-top: 1.1rem; border-top: 1px solid rgba(238, 242, 236, .22); color: var(--on-forest-muted); font-size: .95rem; line-height: 1.55; }
.paper-ref b { display: block; margin-bottom: .35rem; color: var(--on-forest); font: italic 400 1.1rem/1.4 var(--serif); }
.band-forest .principles p { color: var(--on-forest-muted); }
.background dt { color: var(--brass-text); font-weight: 600; font-size: .95rem; padding-top: .15rem; }
.background dd p { margin-bottom: .35em; }

/* About */
.profile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem clamp(2.5rem, 8vw, 8rem); align-items: start; }
.profile .seam-portrait { max-width: 22rem; margin-right: .85rem; }
.profile-text .lead { margin-bottom: 1.2em; color: var(--forest); }
.profile-text p { max-width: 38rem; }

/* Contact page */
.contact-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem clamp(2rem, 7vw, 7rem); }
.contact-box .actions { margin-top: 1rem; }
.contact-box button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.contact-box .notice { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
.contact-box .notice:empty { display: none; }
.contact-box .links { margin-top: 1.5rem; }
.contact-page h2 { margin: 0 0 .6rem; font: 400 1.4rem/1.25 var(--serif); }
.contact-page h2 ~ h2 { margin-top: 2rem; }
.contact-page p { max-width: 34rem; }

/* Essays read in the serif */
.article-body { max-width: 41rem; font: 400 1.14rem/1.72 var(--serif); }
.article-body h2 { margin: 2.2em 0 .7em; font: 400 1.45rem/1.25 var(--serif); }
.article-body > :first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.05em; }
.article-body strong { font-weight: 400; font-style: italic; }
.after-article { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; max-width: 41rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.text-page { max-width: 41rem; }
.text-page h2 { margin: 2em 0 .6em; font: 400 1.4rem/1.25 var(--serif); }
.text-page > :first-child { margin-top: 0; }

@media (min-width: 721px) {
  /* On the home page the menu sits over the pale field. */
  .home .desktop-nav a, .home .mobile-nav summary { color: var(--ink); }
  .home .desktop-nav a:hover, .home .desktop-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .home .desktop-nav a.nav-contact:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
}
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; font-weight: 500; }
  .mobile-nav summary { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .2rem; color: var(--on-forest); cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after {
    content: "";
    width: .45rem;
    height: .45rem;
    margin-top: -.2rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .mobile-nav[open] summary::after { margin-top: .25rem; transform: rotate(225deg); }
  .mobile-nav nav { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; padding: .25rem var(--gutter) 1rem; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .mobile-nav nav a { display: block; padding: .85rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .mobile-nav nav a:first-child { border-top: 0; }
  .mobile-nav nav a[aria-current="page"] { color: var(--forest); font-weight: 700; }
}
@media (max-width: 899px) {
  .header-inner { min-height: 4.75rem; }
  .identity svg { width: 3rem; }
  .lede-grid, .service, .profile, .contact-page, .pull-grid { grid-template-columns: 1fr; }
  .page-band { padding-top: 7rem; }
  .profile .seam-portrait { max-width: 16rem; margin-bottom: 1rem; }
}
@media (max-width: 720px) {
  .split-hero { background: var(--stone); }
  .split-hero > .wrap { padding-inline: 0; }
  .split-inner, .split-foot { display: block; padding: 0; }
  .half { padding-inline: var(--gutter); font-size: clamp(2.35rem, 10.5vw, 3.4rem); }
  .half-a { padding-top: 6.75rem; padding-bottom: 9.25rem; background: var(--forest); }
  .seam-portrait { width: 12rem; margin: -7.5rem 0 0 var(--gutter); }
  .half-b { padding-top: 2.4rem; }
  .split-foot { padding: 2rem var(--gutter) 2.75rem; }
  .who { margin-bottom: 1.25rem; color: var(--muted); }
  .who b { color: var(--forest); }
  .profile .seam-portrait { width: auto; max-width: 16rem; margin: 0 0 1.5rem; }
  .duo, .tiles, .principles { grid-template-columns: 1fr; }
  .duo { row-gap: 2.5rem; }
  .duo > div { padding-right: 0; }
  .duo > div + div { padding: 2.25rem 0 0; border-left: 0; border-top: 1px solid var(--brass); }
  .band-forest .duo > div + div { border-top-color: var(--brass-light); }
  .split-close { background: none; }
  .split-close .wrap { display: block; padding-inline: 0; }
  .close-a, .close-b { padding: var(--band) var(--gutter); }
  .close-a { background: var(--stone); }
  .close-b { background: var(--forest); }
  .row, .questions > div { grid-template-columns: 1fr; }
  .row .meta { padding-top: 0; }
  .mark { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
