@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

.ks-site {
  --paper: #f8f5ee;
  --ink: #272b22;
  --muted: #595b50;
  --line: #d9d4c8;
  --accent: #a83819;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ks-site *, .ks-site *::before, .ks-site *::after { box-sizing: border-box; }
.ks-site #site-content { flex: 1 0 auto; }
.ks-site a { color: inherit; }
.ks-site a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ks-wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }

.ks-skip {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  background: white;
  transform: translateY(-160%);
}
.ks-skip:focus { transform: none; }
.ks-header { border-bottom: 1px solid var(--line); }
.ks-header-inner, .ks-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.ks-header-inner { min-height: 78px; }
.ks-brand {
  font: 400 2.15rem/1 var(--serif);
  letter-spacing: -.035em;
  text-decoration: none;
}
.ks-brand span, .ks-hero h1 span, .ks-inner-page h1 span { color: var(--accent); }
.ks-nav, .ks-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem clamp(.9rem, 3vw, 2.1rem);
}
.ks-nav a, .ks-footer a {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding-block: .25em;
}
.ks-nav a:hover, .ks-nav a[aria-current], .ks-footer a:hover { color: var(--accent); }
.ks-nav a[aria-current], .ks-footer a:hover { text-decoration: underline; text-underline-offset: .35em; }

.ks-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.ks-site .ks-hero h1, .ks-inner-page h1 {
  font: 400 clamp(5.6rem, 13vw, 10rem)/.78 var(--serif);
  letter-spacing: -.057em;
  margin: .14em 0 .24em;
}
.ks-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .7rem;
}
.ks-dot {
  display: inline-block;
  width: .48em;
  height: .48em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .14em;
  margin-right: .45em;
}
.ks-lede {
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.38;
  letter-spacing: -.025em;
  max-width: 24ch;
  margin: 0 0 1.4rem;
}
.ks-lede a, .ks-other-interests a { text-decoration-color: var(--accent); text-underline-offset: .17em; }
.ks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; }
.ks-site .ks-button, .ks-site .ks-text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.ks-site .ks-button { background: var(--ink); color: var(--paper); border-radius: 3px; padding: .7rem 1.05rem; }
.ks-site .ks-button:hover { background: var(--accent); }
.ks-site .ks-text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.ks-text-link span { color: var(--accent); }
.ks-portrait { margin: 0; padding: 10px; border: 1px solid var(--line); background: #fffdf8; }
.ks-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.5; object-fit: cover; }

.ks-section { border-top: 1px solid var(--line); padding-block: clamp(2.3rem, 6vw, 4.5rem); }
.ks-section h2 {
  font: 400 clamp(2.9rem, 6vw, 4.5rem)/.95 var(--serif);
  letter-spacing: -.035em;
  margin: 0;
}
.ks-work, .ks-research { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(1.75rem, 6vw, 5rem); }
.ks-work-intro { margin-bottom: clamp(2rem, 6vw, 4rem); }
.ks-work-list article + article { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1.3rem; }
.ks-work-list h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 .35rem; }
.ks-work-list p, .ks-research p:not(.ks-label) { margin: 0; color: var(--muted); }
.ks-research p:not(.ks-label) + p { margin-top: .85rem; }
.ks-research .ks-actions { margin-top: 1rem; }
.ks-heading-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.ks-interest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2.5vw, 1.5rem); }
.ks-site .ks-interest { display: block; background: #fffdf8; border: 1px solid var(--line); text-decoration: none; }
.ks-interest:hover h3 { color: var(--accent); }
.ks-interest img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.ks-interest-text { padding: .95rem 1rem 1.15rem; }
.ks-interest h3 { display: flex; align-items: baseline; justify-content: space-between; font: 400 2rem/1 var(--serif); margin: 0 0 .3rem; }
.ks-interest h3 span { color: var(--accent); font: 600 1rem var(--sans); }
.ks-interest p, .ks-other-interests { color: var(--muted); font-size: .95rem; margin: 0; }
.ks-other-interests { margin-top: 1.25rem; }

.ks-inner-page { padding-block: clamp(3rem, 8vw, 6rem); }
.ks-inner-page h1 { font-size: clamp(3.7rem, 10vw, 7rem); line-height: .9; }
.ks-inner-page .ks-lede { max-width: 36ch; }
.ks-inner-page .ks-interest-grid { margin-top: 2rem; }
.ks-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.5rem; font-size: .9rem; }

.ks-legacy #main { max-width: 1120px; margin-block: clamp(2rem, 5vw, 4rem); }
.ks-legacy .page__title { font: 400 clamp(2.6rem, 7vw, 4.5rem)/1 var(--serif); letter-spacing: -.035em; }
.ks-legacy .archive__item { padding-bottom: 1rem; }
.ks-legacy .archive__item-title a { color: var(--accent); }
.ks-legacy .page__content a, .ks-legacy .archive a { text-underline-offset: .15em; }
.ks-legacy .author__content, .ks-legacy .author__urls { font-family: var(--sans); }

.ks-story-intro { display: flex; gap: 2em; align-items: flex-start; margin-bottom: 2em; }
.ks-story-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; margin-block: 2em; }

@media (max-width: 760px) {
  .ks-wrap { width: calc(100% - 40px); }
  .ks-header-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: .55rem; padding-block: .85rem; }
  .ks-hero { gap: 1.7rem; }
  .ks-work, .ks-research { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ks-hero, .ks-interest-grid { grid-template-columns: 1fr; }
  .ks-site .ks-hero h1 { font-size: clamp(4.6rem, 19vw, 7rem); }
  .ks-portrait { max-width: 420px; }
  .ks-portrait img { aspect-ratio: 1; }
  .ks-footer-inner { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .ks-story-intro { flex-direction: column; }
  .ks-story-details { grid-template-columns: 1fr; }
}
