:root {
  color-scheme: light;
  --paper: #f5efe0;
  --panel: #ebe2ce;
  --panel-strong: #dfd2b8;
  --ink: #10100d;
  --rust: #b9482e;
  --green: #7cff6b;
  --muted: #625d50;
  --border: 3px solid var(--ink);
  --radius: 4px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-large: 8px 8px 0 var(--ink);
  --rules: repeating-linear-gradient(0deg, transparent 0 7px, #10100d06 7px 8px);
  --header-height: 72px;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: calc(var(--header-height) + 22px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }

.skip-link {
  position: fixed;
  z-index: 3;
  top: 10px;
  left: 16px;
  padding: 8px 12px;
  border: var(--border);
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button.primary { background: var(--green); }
.button:hover, .button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  border-bottom: var(--border);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: calc(var(--header-height) - 3px);
  padding: 8px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.monogram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  padding-right: 2px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset -3px -3px 0 var(--rust);
  letter-spacing: -0.05em;
}

.site-nav { display: flex; gap: 12px; }
.site-nav .button { font-size: 13px; text-align: center; }
.menu-toggle { width: 42px; min-height: 42px; padding: 6px; background: var(--paper); }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 23px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

main { padding-top: var(--header-height); }
.hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 32px 24px 36px;
}

.board {
  width: min(100%, 1000px);
  padding: 44px clamp(24px, 5vw, 60px) 20px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--rules), var(--paper);
  box-shadow: var(--shadow-large);
}

.board-top, .board-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-top { padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.board-message { text-align: center; }
.kicker {
  color: var(--rust);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-message .kicker {
  width: fit-content;
  margin: 22px auto 0;
  background: var(--paper);
  font-size: 16px;
}
h1 {
  margin: 14px 0 22px;
  font-size: clamp(44px, 5.7vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.hero-note {
  max-width: 580px;
  margin: 0 auto 25px;
  color: var(--muted);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 680px);
  margin-inline: auto;
}

.hero-actions .button {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 5px;
  min-height: 76px;
  padding: 12px 20px;
  font-size: 17px;
  text-transform: uppercase;
}

.hero-actions small { font-size: 11px; font-weight: 400; letter-spacing: 0.045em; }
.board-bottom {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--muted);
  color: var(--muted);
}

.paper-sections {
  padding: 72px 24px 100px;
  border-top: var(--border);
  background: var(--rules), linear-gradient(var(--panel), var(--panel-strong));
}

.section { max-width: 1152px; margin-inline: auto; }
.section + .section { margin-top: 78px; }
.section-title {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 5px 15px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--rust);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.frame {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 24%);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(24px, 4.2vw, 58px);
  box-shadow: var(--shadow-large);
}

.featured h3 { margin-top: 8px; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.15; }
.featured h3 a, .kicker a { color: inherit; text-decoration: none; }
.featured h3 a:hover, .kicker a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.role { margin-top: 14px; font-weight: 700; }
.role span { color: var(--muted); font-weight: 400; }
.featured-copy > p:not(.kicker):not(.role) { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.featured ul, .text-card ul { display: grid; gap: 12px; margin: 16px 0 0; padding-left: 22px; color: var(--muted); }
.featured ul { margin-top: 22px; }
.featured li::marker, .text-card li::marker { color: var(--rust); }
.portrait { width: 100%; max-width: 238px; justify-self: center; padding: 8px; background: var(--panel); }
.portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.portrait figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; }

.interest-grid, .leadership-grid { display: grid; gap: 22px; }
.interest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.interest-grid li { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 110px; padding: 20px 12px; font-weight: 700; text-align: center; }
.interest-grid li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--rust);
  transform: rotate(45deg);
}
.interest-grid li:nth-child(3n + 2)::before { border-radius: 50%; background: var(--rust); }
.interest-grid li:nth-child(3n)::before { transform: none; }

.work-table { overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 20px; }
thead { background: var(--ink); color: var(--paper); }
tbody tr + tr { border-top: 1px solid var(--muted); }
tbody th { color: var(--rust); }
tbody th span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
tbody td:last-child { white-space: nowrap; }

.companion { margin-top: 22px; }
.leadership-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.text-card { padding: clamp(20px, 3vw, 34px); }
.text-card h3, .writing h3 { font-size: 19px; line-height: 1.35; }
.text-card p, .writing p { margin-top: 8px; color: var(--muted); }
.text-card .role { color: var(--ink); }
.text-card strong { color: var(--rust); }
.leadership-featured { box-shadow: var(--shadow-large); }
.leadership-featured h3 { font-size: clamp(22px, 2.5vw, 30px); }
.writing .button { font-size: 13px; text-transform: uppercase; }

.writing { max-width: 860px; margin-inline: auto; padding: clamp(24px, 4.5vw, 58px); text-align: center; box-shadow: var(--shadow-large); }
.writing h3 { color: var(--rust); font-size: clamp(20px, 2.8vw, 30px); }
.writing p { max-width: 58ch; margin-inline: auto; }
.writing .button { margin-top: 20px; }

footer { padding: 34px 24px 20px; border-top: var(--border); background: var(--panel); }
.footer-inner { max-width: 1190px; margin-inline: auto; }
.footer-brand { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; line-height: 1.2; }
.footer-brand span { color: var(--rust); }
.footer-columns { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 28px; margin: 22px 0 30px; }
.footer-columns h3 { margin-bottom: 4px; font-size: 14px; }
.footer-note p { max-width: 34ch; color: var(--muted); font-size: 13px; }
.footer-links { display: grid; justify-items: start; align-content: start; gap: 9px; font-size: 13px; }
.footer-links .button { background: var(--paper); }
.footer-links .primary { background: var(--green); }
.based { padding: 18px 0; border-top: 1px solid var(--muted); font-size: 13px; font-weight: 700; }
.copyright { padding-top: 14px; border-top: 2px solid var(--ink); color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 840px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 12px; padding-inline: 16px; }
  .menu-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
  .wordmark { grid-column: 2; grid-row: 1; }
  .wordmark-name { display: none; }
  .header-resume { grid-column: 3; grid-row: 1; justify-self: end; text-transform: uppercase; }
  .site-nav { grid-column: 1 / -1; flex-wrap: wrap; padding-bottom: 8px; }
  .has-menu .site-nav {
    position: absolute;
    inset: calc(100% + 4px) 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 16px 20px;
    border-bottom: var(--border);
    background: var(--paper);
  }
  html:not(.has-menu) .site-header { position: static; }
  html:not(.has-menu) main { padding-top: 0; }

  .hero { padding: 23px 16px 24px; }
  .board {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(100%, 560px);
    min-height: max(620px, calc(100svh - 119px));
    padding: 22px 18px 20px;
  }
  .board-top, .board-bottom { letter-spacing: 0.025em; }
  .board-message .kicker { margin-top: 20px; font-size: 12px; }
  h1 { margin: 16px 0 24px; font-size: clamp(32px, 9.6vw, 58px); }
  .hero-note { margin-bottom: 20px; font-size: 13px; }
  .hero-actions { grid-template-columns: 1fr; gap: 12px; }
  .hero-actions .button { min-height: 68px; padding: 10px 16px; font-size: 15px; }
  .hero-actions small { letter-spacing: 0; }
  .board-bottom { margin-top: 22px; }

  .paper-sections { padding: 48px 16px 65px; }
  .section + .section { margin-top: 55px; }
  .section-title { margin-bottom: 22px; }
  .featured, .interest-grid, .leadership-grid { grid-template-columns: 1fr; }
  .featured { gap: 25px; }
  .portrait { justify-self: start; max-width: 210px; }
  .interest-grid { gap: 13px; }
  .interest-grid li { min-height: 72px; grid-auto-flow: column; justify-content: start; align-items: center; padding: 14px 22px; text-align: left; }
  th, td { padding: 10px 8px; overflow-wrap: anywhere; }
  table { table-layout: fixed; font-size: 12px; line-height: 1.45; }
  thead th:nth-child(1) { width: 36%; }
  thead th:nth-child(3) { width: 20%; }
  tbody td:last-child { white-space: normal; }
  tbody th span { margin-top: 4px; font-size: 11px; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
