@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-200i.woff2") format("woff2"); font-weight: 200; font-style: italic; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-300i.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: block; }

:root {
  --bg: #000;
  --fg: #fff;
  --soft: #ccc;
  --dim: #777;
  --faint: #333;
  --line: #1c1c1c;
  --gut: 6vw;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; }
.w { display: inline-block; }
canvas { display: block; }

/* the opener, same as the live site */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gut);
}
.hero h1 {
  font-weight: 200;
  font-style: italic;
  font-size: clamp(4rem, 13vw, 13rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* section starter */
.label {
  font-weight: 400;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--dim);
}
.label::before { content: "// "; color: var(--faint); font-weight: 700; font-style: normal; }

/* underlined link, same as the live site */
a.u {
  color: var(--fg);
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 2px;
  transition: border-color .2s;
}
a.u:hover { border-color: var(--fg); }

/* small corner tag on the opener */
.corner {
  position: absolute;
  right: var(--gut);
  bottom: 5vh;
  width: 38px;
  height: 38px;
}

/* opening: [data-open] stays hidden until kit.js opens it */
.js [data-open] { visibility: hidden; }
.js [data-open].on { visibility: visible; }
.kch { visibility: hidden; }
.kch.on { visibility: visible; }

footer.foot {
  padding: 10vh var(--gut) 6vh;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: #ddd;
}
footer.foot a { color: #ddd; text-decoration: none; border-bottom: 1px solid var(--faint); }
footer.foot a:hover { color: var(--fg); border-color: var(--fg); }
footer.foot .r { display: flex; gap: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.nw { white-space: nowrap; }

/* between pages: a quick cross fade, and the project's name and drawing morph to where they sit on the next page */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.25, 0.8, 0.1, 1); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: contain; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }
