:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f5;
  color: #171918;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #f4f7f5;
}

main {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 5rem) clamp(1.25rem, 5vw, 4rem) 2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2.25rem;
}

.intro {
  width: min(100%, 42rem);
  text-align: center;
}

.logo-link {
  display: inline-block;
  border-radius: 4px;
}

.logo-link:focus-visible {
  outline: 4px solid #dfb43b;
  outline-offset: 5px;
}

.logo {
  display: block;
  width: clamp(8.5rem, 23vh, 13rem);
  height: auto;
  margin: 0 auto 1rem;
  color: #171918;
}

.company,
.release-label,
.next-project span {
  margin: 0;
  color: #a1332f;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(3rem, 9vh, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.purpose {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: #4e5551;
  font-size: clamp(1rem, 2.2vh, 1.25rem);
  line-height: 1.55;
}

.release {
  margin-top: clamp(2.25rem, 6vh, 4rem);
  padding: 1.6rem 0 0;
  border-top: 3px solid #dfb43b;
}

.release h2 {
  margin: 0.35rem 0;
  color: #156f69;
  font-size: clamp(1.8rem, 4vh, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.release p:not(.release-label) {
  margin: 0.55rem 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.primary-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border: 2px solid #171918;
  border-radius: 4px;
  background: #171918;
  color: #ffffff;
  font-weight: 720;
  text-decoration: none;
}

.primary-link:hover {
  background: #156f69;
  border-color: #156f69;
}

.primary-link:focus-visible {
  outline: 4px solid #dfb43b;
  outline-offset: 4px;
}

.next-project {
  width: min(100%, 42rem);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  border-top: 1px solid #c7cfca;
  text-align: center;
}

.next-project strong {
  font-size: 1.02rem;
}

footer {
  padding: 1rem 1.25rem 1.35rem;
  color: #68706c;
  font-size: 0.78rem;
  text-align: center;
}

.error-page {
  text-align: center;
}

.logo-small {
  width: 8rem;
}

.source-page {
  width: min(100%, 76rem);
  align-content: start;
  justify-items: stretch;
  gap: 1rem;
}

.source-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.source-header h1 {
  font-size: clamp(1.8rem, 5vh, 3.2rem);
}

.back-link {
  color: #156f69;
  font-weight: 720;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.back-link:focus-visible {
  outline: 4px solid #dfb43b;
  outline-offset: 4px;
}

.source-text {
  width: 100%;
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: auto;
  border: 1px solid #aeb7b2;
  border-radius: 4px;
  background: #ffffff;
  color: #171918;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(0.76rem, 1.7vh, 0.94rem);
  line-height: 1.5;
  text-align: left;
  white-space: pre;
}

@media (max-height: 680px) and (orientation: landscape) {
  main {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 1fr);
    align-items: center;
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .logo {
    width: 6.5rem;
  }

  .release {
    margin-top: 1.5rem;
  }

  .next-project {
    align-self: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-link {
    transition: background-color 140ms ease, border-color 140ms ease;
  }
}
