:root {
  color-scheme: light;
  --ink: #142638;
  --muted: #465560;
  --teal: #17645e;
  --paper: #f8f6f0;
  --line: #d4d8d0;
  --panel: #e7ece4;
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--teal); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; padding: .8rem; background: #fff; transform: translateY(-200%); z-index: 2; }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.header-inner { padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.16rem; font-weight: 730; letter-spacing: -.04em; text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; }
.nav a, .legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 550; }
.nav a:hover, .nav a[aria-current], .legal a:hover, .legal a[aria-current] { color: var(--teal); text-decoration: underline; }
main { flex: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.tagline { margin: 0 0 1.1rem; color: var(--teal); font-size: .82rem; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 6.15vw, 5.25rem); line-height: .99; letter-spacing: -.068em; font-weight: 730; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; }
p { line-height: 1.68; }
.intro, .page p { color: var(--muted); max-width: 56ch; }
.intro { margin: 1.25rem 0 0; font-size: clamp(1rem, 2vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.45rem; margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1rem; background: var(--teal); color: #fff; border-radius: 3px; text-decoration: none; font-size: .94rem; font-weight: 670; }
.button:hover { background: #104d49; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.emblem {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background-color: var(--panel);
  background-image: linear-gradient(90deg, #cdd7cd 1px, transparent 1px), linear-gradient(#cdd7cd 1px, transparent 1px);
  background-size: 2rem 2rem;
  background-position: center;
  border: 1px solid #cbd6cc;
}
.emblem img { width: 42%; max-width: 14rem; }
.portfolio { border-block: 1px solid var(--line); background: #edf0e9; }
.portfolio .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; padding-block: clamp(1.6rem, 4vw, 2.7rem); }
.portfolio p { margin: .45rem 0 0; color: var(--muted); }
.page { padding-block: clamp(3rem, 7vw, 6.5rem); }
.page h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); }
.page h2 { margin-top: 2.35rem; }
.page .intro { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.page a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-footer { padding-block: .8rem; border-top: 1px solid var(--line); margin-top: auto; }
.site-footer p { margin: 0; font-size: .88rem; color: var(--muted); }
.legal { display: flex; gap: 1rem; }
@media (min-width: 51rem) {
  .hero { grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
}
@media (max-width: 25rem) {
  .wrap { width: calc(100% - 1.75rem); }
  .nav { column-gap: .8rem; }
}
