
:root {
  --paper:  #f4f0e8;  --plate:  #fffdf8;  --ink:    #1b1917;  --muted:  #4a453c;  --rule:   #ded7c8;  --edge:   #8b8271;
  --accent:     #46b046;  --accent-ink: #145214;  --bar-ink:    #000000;
  --data:       #2b2926;
  --sans:  'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
           'Liberation Mono', monospace;

  --head: var(--sans);
  --body: var(--sans);
  --ui:   var(--mono);
  --ui-scale: 1;

  --wrap-w:  76rem;  --prose:   38.75rem;}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.25;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p { text-wrap: pretty; }

a { color: var(--accent-ink); text-underline-offset: 0.14em; }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip { position: absolute; left: -9999px; background: var(--accent); color: var(--bar-ink); padding: .75rem 1rem; }
.skip:focus { left: 0; top: 0; }

.topbar { border-bottom: 1px solid var(--ink); }

.topbar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.25rem;
  padding-block: .65rem;
}

.topbar__id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .7rem;
}

.topbar__name { font-weight: 700; letter-spacing: -0.01em; }

a.topbar__name { color: var(--ink); text-decoration: none; }
a.topbar__name:hover { color: var(--accent-ink); }

.topbar__tag {
  font-size: .9375rem;
  color: var(--muted);
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  font-family: var(--ui);
  font-size: calc(.8125rem * var(--ui-scale));
}

.intro { padding-block: 1.75rem 0; }

.intro + section { margin-top: 1.5rem; }

.avatar {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
  border: 1px solid var(--ink);
  margin-bottom: 1.25rem;
}

@media (min-width: 48rem) {
  .intro__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11rem;
    gap: 0 2.5rem;
    align-items: start;
  }

  .avatar {
    margin-bottom: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

h1 {
  max-width: 30ch;
  font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.sub { margin-top: .9rem; color: var(--muted); max-width: var(--prose); }

.status {
  max-width: var(--prose);
  margin-top: .85rem;
  padding-left: .9rem;
  border-left: 2px solid var(--accent);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.status strong { font-weight: 700; }

.status b {
  color: var(--data);
  font-weight: 700;
}

.now .live { color: var(--data); font-weight: 700; }

.sec {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: .9rem;
}

section + section { margin-top: 2.25rem; }
section:last-child { padding-bottom: 2.5rem; }

.meta {
  font-family: var(--ui);
  font-size: calc(.78125rem * var(--ui-scale));
  color: var(--muted);
  margin-top: .35rem;
}

@media (min-width: 34rem) {
}

.now {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--ink);
  padding-block: 1rem 1.1rem;
  margin-top: .5rem;
}

.eyebrow {
  font-family: var(--ui);
  font-size: calc(.78125rem * var(--ui-scale));
  color: var(--data);
  font-weight: 700;
}

.now h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  margin-top: .4rem;
  letter-spacing: -0.015em;
}

.now__link {
  color: inherit;
  text-decoration: none;
}

.now__link:hover { color: var(--accent-ink); }
.now__link--head:hover { text-decoration: underline; text-underline-offset: .12em; }

.now__imglink { display: block; }
.now__imglink:hover .now__img { border-color: var(--accent-ink); }

.now__img {
  display: block;
  width: 100%;
  max-width: 44rem;
  height: auto;
  background: var(--rule);
  border: 1px solid var(--ink);
  margin-top: 1rem;
}

@media (min-width: 62rem) {
  .now__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 0 2rem;
    align-items: stretch;
  }

  .now__img {
    width: 100%;
    max-width: none;
    height: 100%;
    margin-top: 0;
    object-fit: cover;
  }
}

.now__lede { margin-top: .85rem; max-width: var(--prose); }

@media (min-width: 34rem) {
}

.roles { list-style: none; padding: 0; }

.role {
  padding-block: .75rem;
  border-bottom: 1px solid var(--rule);
}

.role:first-child { border-top: 1px solid var(--rule); }

.role h3 { font-size: 1.0625rem; }

.role__title { margin-top: .15rem; }

.role__when {
  font-family: var(--ui);
  font-size: calc(.78125rem * var(--ui-scale));
  color: var(--muted);
  margin-top: .2rem;
}

.role__detail { margin-top: .4rem; max-width: var(--prose); }

.more {
  display: inline-block;
  margin-top: .4rem;
  font-size: 1rem;
  color: var(--accent-ink);
}

.more:hover { text-decoration: underline; }

.cards {
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 30rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block;
  align-self: start;
  color: var(--ink);
  text-decoration: none;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--rule);
  border: 1px solid var(--ink);
}

.card__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: .55rem;
}

.card__meta {
  display: block;
  font-family: var(--ui);
  font-size: calc(.75rem * var(--ui-scale));
  color: var(--muted);
  margin-top: .2rem;
}

.card:hover .card__title { text-decoration: underline; }
.card:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }

.skills { display: grid; gap: .8rem; }

.skills dt {
  font-family: var(--ui);
  font-size: calc(.75rem * var(--ui-scale));
  color: var(--muted);
}

.skills dd { margin: .2rem 0 0; max-width: var(--prose); }

#contact p { max-width: var(--prose); }

.email {
  margin-top: .8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  font-family: var(--ui);
  font-size: calc(1rem * var(--ui-scale));
}

.copy {
  font-family: var(--ui);
  font-size: calc(.75rem * var(--ui-scale));
  font-weight: 700;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: underline;
}

.copy[data-copied] { border-color: var(--accent); color: var(--accent-ink); }

#contact .meta { margin-top: .9rem; }

.backlink {
  font-family: var(--ui);
  font-size: calc(.78125rem * var(--ui-scale));
  padding-block: .85rem .35rem;
}

.project { padding-bottom: 2.25rem; }

.project h1 {
  max-width: 34ch;
  margin-top: .35rem;
  font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.25rem);
}

.project__lede {
  margin-top: 1rem;
  max-width: var(--prose);
  color: var(--muted);
}

.project__hero {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  background: var(--rule);
  border: 1px solid var(--ink);
  margin-top: 1.25rem;
}

.prose { max-width: var(--prose); }

.prose h2 {
  font-size: 1.1875rem;
  margin-top: 1.6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
}

.prose p { margin-top: .7rem; }
.prose ul { margin-top: .9rem; padding-left: 1.15rem; }
.prose li + li { margin-top: .35rem; }

figure { margin: 1.4rem 0 0; }

figure img {
  width: 100%;
  background: var(--rule);
  border: 1px solid var(--ink);
}

figcaption {
  font-family: var(--ui);
  font-size: calc(.78125rem * var(--ui-scale));
  color: var(--muted);
  margin-top: .5rem;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.shots figure { margin: 0; min-width: 0; width: 100%; }

@media (min-width: 48rem) {
  .shots figure { width: auto; }

  .shots figure img {
    width: auto;
    height: min(23rem, 30vw);
    max-width: 100%;
  }

  .shots--mid figure img  { height: min(29rem, 38vw); }
  .shots--tall figure img { height: min(34rem, 44vw); }
}

.project__foot {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-family: var(--ui);
  font-size: calc(.875rem * var(--ui-scale));
}

.sectionnav { display: none; }

@media (min-width: 90rem) {
  .home .wrap { max-width: 89rem; }

  .layout {
    display: grid;
    grid-template-columns: 11rem minmax(0, var(--wrap-w));
    gap: 2rem;
    align-items: start;
  }

  .sectionnav {
    display: block;
    position: sticky;
    top: 6rem;
    margin-top: 5.5rem;
  }

  .sectionnav ol {
    list-style: none;
    padding: 0;
    border-left: 1px solid var(--rule);
  }

  .sectionnav li + li { margin-top: .15rem; }

  .sectionnav a {
    display: block;
    padding: .35rem 0 .35rem .8rem;
    margin-left: -1px;
    border-left: 1px solid transparent;
    font-family: var(--ui);
    font-size: calc(.8125rem * var(--ui-scale));
    line-height: 1.35;
    color: var(--muted);
    text-decoration: none;
  }

  .sectionnav a:hover { color: var(--ink); }

  .sectionnav a[aria-current='true'] {
    color: var(--accent-ink);
    border-left: 2px solid var(--accent);
    font-weight: 700;
    font-size: calc(.8125rem * var(--ui-scale));
  }

}
