@font-face {
  font-family: "GT America";
  src: url("../fonts/GT-America-Standard-Medium.woff2") format("woff2"),
       url("../fonts/GT-America-Standard-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: #fff;
  --bg: #000;
  --rule: #444;
  --muted: #5c5c5c;
  --ease-out: cubic-bezier(.25, .46, .45, .94);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  background-color: var(--bg);
  font-family: "GT America", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 2vw;
  font-weight: 500;
  font-feature-settings: "ss01", "ss03";
  line-height: 1.4em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 500;
  line-height: 1.2em;
}

h1 { font-size: 4em; letter-spacing: -.02em; }
h2 { font-size: 3em; letter-spacing: -.01em; }
h3 { font-size: 2em; }
h4 { font-size: 1.25em; }

p {
  margin: 0 0 1.4em;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: .125em solid var(--rule);
}

a:hover {
  border-bottom-color: var(--fg);
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* Layout */
.container {
  display: flow-root;
  max-width: 85vw;
  margin-inline: auto;
}

.section {
  margin-block: 11vw;
}

/* Navigation */
.navbar {
  position: relative;
  z-index: 10;
  background-color: var(--bg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  height: 5em;
  border-bottom: .1em solid var(--fg);
}

.brand,
.nav-link {
  display: flex;
  align-items: center;
  border-bottom: none;
}

.nav-link {
  margin-right: -.75em;
  padding-inline: .75em;
}

/* Brand list */
.site-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: .1em solid var(--fg);
}

.site-list-item h2 {
  margin: 0;
  font-size: 2em;
  letter-spacing: 0;
}

/* Buttons */
.button-std,
.button-ext {
  color: var(--fg);
  background-color: transparent;
  border: .1em solid var(--fg);
  transition: color .2s, background-color .2s;
}

.button-std:hover,
.button-ext:hover,
.button-ext:focus-visible {
  color: var(--bg);
  background-color: var(--fg);
}

.button-std {
  display: inline-block;
  padding: .5em 1.2em .6em;
  border-radius: 2em;
}

.button-ext {
  display: flex;
  flex: none;
  align-items: center;
  height: 3.2em;
  padding: 1em 1.6em;
  border-radius: 1.6em;
}

/* "View" label slides open on hover */
.button-ext-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .2s var(--ease-out), padding .2s var(--ease-out), opacity .2s var(--ease-out);
}

.button-ext:hover .button-ext-text,
.button-ext:focus-visible .button-ext-text {
  max-width: 4em;
  padding-right: .5em;
  opacity: 1;
}

/* About */
.spaced {
  margin-top: 4.2em;
}

.version {
  margin-top: 4em;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .02em;
}

/* Style guide */
.style-module {
  margin-block: 1em;
  padding: .5em 1em 1em;
  border: 1px solid var(--rule);
  border-radius: .1em;
}

.label {
  color: var(--rule);
  font-size: .75em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media screen and (max-width: 991px) {
  body { font-size: 2.4vw; }
}

@media screen and (max-width: 767px) {
  body { font-size: 3vw; }

  .button-ext {
    width: 4.5em;
    height: 4.5em;
    border-radius: 2.25em;
  }

  .button-ext-text {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  body { font-size: 4.2vw; }

  .container { max-width: 90vw; }
}

/* Index intro: page h1 sized like a subheading */
.intro {
  font-size: 2em;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.style-module p,
.style-module h1,
.style-module h2,
.style-module h3,
.style-module h4 {
  margin-bottom: 0;
}
