:root {
  color-scheme: light;
  --paper: #f6f6ee;
  --ink: #19261d;
  --muted: #506052;
  --forest: #204431;
  --forest-dark: #132a20;
  --line: #d3d9ca;
  --lime: #e1edac;
  --gutter: clamp(1.2rem, 4vw, 3.25rem);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, figure, ul, ol { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
:focus-visible {
  outline: 2px solid #47734e;
  outline-offset: 5px;
}

.shell {
  width: min(100% - var(--gutter) * 2, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .6rem 1rem;
  transform: translateY(-180%);
  background: var(--forest-dark);
  color: white;
}

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

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 4.625rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 720;
  letter-spacing: -.03em;
}

.monogram {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .35rem;
  background: var(--forest);
  color: var(--lime);
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -.05em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.7vw, 2.25rem);
}

.site-nav a, .header-contact, .footer-inner a {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current], .header-contact:hover, .footer-inner a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.header-contact {
  width: fit-content;
  justify-self: end;
  padding-block: .4rem;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
}

.header-contact:hover { text-decoration: none; border-color: currentColor; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 6.2vw, 5.75rem);
}

.eyebrow {
  color: var(--forest);
  font-family: var(--mono);
  font-size: .875rem;
  line-height: 1.45;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-right: .5rem;
  vertical-align: .25em;
  background: currentColor;
}

.intro h1 {
  margin-top: 1.125rem;
  font-size: clamp(4rem, 7.8vw, 7.25rem);
  font-weight: 720;
  line-height: .86;
  letter-spacing: -.085em;
}

.intro h1 em {
  display: block;
  color: var(--forest);
  font-family: var(--serif);
  font-size: .92em;
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: 1.02;
}

.intro-description {
  max-width: 25rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.65vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -.026em;
}

.location {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font: 650 .9375rem/1.35 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-dark); }
.button-outline { border-color: #a5b3a0; background: transparent; color: var(--forest); }
.button-outline:hover { border-color: var(--forest); background: #e9eddf; }

.feature {
  display: block;
  overflow: hidden;
  scroll-margin-top: 1.25rem;
  border-radius: .75rem;
  background: var(--forest-dark);
  color: white;
  text-decoration: none;
}

.feature-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.83;
  background: #486044;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.feature:hover img { transform: scale(1.035); }

.feature-label, .image-caption {
  position: absolute;
  left: 1rem;
  padding: .25rem .55rem;
  border-radius: .2rem;
  font-size: .8125rem;
  line-height: 1.4;
}

.feature-label {
  top: 1rem;
  background: var(--lime);
  color: var(--forest-dark);
  font-size: .875rem;
  font-weight: 720;
}

.image-caption { bottom: .8rem; background: var(--forest-dark); color: #f2f5e8; }

.feature-info {
  display: flex;
  min-height: 6.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: 1.15rem 1.4rem;
}

.feature-info h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.04em; }
.feature-info p { margin-top: .3rem; color: #d1ddce; font-size: .875rem; }

.feature-action {
  flex-shrink: 0;
  padding: .5rem .7rem;
  border: 1px solid #77917f;
  border-radius: .3rem;
  color: var(--lime);
  font-size: .875rem;
  font-weight: 650;
  transition: background-color .15s ease, color .15s ease;
}

.feature:hover .feature-action { background: var(--lime); color: var(--forest-dark); }

.section-block { padding-block: 2.25rem 3.4rem; border-top: 1px solid var(--line); }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 4vw, 3.125rem);
  font-weight: 400;
  letter-spacing: -.055em;
}

.text-link {
  color: var(--forest);
  font-weight: 650;
  text-decoration-color: #91a58f;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.text-link:hover { text-decoration-color: currentColor; }
.section-heading .text-link, .project .text-link { font-size: .9375rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: .5rem clamp(1.15rem, 2.8vw, 2.5rem) .4rem 0;
}

.project + .project {
  padding-left: clamp(1.15rem, 2.8vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.project:last-child { padding-right: 0; }
.project h3, .writing-row h3, .writing-row h2 { font-size: clamp(1.25rem, 1.85vw, 1.5rem); letter-spacing: -.045em; }
.project > p:not(.eyebrow) { margin-bottom: .35rem; color: var(--muted); }
.project > :last-child { margin-top: auto; }

.link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  padding: 0;
  list-style: none;
}

.writing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding: 1.3rem 0;
  border-block: 1px solid var(--line);
  text-decoration: none;
}

.writing-row p { margin-top: .35rem; color: var(--muted); }
.writing-row:hover h2, .writing-row:hover h3 { color: var(--forest); text-decoration: underline; text-underline-offset: .19em; }
.writing-row .eyebrow { flex-shrink: 0; }

.site-footer { margin-top: 1rem; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: 1.7rem;
}

.footer-inner p { font-weight: 700; letter-spacing: -.02em; }

.detail {
  max-width: 57rem;
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 7vw, 6rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  column-gap: .6rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: .9375rem;
}

.breadcrumb a { color: var(--forest); text-underline-offset: .2em; }
.detail-header { margin-bottom: 2rem; }

.detail-header h1 {
  max-width: 14ch;
  margin-top: .35rem;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 6.55vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -.058em;
  overflow-wrap: anywhere;
}

.detail-lede {
  max-width: 40rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.15vw, 1.35rem);
  line-height: 1.5;
}

.detail-header > .button { margin-top: 1.2rem; }
.detail-figure { margin: 0 0 2.35rem; }

.detail-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4;
  object-fit: cover;
  border-radius: .6rem;
}

.detail-figure figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.detail-content { max-width: 44rem; }
.prose + .prose { margin-top: 2rem; }
.prose h2 { font-size: clamp(1.38rem, 2.6vw, 1.85rem); letter-spacing: -.035em; }
.prose p, .workflow { margin-top: .7rem; }
.workflow { padding-left: 1.45rem; }
.workflow li + li { margin-top: .3rem; }
code { padding: .08em .2em; border-radius: .2em; background: #e8ecdf; font-family: var(--mono); }

@media (max-width: 48rem) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.25rem; }
  .header-contact { display: none; }
  .intro { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.75rem; }
  .intro h1 { font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; }
  .intro h1 em { display: inline; margin-left: .07em; }
  .intro-description { margin-top: .8rem; }
  .section-block { padding-block: 1.75rem 2.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project, .project + .project { padding: 1.1rem 0; border-left: 0; }
  .project + .project { border-top: 1px solid var(--line); }
  .project:first-child { padding-top: 0; }
  .project > p:not(.eyebrow) { max-width: 32rem; }
  .writing-row { align-items: flex-start; flex-direction: column; }
  .detail-figure img { aspect-ratio: 1.75; }
}

@media (max-width: 25rem) {
  .site-nav { gap: .7rem; }
  .site-nav a { font-size: .875rem; }
  .wordmark { gap: .45rem; }
  .monogram { width: 1.85rem; }
  .intro h1 { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .feature-info { padding: .9rem; }
  .feature-title-detail { display: block; font-size: .85em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

