@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../assets/fonts/SourceSerif4-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* One ground, one ink, one accent. The accent is the blue of a snapped
     chalk line — the mark a carpenter makes before the work starts. */
  --paper:    #f7f6f3;
  --card:     #ffffff;
  --ink:      #18201d;
  --muted:    #5b6560;
  --rule:     #dcd9d2;
  --chalk:    #12569f;

  --display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --page: 62rem;
  --gap: clamp(2.75rem, 6vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.06rem, 1rem + .3vw, 1.19rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--chalk); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 100;
  font-family: var(--display); font-size: .9rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }

/* ---------- Header ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }

.nav { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; }
.nav a {
  font-family: var(--display); font-size: .86rem; font-weight: 500;
  text-decoration: none; color: var(--muted); padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--chalk); }

/* Hamburger. Hidden unless JS is present, so a no-JS visitor keeps the full nav. */
.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--rule); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 56rem) {
  .js .nav-toggle { display: none; }
  .js .nav { display: flex !important; }
}
@media (max-width: 55.999rem) {
  .js .nav {
    display: none;
    /* top is required. Without it the panel keeps its static position as a
       flex item of .masthead__in, which lands it above the viewport. */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .25rem 0 1rem;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: .8rem 1.25rem; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  .js .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--chalk); }
  .masthead { position: relative; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.25rem + 1vw, 1.95rem); }
h3 { font-size: 1.14rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.prose { max-width: 62ch; }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.5; color: var(--muted); }

.eyebrow {
  font-family: var(--display); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .8rem;
}

/* ---------- Sections ---------- */
main section { padding-block: var(--gap); }
main section + section { border-top: 1px solid var(--rule); }
.page-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { margin-bottom: .9rem; }
h2 + .prose, h2 + p { margin-top: .9rem; }

.stack > * + * { margin-top: 1.6rem; }

/* Team banner. Source is only 370x220 (it was the WordPress header image), so
   the height is capped to keep the upscale modest. */
.banner { border: 1px solid var(--rule); background: var(--card); }
.banner img {
  display: block; width: 100%;
  height: clamp(170px, 24vw, 280px);
  object-fit: cover; object-position: 50% 42%;
}

/* ---------- Before / after ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); background: var(--card); }
.ba figure { margin: 0; position: relative; }
.ba figure + figure { border-left: 3px solid var(--chalk); }
.ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ba figcaption {
  position: absolute; top: .6rem; left: .6rem;
  font-family: var(--display); font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: .25rem .55rem;
}
.ba-note { font-family: var(--display); font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.ba-set { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .ba-set { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.btn {
  font-family: var(--display); font-size: .88rem; font-weight: 600;
  text-decoration: none; padding: .75rem 1.3rem;
  background: var(--chalk); color: #fff; border: 2px solid var(--chalk);
  display: inline-block;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--plain { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--plain:hover { background: var(--ink); color: var(--paper); }

/* ---------- Simple lists ---------- */
.cols { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .cols { grid-template-columns: 1fr 1fr; } }
.marked { margin: 0; padding-left: 1.1rem; }
.marked li { margin-bottom: .5rem; }
.marked li::marker { color: var(--chalk); }

.steps { margin: 0; padding-left: 1.4rem; }
.steps li { margin-bottom: 1.6rem; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--chalk); }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin-bottom: .7rem; }

/* ---------- People ---------- */
.people { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .people { grid-template-columns: 1fr 1fr; } }
.person h3 { margin-bottom: .15rem; }
.person .role {
  font-family: var(--display); font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: .7rem;
}
.person p { font-size: .97em; }
.person a { font-family: var(--display); font-size: .84rem; word-break: break-word; }

.roster { columns: 2; column-gap: 2rem; margin: 0; padding: 0; list-style: none; max-width: 32rem; }
.roster li { break-inside: avoid; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.roster .role { display: block; font-family: var(--display); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Gallery ---------- */
.photos { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photos img { aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule); }

/* ---------- Contact ---------- */
.contact { border-left: 3px solid var(--chalk); padding-left: 1.4rem; max-width: 28rem; }
.contact h3 { margin-bottom: .15rem; }
.contact .role {
  font-family: var(--display); font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 1rem;
}
.contact .big { font-family: var(--display); font-weight: 600; font-size: 1.06rem; display: inline-block; }
.contact address { font-style: normal; color: var(--muted); margin-top: 1rem; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); margin-top: var(--gap); padding-block: 2.5rem; font-size: .95rem; }
.foot__grid { display: grid; gap: 1.6rem; }
@media (min-width: 44rem) { .foot__grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.foot a { font-family: var(--display); font-size: .86rem; text-decoration: none; }
.foot__legal { color: var(--muted); font-size: .85rem; margin-top: 1.6rem; max-width: 56ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
