:root {
  --paper: #f1ede3;
  --ink: #161613;
  --muted: #69665f;
  --line: #aaa59a;
  --green: #56715b;
  --green-pale: #d7dfd1;
  --lavender-pale: #ded4e8;
  --rust-pale: #ead1c5;
  --gutter: clamp(20px, 4vw, 64px);
  --inset: clamp(0px, 2vw, 32px);
  --section-space: clamp(72px, 7.5vw, 108px);
  --label-tracking: .16em;
  --label-size: clamp(11px, .78vw, 12px);
  --page-max: 1400px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
main { padding-top: 58px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
p, h1, h2, h3, h4, h5, blockquote, dl, dd { margin-top: 0; }

.topline {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
  padding: 20px var(--gutter) 17px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}
.studio-name { font-weight: 800; }
.site-nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  align-items: center;
}
.site-nav > a,
.apps-menu summary {
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
}
.apps-menu summary::-webkit-details-marker { display: none; }
.site-nav > a:hover,
.site-nav > a:focus-visible,
.apps-menu summary:hover,
.apps-menu summary:focus-visible,
.apps-menu[open] summary {
  border-bottom-color: currentColor;
}
.site-nav > a:last-child { font-weight: 800; }
.apps-menu { position: relative; }
.apps-list {
  position: absolute;
  top: calc(100% + 17px);
  right: 0;
  width: 224px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.apps-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.apps-list a:last-child { border-bottom: 0; }
.apps-list a:hover,
.apps-list a:focus-visible { padding-left: 5px; }
.apps-list span { color: var(--muted); }

#apps, #studio, #donate, .project {
  scroll-margin-top: 72px;
}

.hero,
.project-index,
.studio-note,
.project,
.principle,
.support-note,
footer {
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: var(--page-max);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr);
  gap: 6vw;
  align-items: center;
  margin: 0 var(--gutter);
  padding: clamp(58px, 6vw, 88px) var(--inset) clamp(58px, 6vw, 82px);
}
.folio, .margin-label, .project-number {
  font-family: var(--mono);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  line-height: 1.45;
  text-transform: uppercase;
}
.folio { margin-bottom: clamp(24px, 3vw, 34px); }
.hero h1 {
  max-width: 1180px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 9.7vw, 164px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .9;
}
.hero-side {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.hero-side img {
  width: min(260px, 90%);
  margin: 0 0 30px -5%;
}
.hero-side p {
  max-width: 360px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.5;
}

.project-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 var(--gutter);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.project-index a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 5px 14px;
  padding: 24px 18px;
  border-right: 1px solid var(--ink);
}
.project-index a:last-child { border-right: 0; }
.project-index b, .project-index small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--label-tracking);
  line-height: 1.4;
  text-transform: uppercase;
}
.project-index b { grid-row: 1 / 3; }
.project-index span { font-family: Georgia, serif; font-size: 25px; }
.project-index small { color: var(--muted); }
.project-index a:hover span { text-decoration: underline; text-underline-offset: 5px; }

.studio-note {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 2.3fr);
  gap: 4vw;
  margin: 0 var(--gutter);
  padding: var(--section-space) var(--inset);
}
.studio-note h2 {
  max-width: 930px;
  margin-bottom: 32px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
}
.studio-note > div > p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.48;
}

.project {
  margin: 0 var(--gutter);
  padding-top: clamp(62px, 6vw, 84px);
  border-top: 1px solid var(--ink);
}
.project-masthead {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) 90px minmax(0, 2.3fr);
  gap: 3vw;
  align-items: start;
  padding-bottom: clamp(42px, 4vw, 56px);
}
.project-masthead img { width: 90px; border-radius: 22%; }
.project-masthead h2 {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: clamp(58px, 8vw, 122px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .84;
}
.project-masthead > div p {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.4;
}
.project-body {
  display: grid;
  grid-template-columns: minmax(290px, .9fr) minmax(420px, 1.15fr) minmax(210px, .55fr);
  min-height: 680px;
  border-top: 1px solid var(--ink);
}
.project-story {
  display: flex;
  flex-direction: column;
  padding: 50px clamp(28px, 3vw, 52px) 50px var(--inset);
}
.project-story > p { max-width: 560px; font-size: 17px; line-height: 1.55; }
.project-story > p + p { color: var(--muted); }
.project-notes { margin-top: auto; margin-bottom: 0; }
.project-notes > div {
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.project-notes dt { font-family: Georgia, serif; font-size: 30px; }
.project-notes dd {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.screen-field {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 55px 30px;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.green-field { background: var(--green-pale); }
.lavender-field { background: var(--lavender-pale); }
.rust-field { background: var(--rust-pale); }
.app-screenshot {
  width: min(360px, 94%);
  border: 1px solid rgba(22, 22, 19, .45);
  border-radius: 48px;
  box-shadow: 0 18px 40px rgba(22, 22, 19, .13);
  object-fit: cover;
}

.field-note { padding: 45px 24px; }
.field-note span {
  display: block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--label-tracking);
  line-height: 1.4;
  text-transform: uppercase;
}
.field-note blockquote {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-style: italic;
  line-height: 1.15;
}
.field-note p { color: var(--muted); font-size: 12px; line-height: 1.5; }

.principle {
  display: grid;
  grid-template-columns: .6fr 2fr;
  gap: 4vw;
  margin: 0 var(--gutter);
  padding: var(--section-space) var(--inset);
  border-top: 1px solid var(--ink);
}
.principle h2 {
  max-width: 930px;
  margin-bottom: 56px;
  font-family: Georgia, serif;
  font-size: clamp(48px, 7vw, 106px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .95;
}
.principle > div { grid-column: 2; }
.principle > div p {
  margin-bottom: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  line-height: 1.4;
  text-transform: uppercase;
}

.support-note {
  display: grid;
  grid-template-columns: .6fr 2fr;
  gap: 4vw;
  margin: 0 var(--gutter);
  padding: clamp(68px, 6vw, 88px) var(--inset);
  border-top: 1px solid var(--ink);
}
.support-note > div { max-width: 850px; }
.support-note h2 {
  margin-bottom: 24px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
}
.support-note > div > p {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.5;
}
.support-note a {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 15px 0 11px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}
.support-note a span {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}
.support-note a:hover span { transform: translate(3px, -3px); }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: end;
  margin: 0 var(--gutter);
  padding: 36px 0 42px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: var(--label-size);
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
footer p { margin: 5px 0 0; color: var(--muted); }
footer a:hover { text-decoration: underline; }

@media (min-width: 1101px) {
  .topline {
    padding-right: max(var(--gutter), calc((100vw - var(--page-max)) / 2));
    padding-left: max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  }

  .hero {
    grid-template-columns: minmax(0, 8fr) minmax(300px, 3fr);
    gap: clamp(56px, 5vw, 82px);
    padding-top: 68px;
    padding-bottom: 64px;
  }
  .hero h1 { font-size: clamp(82px, 7.2vw, 126px); }
  .hero-side { max-width: 330px; }
  .hero-side img { width: min(220px, 82%); margin-bottom: 28px; }
  .hero-side p { font-size: 16px; }

  .studio-note {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(46px, 5vw, 76px);
    padding-top: 88px;
    padding-bottom: 94px;
  }
  .studio-note h2 {
    max-width: 820px;
    font-size: clamp(52px, 4.8vw, 76px);
  }
  .studio-note > div > p {
    max-width: 700px;
    font-size: clamp(19px, 1.5vw, 23px);
  }

  .project { padding-top: 70px; }
  .project-masthead {
    grid-template-columns: 150px 84px minmax(0, 1fr);
    gap: 36px;
    padding-bottom: 50px;
  }
  .project-masthead img { width: 84px; }
  .project-masthead h2 {
    font-size: clamp(64px, 5.8vw, 94px);
    line-height: .88;
  }
  .project-masthead > div p {
    max-width: 620px;
    font-size: clamp(18px, 1.5vw, 22px);
  }
  .project-body {
    grid-template-columns: 340px minmax(420px, 1fr) 250px;
    min-height: 620px;
  }
  .project-story { padding: 40px 36px 42px var(--inset); }
  .project-story > p { font-size: 16px; }
  .project-notes > div { grid-template-columns: 76px 1fr; }
  .screen-field { padding: 42px 28px; }
  .app-screenshot {
    width: min(310px, 90%);
    border-radius: 40px;
  }
  .field-note { padding: 40px 22px; }
  .field-note blockquote { font-size: clamp(22px, 1.8vw, 28px); }

  .principle,
  .support-note {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(46px, 5vw, 76px);
  }
  .principle { padding-top: 92px; padding-bottom: 96px; }
  .principle h2 {
    max-width: 850px;
    font-size: clamp(58px, 5.4vw, 88px);
  }
  .support-note { padding-top: 72px; padding-bottom: 78px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 68px; }
  .hero-side { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: end; }
  .hero-side img { width: 160px; margin: 0; }
  .studio-note { grid-template-columns: 1fr; }
  .project-masthead { grid-template-columns: 1fr 80px; }
  .project-masthead > div { grid-column: 1 / -1; }
  .project-body { grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); }
  .field-note { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
  .principle, .support-note { grid-template-columns: 1fr; }
  .principle > div { grid-column: 1; }
  .support-note > div { max-width: 760px; }
}

@media (max-width: 650px) {
  .topline {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 16px var(--gutter) 14px;
  }
  .established { display: none; }
  main { padding-top: 50px; }
  .site-nav { gap: 14px; font-size: 10px; }
  .apps-list { top: calc(100% + 13px); width: 200px; }
  #apps, #studio, #donate, .project { scroll-margin-top: 64px; }
  .hero { margin: 0 var(--gutter); padding: 52px 0 44px; }
  .hero h1 { font-size: clamp(57px, 17vw, 90px); }
  .hero-side { grid-template-columns: 110px 1fr; }
  .hero-side img { width: 110px; }
  .hero-side p { font-size: 14px; }
  .project-index { grid-template-columns: 1fr; }
  .project-index a { border-right: 0; border-bottom: 1px solid var(--ink); }
  .project-index a:last-child { border-bottom: 0; }
  .studio-note { padding: 68px 0; }
  .project { padding-top: 56px; }
  .project-masthead { grid-template-columns: 1fr 62px; padding-bottom: 40px; }
  .project-masthead img { width: 62px; }
  .project-body { grid-template-columns: 1fr; }
  .project-story { min-height: 0; padding: 36px 0 52px; }
  .project-notes { margin-top: 34px; }
  .screen-field { min-height: 680px; border: 0; border-top: 1px solid var(--ink); }
  .app-screenshot { width: min(360px, 100%); }
  .principle { padding: 68px 0; }
  .support-note { padding: 64px 0 68px; }
  footer { grid-template-columns: 1fr auto; }
  footer > span { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .support-note a span { transition: none; }
}
