@charset "UTF-8";

/*
  Consolidated site stylesheet.
  Inspired by Tufte CSS, but uses local/system font stacks only so there are
  no missing webfont asset requests.
*/

:root {
  --paper: #fffff8;
  --ink: #111111;
  --muted: #555555;
  --rule: #d8d3bd;
  --accent: #154734;
  --accent-light: #e7efe8;
  --link: #8c1515;
  --card: rgba(255, 255, 248, 0.94);
  --shadow: 5px 5px 15px rgba(17, 17, 17, 0.05);
  --serif: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  --sans: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  --mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-size: 15px;
}

body {
  width: 87.5%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12.5%;
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  counter-reset: sidenote-counter;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1;
}

h1 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  font-size: 3.2rem;
}

h2 {
  margin-top: 2.1rem;
  margin-bottom: 1.4rem;
  font-size: 2.2rem;
  font-style: italic;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 1.4rem;
  font-size: 1.7rem;
  font-style: italic;
}

p,
dl,
ol,
ul {
  font-size: 1.4rem;
  line-height: 2rem;
}

p {
  width: 55%;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  padding-right: 0;
  vertical-align: baseline;
}

section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

section > p,
section > footer,
section > table {
  width: 55%;
}

section > dl,
section > ol,
section > ul {
  width: 50%;
  padding-left: 5%;
}

li:not(:first-child),
dt:not(:first-child) {
  margin-top: 0.25rem;
}

blockquote {
  margin-left: 0;
  font-size: 1.4rem;
}

blockquote p {
  width: 55%;
  margin-right: 40px;
  font-style: italic;
}

hr {
  display: block;
  width: 55%;
  height: 1px;
  margin: 1em 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

a:link,
a:visited {
  color: inherit;
  text-underline-offset: 0.1em;
  text-decoration-thickness: 0.05em;
}

img {
  max-width: 100%;
  height: auto;
}

code,
pre > code {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.42;
}

pre > code {
  display: block;
  width: 52.5%;
  margin-left: 2.5%;
  overflow-x: auto;
}

.fullwidth {
  max-width: 90%;
  clear: both;
}

.margin-note,
.marginnote,
.sidenote {
  float: right;
  clear: right;
  width: 50%;
  margin-right: -60%;
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--muted);
  vertical-align: baseline;
  position: relative;
}

.sidenote-number {
  counter-increment: sidenote-counter;
}

.sidenote-number::after,
.sidenote::before {
  position: relative;
  top: -0.5rem;
  font-size: 1rem;
  vertical-align: baseline;
}

.sidenote-number::after {
  content: counter(sidenote-counter);
  left: 0.1rem;
}

.sidenote::before {
  content: counter(sidenote-counter) " ";
}

.sans {
  font-family: var(--sans);
  letter-spacing: 0.03em;
}

.numeral {
  font-variant-numeric: oldstyle-nums;
}

.newthought {
  font-variant: small-caps;
  font-size: 1.2em;
}

.site-header,
.site-footer {
  max-width: 1120px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.site-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 0.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

.page {
  max-width: 1120px;
}

.hero {
  margin-bottom: 4rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 900px;
}

.hero-brand h1 {
  margin-top: 0.25rem;
}

.hero-brand .eyebrow {
  margin-top: 0;
}

.hero-logo {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 0.75rem;
}

.subtitle {
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper) !important;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  font-style: italic;
}

.button.secondary {
  background: transparent;
  color: var(--accent) !important;
}

.theme-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1120px;
}

.theme-grid article,
.card {
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  padding: 1.1rem;
  background: var(--card);
}

.theme-grid article {
  margin: 0;
}

.theme-grid h3,
.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.theme-grid p,
.card p {
  width: auto;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
}

.card {
  box-shadow: var(--shadow);
}

.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.meeting-card {
  max-width: 760px;
}

.person-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
}

.person-image {
  width: 88px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--accent-light);
}

.metadata {
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer {
  margin: 5rem 0 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.site-footer p {
  width: auto;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body {
    width: 84%;
    padding-left: 8%;
    padding-right: 8%;
  }

  hr,
  section > p,
  section > footer,
  section > table,
  p {
    width: 100%;
  }

  pre > code {
    width: 97%;
  }

  section > dl,
  section > ol,
  section > ul {
    width: 90%;
  }

  blockquote {
    margin-left: 1.5em;
    margin-right: 0;
  }

  blockquote p {
    width: 100%;
  }

  .site-header {
    display: block;
    margin-bottom: 2rem;
  }

  .site-nav {
    margin-top: 1rem;
  }

  .hero-brand {
    align-items: flex-start;
    gap: 0.9rem;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .margin-note,
  .marginnote,
  .sidenote {
    display: block;
    float: none;
    width: auto;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--rule);
  }
}

@media (max-width: 520px) {
  .person-card {
    grid-template-columns: 1fr;
  }
}
