:root {
  --paper: #f3efe6;
  --paper-deep: #e9e1d5;
  --cream: #fbf8f2;
  --ink: #1d2423;
  --muted: #59625f;
  --sage: #426454;
  --sage-deep: #2c473b;
  --sage-soft: #dce5dd;
  --clay: #a95034;
  --clay-soft: #f0d8ca;
  --line: #d2cabd;
  --line-dark: #aaa193;
  --max: 1180px;
  --reading: 720px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.96);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nameplate {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.nameplate strong {
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}

.nameplate span {
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 780;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  border-bottom: 2px solid transparent;
  padding: 9px 11px 7px;
  color: #3f4946;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

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

.micro-label,
.section-number,
.field-id {
  margin: 0;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 6.4vw, 5.8rem);
}

h2 {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
}

h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

p {
  margin: 0;
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 76px 0 84px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(66, 100, 84, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(66, 100, 84, 0.035), 0 0 0 140px rgba(66, 100, 84, 0.025);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.68fr);
  gap: clamp(54px, 8vw, 116px);
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 20px;
}

.hero-copy .lead {
  max-width: 690px;
  margin-top: 27px;
  color: #3d4844;
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--sage);
  border-radius: 4px;
  background: var(--sage);
  color: #fff;
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
}

.button.secondary {
  border-color: var(--line-dark);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.portrait-block {
  position: relative;
  margin: 0;
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid #bdb4a6;
  background: #d6d5ce;
  box-shadow: 20px 22px 0 var(--clay-soft);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 50%;
  filter: saturate(0.94) contrast(1.025);
}

.portrait-block figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  color: #56615d;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.5fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-top: 15px;
}

.section-heading > p:last-child {
  max-width: 540px;
  font-size: 1.05rem;
}

.now-section {
  background: var(--cream);
}

.ledger {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line-dark);
  list-style: none;
}

.ledger li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
}

.ledger strong {
  color: var(--clay);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ledger span {
  max-width: 760px;
  color: #3d4744;
}

.method {
  background: var(--ink);
  color: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.method .micro-label {
  color: #9dc1ad;
}

.method blockquote {
  max-width: 900px;
  margin: 0;
}

.method blockquote p:first-child {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.method blockquote p:last-child {
  max-width: 780px;
  margin-top: 28px;
  color: #c6cecb;
  font-size: 1.07rem;
}

.work-list {
  border-bottom: 1px solid var(--line-dark);
}

.work-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 190px;
  gap: 38px;
  align-items: start;
  border-top: 1px solid var(--line-dark);
  padding: 38px 0 42px;
}

.work-entry .number {
  color: var(--clay);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.work-entry h3 {
  margin-bottom: 14px;
}

.work-entry p {
  max-width: 700px;
}

.work-entry .entry-link {
  align-self: center;
  justify-self: end;
}

.text-link,
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sage-deep);
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover,
.entry-link:hover {
  color: var(--clay);
}

.after-link {
  margin-top: 26px;
}

.about-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}

.about-grid h2 {
  margin-top: 15px;
}

.about-copy p {
  max-width: 730px;
  color: #414b47;
  font-size: 1.06rem;
}

.about-copy .text-link {
  margin-top: 24px;
}

.contact-section {
  background: var(--sage);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.contact-section .micro-label {
  color: #c2ddcc;
}

.contact-section h2,
.contact-section p {
  color: #fff;
}

.contact-section h2 {
  margin-top: 15px;
}

.contact-section p {
  max-width: 720px;
  margin-top: 18px;
  color: #dce7df;
}

.contact-section .button {
  border-color: #fff;
  background: #fff;
  color: var(--sage-deep);
}

.contact-section .button:hover {
  background: transparent;
  color: #fff;
}

.site-footer {
  background: #161d1b;
  color: #cbd2cf;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.footer-name {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer-copy {
  max-width: 560px;
  margin-top: 8px;
  color: #98a49f;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-links a {
  color: #dbe1de;
  font-size: 0.85rem;
  font-weight: 720;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 8px 0 0;
  padding-top: 18px;
  color: #7f8c87;
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* Interior pages */
.page-hero {
  border-bottom: 1px solid var(--line);
  padding: 82px 0 72px;
}

.page-hero h1 {
  max-width: 900px;
  margin-top: 18px;
}

.page-hero .intro {
  max-width: 760px;
  margin-top: 24px;
  color: #414b48;
  font-size: clamp(1.08rem, 1.8vw, 1.27rem);
}

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

.prose > * + * {
  margin-top: 24px;
}

.prose h2 {
  margin-top: 60px;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
}

.prose p,
.prose li {
  color: #414b48;
}

.prose p {
  font-size: 1.05rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose details {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 18px 0;
}

.prose summary {
  color: var(--sage-deep);
  font-weight: 780;
  cursor: pointer;
}

.prose details p {
  margin-top: 16px;
}

.project-story {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 42px;
  border-top: 1px solid var(--line-dark);
  padding: 46px 0;
}

.project-story:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.project-story h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.project-story .status-line {
  margin-top: 11px;
  color: var(--clay);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-story .story-copy {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.04rem;
}

.project-story .text-link {
  margin-top: 24px;
}

.updated-note {
  margin-top: 34px;
  color: #66706c;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.not-found {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  margin-top: 18px;
}

.not-found p {
  max-width: 560px;
  margin: 24px auto 0;
}

.not-found .button {
  margin-top: 30px;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-heading,
  .method-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 64px;
  }

  .portrait-block {
    max-width: 560px;
  }

  .section-heading,
  .method-grid,
  .about-grid {
    gap: 28px;
  }

  .work-entry {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .work-entry .entry-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 30px), var(--max));
  }

  .header-inner {
    min-height: 72px;
  }

  .nameplate {
    display: block;
  }

  .nameplate strong,
  .nameplate span {
    display: block;
  }

  .nameplate strong {
    font-size: 1.18rem;
  }

  .nameplate span {
    margin-top: 1px;
    font-size: 0.58rem;
  }

  .nav-wrap {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle::after {
    margin-left: 8px;
    content: "+";
  }

  .nav-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .site-nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    display: none;
    min-width: 215px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--cream);
    box-shadow: 0 18px 48px rgba(29, 36, 35, 0.15);
    padding: 8px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav a {
    border-bottom: 0;
    padding: 10px 12px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--sage-soft);
  }

  .hero,
  .page-hero {
    padding: 60px 0 64px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .portrait-frame {
    aspect-ratio: 1 / 1;
    box-shadow: 12px 14px 0 var(--clay-soft);
  }

  .portrait-frame img {
    object-position: 48% 50%;
  }

  .section {
    padding: 70px 0;
  }

  .ledger li,
  .project-story,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ledger li {
    gap: 8px;
  }

  .work-entry {
    grid-template-columns: 44px 1fr;
    gap: 20px;
  }

  .contact-grid {
    align-items: start;
  }

  .contact-section .button {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .project-story {
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .actions .button {
    width: 100%;
  }

  .portrait-block figcaption {
    display: block;
  }

  .portrait-block figcaption span:last-child {
    display: block;
    margin-top: 4px;
  }

  .work-entry {
    grid-template-columns: 1fr;
  }

  .work-entry .entry-link {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
