@font-face {
  font-family: Hedvig;
  src: url("fonts/hedvig.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Karla;
  src: url("fonts/karla.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #faf7f2;
  --ink: #242632;
  --mulberry: #582944;
  --blue: #435465;
  --sand: #efe6db;
  --line: #d8c9bf;
  --serif: Hedvig, Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.5 Karla, system-ui, sans-serif; }
.shell { width: min(100% - clamp(2rem, 8vw, 8rem), 72rem); margin-inline: auto; }
a { color: var(--mulberry); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .7rem; background: white; z-index: 1; }
.skip:focus { transform: none; }
h1, h2, h3 { margin: 0; font: 400 1em/1.1 var(--serif); }
h1 { font-size: clamp(3rem, 8.5vw, 7rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4.7vw, 3.6rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.03em; max-width: 15ch; }
p { margin: 0 0 .95rem; }
.masthead, .footer-content, nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 1.4rem; }
.masthead { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.masthead a { display: inline-flex; align-items: center; min-height: 44px; }
.name { color: var(--ink); gap: .65rem; font-weight: 700; text-decoration: none; }
.name span { font-size: .85rem; color: var(--blue); }
nav a { font-size: .98rem; }
.hero, .project { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.3rem, 5vw, 5rem); }
.hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; background: var(--mulberry); color: var(--paper); padding: clamp(1.3rem, 5vw, 4.25rem); margin: clamp(1.35rem, 5vw, 4rem) 0; }
.lead { font: 400 clamp(1.4rem, 2.6vw, 2.05rem)/1.25 var(--serif); }
.button { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; background: var(--paper); color: var(--mulberry); font-weight: 700; padding: .6rem .8rem; margin-top: .4rem; }
.button:focus-visible { outline-color: var(--paper); }
#work > h2 { margin-bottom: 1.4rem; }
.project { border-top: 1px solid var(--line); padding: clamp(1.3rem, 3.8vw, 2.9rem) 0; }
.featured { background: white; padding-inline: clamp(1.05rem, 3.6vw, 2.6rem); border: 1px solid var(--line); border-left: 4px solid var(--mulberry); }
.featured + .project { border-top: 0; }
.organization { color: var(--blue); font-weight: 700; margin-bottom: .5rem; }
.status { display: inline-block; width: fit-content; margin: .75rem 0 0; padding: .15rem .5rem; background: var(--sand); color: var(--mulberry); font-weight: 700; font-size: .88rem; }
.status.beta { background: #e8edf1; color: #324657; }
.example { margin: 1.25rem 0; padding: clamp(.65rem, 2.2vw, 1.3rem); background: var(--sand); }
.example figcaption, .example p { font-size: .98rem; }
.example p { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: .65rem 0; font-size: .98rem; }
th, td { padding: .45rem .25rem; border-bottom: 1px solid #c8b8ac; vertical-align: top; }
th { text-align: left; }
td, thead th:not(:first-child) { text-align: right; }
.work-list { margin: 0 0 .9rem; }
.work-list div + div { margin-top: 1.1rem; }
dt { font-weight: 700; }
dt .status { margin: .1rem .25rem; }
dd { margin: .25rem 0 0; }
.approach h2 { max-width: 10ch; }
footer { background: var(--sand); padding: 2rem 0; }
footer h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: .45rem; }
footer p { margin: 0; color: var(--blue); }
.footer-content { row-gap: 1rem; }

@media (max-width: 49rem) {
  .hero, .project { grid-template-columns: minmax(0, 1fr); }
  .hero h1 br { display: none; }
}

@media (max-width: 23rem) {
  .masthead, nav { column-gap: .9rem; }
  table { font-size: .9rem; }
}
