@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-variable.woff2") format("woff2-variations"),
       url("/fonts/archivo-variable.woff2") format("woff2");
}

:root {
  --paper: #eef1f3;
  --ink: #16212e;
  --steel: #556372;
  --rule: #c9d1d8;
  --tape: #f5c518;
  --tape-ink: #16212e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a23;
    --ink: #e6ebef;
    --steel: #9aa7b4;
    --rule: #2c3a48;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.6;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(64rem, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}
.wordmark {
  font-stretch: 118%;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--steel); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Title block + tape rule: the one loud element */
.title { padding-block: clamp(2.5rem, 8vw, 6rem) 0; }
.title h1 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 860;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.home .title h1 { font-size: clamp(3.4rem, 13vw, 9.5rem); }
.page .title h1 { font-size: clamp(2.6rem, 8vw, 5rem); }

.tape {
  height: 2rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  background-color: var(--tape);
  background-image:
    repeating-linear-gradient(to right, var(--tape-ink) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(to right, var(--tape-ink) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to right, var(--tape-ink) 0 1px, transparent 1px 10px);
  background-size: 100% 60%, 100% 42%, 100% 24%;
  background-repeat: no-repeat;
  background-position: 1rem 0, 1rem 0, 1rem 0;
}

/* Content */
main { padding-bottom: 4rem; }
.lede {
  max-width: 34rem;
  margin: 2rem 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.5;
}
.prose { max-width: 38rem; }
.prose > :first-child { margin-top: 2.5rem; }

h2 {
  margin: 3rem 0 0.5rem;
  font-stretch: 112%;
  font-weight: 720;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  margin: 2rem 0 0.25rem;
  font-stretch: 106%;
  font-weight: 680;
  font-size: 1.15rem;
}
p, ul, dl { margin: 0.75rem 0 0; }
ul { padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }

.meta { color: var(--steel); font-size: 0.95rem; }

.contacts { display: grid; gap: 1rem; margin-top: 1rem; }
.contacts div { border-left: 3px solid var(--tape); padding-left: 0.9rem; }
.contacts dt { color: var(--steel); font-size: 0.95rem; }
.contacts dd { margin: 0; font-weight: 600; }

.app {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.app h3 { margin-top: 0; }
.status { color: var(--steel); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--steel); font-size: 0.9rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2rem;
}
.site-footer nav { display: flex; gap: 1.25rem; }
