:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ebebeb;
  background: #111;
  font-synthesis: none;
  --panel: #202020;
  --line: #424242;
  --muted: #c8c8c8;
  --accent: #6b9c8b;
  --button: #30584b;
}

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

body {
  margin: 0;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.1875rem);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.6875rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h1, h2, h3, .wordmark { font-weight: 600; line-height: 1.2; }
a:hover, .text-button:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; }
:focus-visible { outline: 2px solid #a4d4c1; outline-offset: 4px; }

.page {
  width: min(calc(100% - 2.5rem), 64rem);
  margin: 1.25rem auto 1rem;
  padding-inline: clamp(1rem, 2.55vw, 1.6875rem);
  border: 1px solid var(--line);
  border-radius: 1.375rem;
  background: var(--panel);
}

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

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  padding: 1.875rem 0 2.625rem;
}

.header .wordmark { font-size: 1.5rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  column-gap: 0.8rem;
  row-gap: 0.3rem;
}

.links > * { position: relative; }
.links > :not(:last-child)::after {
  position: absolute;
  right: -0.52rem;
  content: "·" / "";
  color: var(--muted);
  pointer-events: none;
}

main section {
  text-align: center;
  scroll-margin-top: 1rem;
}

.mission { padding: 3.25rem 0 3.125rem; }
.mission p, .contact-intro {
  margin: 1.25rem auto 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.65vw, 1.375rem);
  line-height: 1.6;
}

.philosophy, .projects { padding: 2.4375rem 0 2.1875rem; }
.philosophy { padding-bottom: 3.6875rem; }

.pillars, .project-grid {
  display: grid;
  gap: 1rem;
}

.pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.125rem;
}

.pillars h3 { margin-top: 1.125rem; }
.pillars p { color: var(--muted); line-height: 1.3; }
.pillars .lead { margin: 1rem 0 0.75rem; }

.pillars .lead, .project-card .lead { color: inherit; }

.icon {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto;
}

.compass { border: 0.23rem solid; border-radius: 50%; }
.compass span {
  position: absolute;
  inset: 0.35rem;
  background: currentColor;
  clip-path: polygon(92% 8%, 75% 75%, 8% 92%, 25% 25%, 92% 8%, 67% 33%, 41% 41%, 33% 67%, 59% 59%, 67% 33%);
}

.cycle span {
  position: absolute;
  inset: 0.125rem;
  border: 0.22rem solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  transform: rotate(-31deg);
}

.cycle span + span { transform: rotate(149deg); }

.cycle span::after {
  position: absolute;
  top: 0.2rem;
  right: -0.16rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 0.2rem solid;
  border-bottom: 0.2rem solid;
  border-radius: 0.12rem;
  content: "";
}

.sprout span {
  position: absolute;
  bottom: 0.17rem;
  left: 50%;
  width: 0.21rem;
  height: 1.48rem;
  border-radius: 1rem;
  background: currentColor;
  transform: translateX(-50%) rotate(9deg);
}

.sprout::before, .sprout::after {
  position: absolute;
  width: 0.93rem;
  height: 0.78rem;
  border: 0.21rem solid;
  content: "";
}

.sprout::before { top: 0.55rem; left: 0.16rem; border-radius: 15% 80%; }
.sprout::after { top: 0.1rem; right: 0.19rem; border-radius: 80% 15%; }
.sprout span::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1.35rem;
  height: 0.21rem;
  border-radius: 1rem;
  background: currentColor;
  content: "";
  transform: translateX(-50%) rotate(-9deg);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6875rem;
}

.project-card {
  padding: clamp(0.875rem, 2vw, 1.3125rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-align: left;
}

.project-card h3 { margin-top: 1.25rem; }
.project-card p { margin-top: 0.9375rem; color: var(--muted); }
.project-card h3 + p { margin-top: 1.125rem; }

.project-art {
  display: grid;
  place-items: center;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #101010;
}

.phone, .book { position: relative; height: auto; border: 0.24rem solid #e8e8e8; }

.phone {
  display: grid;
  place-items: center;
  width: 35cqw;
  aspect-ratio: 150 / 285;
  border-radius: 6.4cqw;
}

.phone::before, .phone::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1rem;
  background: #828282;
  content: "";
}

.phone::before { top: 2.6cqw; width: 11cqw; height: 1.9cqw; }
.phone::after { bottom: 2.6cqw; width: 10cqw; height: 1.3cqw; background: #626262; }

.phone-screen {
  display: grid;
  justify-items: center;
  align-content: space-between;
  width: 28cqw;
  aspect-ratio: 119 / 216;
  padding: 4cqw 0 2cqw;
  border-radius: 2.5cqw;
  background: #191919;
}

.progress-ring {
  position: relative;
  width: 20.6cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 75%, #3b3b3b 75% 100%);
}

.progress-ring::before, .progress-ring::after {
  position: absolute;
  width: 3.2cqw;
  height: 3.2cqw;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.progress-ring::before { top: 0; left: calc(50% - 1.6cqw); }
.progress-ring::after { left: 0; top: calc(50% - 1.6cqw); }
.phone-screen .progress-ring {
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.2cqw - 0.5px), #000 calc(100% - 3.2cqw + 0.5px));
}

.phone-lines, .book-lines { display: grid; justify-items: center; }
.phone-lines { gap: 3cqw; }
.phone-lines i { width: 21cqw; height: 4.4cqw; border-radius: 1.25cqw; background: #333; }

.book {
  display: grid;
  justify-items: center;
  align-content: start;
  width: 42cqw;
  aspect-ratio: 181 / 257;
  padding-top: 8.5cqw;
  border-width: 0.2rem;
  border-radius: 2.4cqw;
  background: linear-gradient(to right, #171b19 0 9%, #696f6b 9% 10.5%, #1d2622 10.5%);
  box-shadow: 1.7cqw 1.7cqw #202823;
  transform: translate(-1.7cqw, -1.7cqw);
}

.book-emblem {
  display: grid;
  place-items: center;
  position: relative;
  width: 19.5cqw;
  aspect-ratio: 1;
  border: 0.9cqw solid var(--accent);
  border-radius: 50%;
  color: #527a6c;
}

.book-emblem i { grid-area: 1 / 1; width: 90%; height: 0.55cqw; background: currentColor; }
.book-emblem i:nth-child(2) { transform: rotate(45deg); }
.book-emblem i:nth-child(3) { transform: rotate(90deg); }
.book-emblem i:nth-child(4) { transform: rotate(135deg); }
.book-lines { gap: 2.5cqw; margin-top: 5.6cqw; }
.book-lines i { width: 23cqw; height: 1.25cqw; border-radius: 1rem; background: #929694; }
.book-lines i:nth-child(2) { width: 17cqw; }
.book-lines i:nth-child(3) { width: 13cqw; height: 0.85cqw; margin-top: 7.8cqw; border-radius: 0; background: #5d6360; }

.contact { padding: 3.5rem 0; }
.contact-intro, .contact-prompt, .footer p { color: var(--muted); }

#updates {
  display: grid;
  gap: 1rem;
  width: min(100%, 30rem);
  margin: 1rem auto 0;
}

#email {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6875rem;
  color: inherit;
  background: transparent;
}

#email::placeholder { color: var(--muted); opacity: 1; }

.signup-button {
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 0.6875rem;
  background: var(--button);
  color: #fff;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 500;
}

.signup-button:hover { background: #3b695a; }
.form-status { color: var(--muted); }
.form-status:empty { position: absolute; }
.contact-prompt { margin-top: 1rem; }

.text-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.contact-button {
  margin-top: 1rem;
  font-size: 1.125em;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2.625rem 0 1.5rem;
  text-align: center;
}

.footer .wordmark { margin-bottom: 0.375rem; font-size: 1.3125rem; }

dialog {
  width: min(calc(100% - 2rem), 32rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  color: inherit;
}

dialog::backdrop { background: #000b; }
dialog p { margin: 1rem 0; color: var(--muted); }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--panel);
}

@media (max-width: 44rem) {
  .page { width: calc(100% - 1.5rem); margin-top: 0.75rem; }
  .header { justify-content: center; flex-direction: column; padding: 1.375rem 0; }
  .mission, .philosophy, .projects, .contact { padding: 2rem 0; }
  .pillars { grid-template-columns: 1fr; gap: 1.875rem; }
  .pillars article { max-width: 25rem; margin-inline: auto; }
  .pillars h3 { margin-top: 0.75rem; }
  .pillars .lead { margin-top: 0.5rem; }
  .footer { padding: 1.75rem 0 1.25rem; }
}

@media (max-width: 35rem) {
  .project-grid { grid-template-columns: 1fr; }
}
