:root {
  color-scheme: light dark;
  --bg: #eef4f7;
  --panel: #fcfeff;
  --ink: #132d41;
  --muted: #3e586c;
  --line: #c8d9e3;
  --link: #09586c;
  --button: #115569;
  --button-hover: #0b4253;
  --wash: #d7eff2;
  --focus: #007087;
  font: 1rem/1.65 system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1e2d;
    --panel: #172c3e;
    --ink: #ebf5f9;
    --muted: #b7cbd8;
    --line: #3b5366;
    --link: #8de3e5;
    --button: #115e70;
    --button-hover: #144b60;
    --wash: #173c50;
    --focus: #90e9ed;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; inset: .5rem auto auto 1rem; padding: .5rem; background: var(--panel); transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead, main, footer { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 720; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
nav a { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(6rem, 25vw, 14rem);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.7rem, 7vw, 5rem);
}
.hero > div { min-width: 0; }
h1, h2 { line-height: 1.14; letter-spacing: -.027em; overflow-wrap: anywhere; }
h1 { margin: 0 0 .75rem; font-size: clamp(2.15rem, 6vw, 4.1rem); }
h2 { margin: 0 0 .65rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.lead { margin: 0 0 1.4rem; max-width: 38rem; font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--muted); }
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .5rem .85rem;
  border-radius: .55rem;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}
.button:hover { background: var(--button-hover); }
.mark { display: block; width: 100%; height: auto; border-radius: 50%; background: var(--wash); }
.panel, .document {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1rem, 4vw, 2.65rem);
  border-radius: 1rem;
}
.panel p, .document p { max-width: 68ch; margin: .25rem 0 1rem; overflow-wrap: anywhere; }
.panel p:last-child { margin-bottom: 0; }
.label { color: var(--link); font-size: .9rem; font-weight: 700; }
.document { width: min(100% - 2rem, 54rem); margin-block: clamp(1.15rem, 4vw, 3rem); }
.document h2 { margin-top: 1.7rem; }
address { font-style: normal; overflow-wrap: anywhere; }
footer { margin-top: 2rem; border-top: 1px solid var(--line); padding-block: .9rem 1.5rem; display: flex; gap: .35rem 1rem; align-items: center; flex-wrap: wrap; }
footer p { margin: 0 auto 0 0; color: var(--muted); }
@media (max-width: 36rem) {
  .masthead, nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .mark { width: 5.25rem; grid-row: 1; }
  footer p { flex-basis: 100%; }
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
