:root {
  --ground: #ffffff;
  --ink: #0a0a0a;
  --comment: #5c5c5c;
  --link: #e0301e;
  --tint: rgb(10 10 10 / 0.04);
  --gutter: clamp(1rem, 0.25rem + 3.5vw, 4rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0a0a0a;
    --ink: #f2f2f2;
    --comment: #9a9a9a;
    --link: #ff5040;
    --tint: rgb(255 255 255 / 0.06);
    color-scheme: dark;
  }
}

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

html {
  background: var(--ground);
  color: var(--ink);
  font-family: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--comment) var(--ground);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  display: flex;
  flex-direction: column;
}

::selection { background: var(--link); color: #ffffff; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover { text-decoration-thickness: 2px; }

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

.zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 82rem;
  padding: clamp(2rem, 1rem + 5vw, 6rem) var(--gutter) clamp(1.5rem, 1rem + 2vw, 3rem);
}

.comment { color: var(--comment); }

.origin h1 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
}

.apex {
  font-size: clamp(2.5rem, 0.9rem + 6.2vw, 6rem);
  line-height: 1;
  font-weight: 800;
  font-variation-settings: "wdth" 112.5;
  letter-spacing: -0.04em;
}

.apex .dot { color: var(--link); }

.origin p {
  margin: 0;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.125rem);
}

.origin h1 + p { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }

.records {
  list-style: none;
  margin: clamp(4rem, 2rem + 8vw, 9rem) 0 0;
  padding: 0;
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  column-gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
}

.record {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.record a {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: 0.75rem 0;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  isolation: isolate;
}

.record a::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--tint);
  opacity: 0;
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.record a:hover::before,
.record a:focus-visible::before { opacity: 1; }

.record a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 0;
}

.name {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.host {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 500;
  color: var(--link);
}

.host-text {
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  animation: resolve 520ms steps(var(--n, 17), end) 240ms backwards;
}

.record a:hover .host-text,
.record a:focus-visible .host-text { text-decoration-thickness: 3px; text-decoration-color: currentColor; }

@keyframes resolve {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.record .comment {
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.125rem);
}

.foot {
  margin-top: auto;
  padding-top: clamp(4rem, 3rem + 5vw, 8rem);
}

.foot p {
  margin: 0;
  font-size: 0.875rem;
}

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

@media (max-width: 44rem) {
  .apex {
    font-size: clamp(2.25rem, 0.5rem + 8vw, 3.5rem);
    font-variation-settings: "wdth" 100;
  }
  .records { display: block; width: auto; }
  .record a {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0;
  }
  .record a::before { inset: 0 calc(var(--gutter) * -1); }
}

@media (prefers-reduced-motion: reduce) {
  .host-text { animation: none; }
  .record a::before { transition: none; }
}

.home {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112.5;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.home .dot { color: var(--link); }

.home:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.project {
  margin-top: clamp(3rem, 2rem + 5vw, 7rem);
  max-width: 64ch;
}

.project h1 {
  margin: 0;
  font-size: clamp(3rem, 1.5rem + 6vw, 6rem);
  line-height: 1;
  font-weight: 800;
  font-variation-settings: "wdth" 112.5;
  letter-spacing: -0.04em;
}

.project .lead {
  margin: clamp(1rem, 0.75rem + 1vw, 1.5rem) 0 0;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
}

.project .go {
  display: inline-block;
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 500;
}

.project .go:hover { text-decoration-thickness: 3px; }

.prose {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose p { margin: 0 0 1.25em; }

.prose ul {
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
}

.prose li {
  padding-left: 2ch;
  text-indent: -2ch;
  margin-bottom: 0.5em;
}

.prose li::before {
  content: "- ";
  color: var(--link);
}


.project.has-shots { max-width: none; }

.project .body { display: grid; }

.shots {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  margin-top: clamp(1rem, 0.5rem + 2vw, 2rem);
}

@media (min-width: 64rem) {
  .project.has-shots .body {
    grid-template-columns: minmax(0, 64ch) minmax(0, 560px);
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: start;
  }

  .project.has-shots .shots {
    margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  }
}

.shots figure { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  outline: 1px solid var(--tint);
  outline-offset: -1px;
}

.shots figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--comment);
}

