:root {
  color-scheme: light;
  --paper: #fafaf7;
  --blue: #dbeaf4;
  --ink: #182937;
  --muted: #425665;
  --accent: #214f6d;
  --line: #b9c6cd;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 65vh; padding-bottom: clamp(3rem, 7vw, 6rem); }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(71rem, calc(100% - 4rem)); margin-inline: auto; }

.skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 2rem;
}
.header-inner { min-height: 4.7rem; }
.brand {
  font: 600 1.37rem/1.2 var(--display);
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 1.32rem; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  font-weight: 570;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.site-footer {
  min-height: 4.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}
.site-footer a { text-underline-offset: .24em; }
.footer-brand { color: var(--ink); font: 600 1.15rem/1.2 var(--display); text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 { letter-spacing: -.06em; line-height: .99; overflow-wrap: anywhere; }
.masthead { background: var(--blue); border-top: 1px solid #c4d8e5; }
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(14rem, .73fr);
  align-items: center;
  gap: 1.7rem 3rem;
  padding-block: clamp(4.25rem, 9vw, 7.2rem) clamp(3rem, 6vw, 5rem);
}
.masthead h1 { font-size: clamp(5rem, 10.8vw, 10rem); }
.masthead p {
  max-width: 28rem;
  padding-bottom: .55rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.48;
  color: #2e4859;
}
.profile-links { margin-top: .45rem; }

.home-index { margin-top: clamp(2.1rem, 5vw, 3.8rem); }
.index-section {
  display: grid;
  grid-template-columns: minmax(11rem, .52fr) minmax(0, 1.48fr);
  gap: 1.65rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(1.25rem, 2.9vw, 2.15rem);
  border-top: 1px solid var(--line);
}
.index-section h2, .publication-list h2, .prose h2, .game-copy h2, .question-panel h2 {
  font-size: clamp(1.85rem, 3.25vw, 2.8rem);
  line-height: 1.09;
  letter-spacing: -.045em;
}
.index-section h3 { font-size: clamp(1.65rem, 2.55vw, 2.16rem); letter-spacing: -.04em; line-height: 1.12; }
.index-section h2 a, .index-section h3 a, .publication-list h2 a {
  text-decoration: underline;
  text-decoration-color: #7294ab;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}
.index-section h2 a:hover, .index-section h3 a:hover, .publication-list h2 a:hover { color: var(--accent); text-decoration-color: currentColor; }
.index-section p, .publication-list p, .prose p, .game-copy p {
  max-width: 41rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.index-section h3 + p { margin-top: .52rem; }
.index-entries { display: grid; gap: 1.3rem; }
.index-entry + .index-entry { border-top: 1px solid #dbe2e4; padding-top: 1.2rem; }
figcaption { margin-top: .5rem; color: var(--muted); font-size: .89rem; line-height: 1.45; }

.text-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 620;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.text-link:hover { color: var(--ink); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .58rem .9rem;
  min-height: 2.75rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; }

.page-heading { padding-block: clamp(2.7rem, 7vw, 5.45rem) clamp(1.9rem, 4.2vw, 3.05rem); }
.page-heading h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); }
.page-heading p {
  max-width: 48rem;
  margin-top: .95rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.65vw, 1.31rem);
  line-height: 1.55;
}
.page-heading nav { margin-bottom: .93rem; }
.page-heading nav a, .section-nav a { color: var(--accent); text-underline-offset: .23em; }
.publication-list { max-width: 51rem; border-top: 1px solid var(--line); }
.publication-list article { padding-block: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); }
.publication-list p, .prose h2 + p, .game-copy h2 + p { margin-top: .68rem; }
.consulting-feature { padding-block: 1.45rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(14rem, .85fr); gap: 2.1rem clamp(2.2rem, 6vw, 5.25rem); align-items: start; }
.prose section + section { margin-top: 1.8rem; }
.question-panel { padding: clamp(1.18rem, 3vw, 2rem); background: var(--blue); }
.question-panel ul { margin: .8rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); line-height: 1.65; }
.question-panel li + li { margin-top: .45rem; }
.case-aside { max-width: 27rem; }
.case-aside > .text-link { margin-top: 1rem; }
.career-layout { grid-template-columns: minmax(9rem, .43fr) minmax(0, 1.57fr); }
.section-nav { display: grid; justify-items: start; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1.15rem; }
.section-nav a { padding: .15rem 0; }
.career-sections section { border-top: 1px solid var(--line); padding-top: 1.15rem; scroll-margin-top: 1rem; }
.career-sections section:target h2 { color: var(--accent); }
.draft-note { color: var(--muted); line-height: 1.6; }
.game-list { border-top: 1px solid var(--line); }
.game-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem clamp(1.8rem, 6vw, 5rem);
  padding-block: clamp(1.6rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}
.game-entry figure { max-width: 26rem; }
.game-entry img { max-height: 25rem; object-fit: contain; object-position: left top; }
.game-copy .actions { margin-top: 1.15rem; }
.related-link { margin-top: 1.6rem; }

@media (max-width: 57rem) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .85rem .35rem; }
}

@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner, .index-section, .article-layout { grid-template-columns: 1fr; }
  .masthead-inner { gap: .9rem; }
  .masthead h1 { font-size: clamp(3.65rem, 14vw, 6.5rem); }
  .masthead p { padding-bottom: 0; }
  .index-section { gap: 1rem; }
  .section-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
}

@media (max-width: 35rem) {
  .site-header nav { gap: 0 1rem; }
  .site-header nav a { min-height: 2.55rem; }
  .masthead-inner { padding-block: 2.75rem 2.35rem; }
  .game-entry { grid-template-columns: 1fr; }
}
