/* Warm off-white page inside a closed hairline frame. The sticky header is the frame's first cell,
   the dark footer is its last. Content sits on a 12-column grid and spans columns 2 to 11. */
:root {
  --bg: #faf8f3;
  --text: #141413;
  --text-2: #6b6964;
  --border: #dedad2;
  --accent: #0e5f63;
  --footer-bg: #2b2b28;
  --footer-text: #d9d7d0;
  --footer-muted: #9a988f;
  --heading: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "STIX Two Text", "Times New Roman", serif;
  --gutter: 48px;
  --inset: 28px;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
p a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover { color: var(--text); }

.page { max-width: 1320px; margin: 0 auto; padding: var(--gutter); }
/* Drawing-sheet border: a heavier inner line and a thin outer line 4px out. */
.frame { position: relative; border: 1.5px solid var(--border-2); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border); }

/* header */
.topbar { position: sticky; top: var(--gutter); z-index: 10; height: 64px; padding: 0 var(--inset); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar { border-bottom-color: var(--border-2); }
/* Masks the gutter above the sticky bar and redraws the frame's top: inner heavy line across the frame,
   thin outer line 4px above it, and the two short outer verticals that turn the corner. */
.topbar::before { content: ""; position: absolute; left: -6.5px; right: -6.5px; bottom: 100%; height: calc(var(--gutter) + 2px);
  background:
    linear-gradient(var(--border), var(--border)) left 1px bottom 0 / 1px 6.5px no-repeat,
    linear-gradient(var(--border), var(--border)) right 1px bottom 0 / 1px 6.5px no-repeat,
    linear-gradient(var(--border), var(--border)) center bottom 5.5px / calc(100% - 2px) 1px no-repeat,
    linear-gradient(var(--border-2), var(--border-2)) center bottom 0 / calc(100% - 10px) 1.5px no-repeat,
    var(--bg); }
.brand { display: flex; align-items: baseline; gap: 14px; font: 600 17px/1 var(--heading); letter-spacing: 0.12em; }
.brand .long { font: 400 12px/1 var(--heading); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { font: 500 14px/1.3 var(--heading); color: var(--text-2); }
.topbar nav a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.menu-btn, .menu { display: none; }

/* grid */
main { padding: 72px 0 40px; }
.sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: 88px; }
.sec > * { grid-column: 2 / span 10; min-width: 0; }
.sec h2 { font: 500 22px/1.3 var(--heading); letter-spacing: -0.01em; margin-bottom: 24px; }

/* hero */
.hero > div { max-width: var(--measure); }
h1 { font: 500 clamp(30px, 3.6vw, 44px)/1.15 var(--heading); letter-spacing: -0.015em; text-wrap: pretty; }
.hero h1 + p { margin-top: 28px; }
.hero p + p { margin-top: 20px; }
.hero .project { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero .project h3 { font: 500 15px/1.4 var(--heading); margin-bottom: 12px; }

/* people */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 40px 56px; }
.person { min-width: 0; }
.avatar { position: relative; width: 165px; aspect-ratio: 1; margin-bottom: 14px; border-radius: 0; background: rgba(20, 20, 19, 0.06); display: grid; place-items: center; font: 400 22px var(--heading); color: var(--text-2); overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .name { display: flex; align-items: center; gap: 10px; }
.person h3 { font: 500 17px/1.4 var(--heading); }
.person .role { font: 400 14px/1.4 var(--heading); color: var(--text-2); margin-top: 2px; }
.person .blurb { font-size: 16px; line-height: 1.55; margin-top: 12px; color: var(--text); }
.person .links { display: flex; gap: 8px; }
.person .links a { display: grid; place-items: center; width: 22px; height: 22px; color: var(--text-2); }
.person .links a:hover { color: var(--text); }
.person .links svg { width: 15px; height: 15px; display: block; }

/* roles */
.roles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); max-width: 760px; }
.roles li { border-bottom: 1px solid var(--border); }
.roles a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; }
.roles .title { font: 500 17px/1.4 var(--heading); }
.roles .loc { font: 400 14px/1.4 var(--heading); color: var(--text-2); display: block; margin-top: 2px; }
.roles .apply { font: 500 14px/1 var(--heading); color: var(--text-2); white-space: nowrap; }
.roles a:hover .apply { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* footer */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 40px var(--inset) 44px; }
footer .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
footer .brand { color: #ffffff; }
footer .row a { font: 400 14px/1.4 var(--heading); color: var(--footer-text); }
footer .row a:hover { color: #ffffff; }
footer .legal { margin-top: 24px; font: 400 13px/1.55 var(--heading); color: var(--footer-muted); max-width: 70ch; }
footer .legal a { color: var(--footer-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  :root { --gutter: 24px; --inset: 20px; }
  .sec > * { grid-column: 1 / span 12; padding: 0 var(--inset); }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 14px; --inset: 18px; }
  body { font-size: 17px; }
  main { padding-top: 48px; }
  .sec { margin-bottom: 64px; }
  .topbar nav { display: none; }
  .brand .long { display: none; }
  .menu-btn { display: block; font: 500 14px/1 var(--heading); background: none; border: 0; padding: 8px 0; color: var(--text); cursor: pointer; }
  .menu { position: absolute; top: 64px; left: -1px; right: -1px; z-index: 9; background: var(--bg); border: 1px solid var(--border); border-top: 0; padding: 8px var(--inset) 20px; flex-direction: column; }
  body.menu-open .menu { display: flex; }
  .menu a { font: 500 20px/1.3 var(--heading); padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu a:last-child { border-bottom: 0; }
}

/* v2 · Standards body. After NIST, ISO and BSI documents: cooler paper, denser type, numbered clauses,
 a slate-blue accent used only for links and numbers. Grotesk a half-step lighter, like a printed standard. */
:root { --bg: #f6f6f3; --text: #151617; --text-2: #666a6e; --border: #d8d9d4; --border-2: #b9bbb4; --accent: #2b4c7e; --measure: 68ch; }
body { font-size: 17px; line-height: 1.55; }
h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.01em; }
.sec h2 { font-size: 20px; font-weight: 500; }
.hero .project h3 { font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-2); }
.topbar nav a { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
p a { color: var(--accent); }
.person .blurb { font-size: 16px; }
.roles .title { font-size: 16px; }
.roles .apply { color: var(--accent); }
footer { background: #1f2a38; }

/* Type: STIX Two Text for everything except the wordmark, which stays Public Sans. */
:root { --heading: "STIX Two Text", "Times New Roman", serif; }
.brand { font-family: "Public Sans", Arial, sans-serif; }
.brand .long { font: 400 12px/1 "Public Sans", Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.topbar nav a { font: 500 12px/1.3 "Public Sans", Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.menu a { font-family: "Public Sans", Arial, sans-serif; }
h1 { font-weight: 600; font-size: clamp(30px, 3.2vw, 40px); letter-spacing: 0; line-height: 1.25; }
.sec h2 { font-weight: 600; font-size: 24px; letter-spacing: 0; }
.hero .project h3 { font: 600 17px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.person h3 { font-weight: 600; font-size: 18px; }
.person .role { font: 400 15px/1.4 var(--body); }
.roles .title { font-weight: 600; font-size: 17.5px; }
.roles .loc { font: 400 15px/1.4 var(--body); }
.roles .apply { font: 400 15px/1 var(--body); }
footer .row a, footer .legal { font-family: "Public Sans", Arial, sans-serif; }
footer .legal { font-size: 13px; }

/* Oxford rule: heavy line outside, fine line inside, 2px apart. */
:root { --rule-fine: #c9cac4; --rule-heavy: #9a9c95; }
.frame { border: 1px solid var(--rule-fine); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rule-heavy); }
.topbar { border-bottom-color: var(--border); }
.topbar::before { left: -5px; right: -5px;
background:
  linear-gradient(var(--rule-heavy), var(--rule-heavy)) left 0 bottom 0 / 2px 5px no-repeat,
  linear-gradient(var(--rule-heavy), var(--rule-heavy)) right 0 bottom 0 / 2px 5px no-repeat,
  linear-gradient(var(--rule-heavy), var(--rule-heavy)) center bottom 3px / 100% 2px no-repeat,
  linear-gradient(var(--rule-fine), var(--rule-fine)) center bottom 0 / calc(100% - 8px) 1px no-repeat,
  var(--bg); }

/* Role pages: one column at the paragraph measure, headings follow the home page. */
.post { max-width: var(--measure); }
.post h1 { margin-bottom: 28px; }
/* Role facts under the title: small caps labels, a plain bordered Apply button. */
.post .roleinfo { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 20px 0; margin-bottom: 36px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post .roleinfo dl { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; }
.post .roleinfo dt { font: 400 11px/1 "Public Sans", Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 7px; }
.post .roleinfo dd { margin: 0; font-size: 16px; line-height: 1.3; }
.post .lede { background: rgba(20, 20, 19, 0.045); padding: 24px 28px; margin-bottom: 8px; }
.post .lede p + p { margin-top: 14px; }
.btn { display: inline-block; font: 500 13px/1 "Public Sans", Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 22px; border: 1px solid var(--text); color: var(--text); white-space: nowrap; }
.btn:hover { background: var(--text); color: var(--bg); }
.post h2 { font: 600 20px/1.3 var(--heading); margin: 44px 0 12px; }
.post h3 { font: 600 17px/1.5 var(--heading); margin-top: 20px; }
.post p + p, .post ul + p { margin-top: 14px; }
.post ul { list-style: none; padding-left: 1.3em; margin: 10px 0; }
.post li { position: relative; }
.post li::before { content: ""; position: absolute; left: -1.3em; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.post li li::before { width: 6px; height: 6px; background: var(--text-2); }
.post li + li { margin-top: 6px; }
.post li a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post li a:hover { color: var(--text); }
.post li ul { margin: 6px 0 0; }
.post .closing { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.post .closing p { margin-top: 18px; font-size: 16px; color: var(--text-2); }
