/* Set in Blend Serif and Blend Sans (SIL OFL 1.1; licences in fonts/). Colours are the app's own tokens. */
@font-face { font-family: "Blend Serif"; src: url("fonts/BlendSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Blend Sans"; src: url("fonts/BlendSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Blend Sans"; src: url("fonts/BlendSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #F1F0EC; --ink: #16171A; --ink-2: #5A5B60; --line: rgba(22, 23, 26, .16); --select: rgba(47, 91, 255, .22);
  --serif: "Blend Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Blend Sans", -apple-system, "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 6.8vw, 96px);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #17181B; --ink: #ECEBE6; --ink-2: #A4A39E; --line: rgba(236, 235, 230, .18); --select: rgba(134, 160, 255, .3); }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--select); }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--ink-2); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 500; }

.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 0; font-size: 15px; }
.bar .name { font-weight: 500; text-decoration: none; }
.bar nav { display: flex; gap: 20px; }
.bar nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; }
.bar nav a[aria-current] { color: var(--ink); }
.bar nav a:hover { color: var(--ink); }

.hero { padding: clamp(56px, 10vw, 136px) 0 clamp(48px, 7vw, 96px); }
h1 { font: 400 clamp(36px, 11.6vw, 112px)/1.07 var(--serif); letter-spacing: -.01em; }
h1 span { display: block; }
.lede { max-width: 30em; margin-top: clamp(24px, 3.4vw, 40px); font: 400 clamp(21px, 2.3vw, 27px)/1.34 var(--serif); }

section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
h2 { font: 400 clamp(25px, 2.5vw, 30px)/1.18 var(--serif); letter-spacing: -.005em; max-width: 11em; }
.body { max-width: 38em; }
.body > * + * { margin-top: .85em; }
h3 { font: 500 17px/1.4 var(--sans); }
.body h3 + p { margin-top: .15em; }
.body p + h3 { margin-top: 1.5em; }
.quiet { color: var(--ink-2); }

.rows { list-style: none; padding: 0; }
.rows div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 11fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows div:first-child { border-top: 0; padding-top: 0; }
.rows dt { font-weight: 500; }
.rows dd { margin: 0; }

.mail { display: inline-block; margin-top: clamp(24px, 3.4vw, 40px); font: 400 clamp(21px, 2.3vw, 27px)/1.3 var(--serif); overflow-wrap: anywhere; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

@media (max-width: 720px) {
  section { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
