@font-face {
  font-family: "Noto Sans";
  src: url("assets/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #000000;
  --paper: #ffffff;
  --surface: #f1f3f3;
  --muted: #606868;
  --rule: #d2dada;
  --dark-rule: #303636;
  --dark-muted: #bac2c2;
  --teal: #00abb3;
  --shell: 77rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-synthesis: none;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

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

.dark {
  background: var(--ink);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0.75rem auto auto 0.75rem;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.625rem 0.875rem;
  background: var(--paper);
}

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

.masthead {
  border-bottom: 1px solid var(--dark-rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.5rem;
}

.wordmark img {
  display: block;
  width: 3.5rem;
  height: auto;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.masthead nav a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--teal);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: clamp(28rem, 43vw, 39rem);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(3rem, 7.75vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.97;
}

.hero h1 span {
  display: block;
}

.hero-copy p {
  max-width: 26ch;
  margin-top: 1.5rem;
  color: var(--dark-muted);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.36;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 2rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

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

.dark .button:focus-visible {
  outline-color: var(--paper);
}

.hero-emblem {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 30rem);
  aspect-ratio: 1.25;
}

.hero-logo {
  display: block;
  width: 74%;
  height: auto;
  /* The center of the teal square in the 821 × 821 master viewBox. */
  transform-origin: 46.4677% 52.2533%;
  transform: perspective(64rem) rotateX(48deg);
}

.work-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.work-nav a {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.work-nav a:first-child {
  padding-inline-start: 0;
}

.work-nav a + a {
  border-left: 1px solid var(--rule);
}

.work-nav a:hover {
  text-decoration: underline;
}

.work-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.work-section-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
}

#software .work-copy {
  grid-column: 2;
}

#software .work-visual {
  grid-area: 1 / 1;
}

#software {
  border-top: 1px solid var(--rule);
}

.work-section h2, .site-footer h2 {
  font-size: clamp(2.125rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.work-section h2 {
  max-width: 12ch;
}

.work-intro {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.work-items {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  margin-top: 2rem;
}

.work-items article + article {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.work-items h3 {
  font-size: clamp(1.25rem, 2.15vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.work-items h3 a {
  text-decoration-color: #a6aeae;
  text-decoration-thickness: 1px;
}

.work-items h3 a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

.work-items p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.work-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.work-section figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.evaluation {
  background: var(--surface);
}

.run-example {
  border-left: 0.25rem solid var(--teal);
  padding-left: clamp(1rem, 3vw, 2rem);
}

.run-example figcaption {
  max-width: 49ch;
}

.run-example p {
  max-width: 28ch;
  font-size: clamp(1.5rem, 3.25vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.site-footer p {
  margin-top: 0.75rem;
  color: var(--dark-muted);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-mark {
  display: block;
  width: 7.5rem;
  height: auto;
}

@media (max-width: 45rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero-emblem {
    width: min(100%, 22rem);
  }

  .work-nav a {
    min-height: 3.5rem;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .work-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  #software .work-copy, #software .work-visual {
    grid-area: auto;
  }

  .work-section h2 {
    max-width: none;
    text-wrap: wrap;
  }
}
