@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-italic.woff2") format("woff2");
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --graphite: #595959;
  --teal: #3fa8a0;
  --page: 84rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --space: clamp(3.5rem, 7vw, 6rem);
  --notch: clamp(3.5rem, 9vw, 9rem);
  --notch-drop: calc(var(--notch) * 0.5774);
  --lift: 6px;
  --sans: "Saira", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.nowrap {
  white-space: nowrap;
}

.page {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.tile {
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: calc(var(--lift) * -1) var(--lift) 0 var(--ink);
  transition: top 0.12s ease, left 0.12s ease, box-shadow 0.12s ease;
}

a.tile:hover {
  top: 3px;
  left: -3px;
  box-shadow: -3px 3px 0 var(--ink);
}

a.tile:active {
  top: var(--lift);
  left: calc(var(--lift) * -1);
  box-shadow: 0 0 0 var(--ink);
}

.band {
  position: relative;
  margin-top: calc(var(--notch-drop) * -1);
  padding-block: var(--space) calc(var(--space) + var(--notch-drop));
  background: var(--band-bg);
  color: var(--band-ink);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch-drop), 100% 100%, 0 100%);
}

.band:last-child {
  padding-bottom: var(--space);
}

.band--first {
  margin-top: 0;
  clip-path: none;
}

.band--teal {
  --band-bg: var(--teal);
  --band-ink: var(--ink);
  --band-soft: #062622;
}

.band--paper {
  --band-bg: var(--paper);
  --band-ink: var(--ink);
  --band-soft: #262626;
}

.sitebar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding: 0.55rem 0.9rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.intro h1 {
  margin: 0;
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.intro h1 span {
  display: block;
}

.role {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.9375rem, 2.05vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.portrait {
  --cut: clamp(1.5rem, 3vw, 2.5rem);
  justify-self: end;
  width: 100%;
  max-width: 26rem;
  margin-left: var(--lift);
  filter: drop-shadow(-8px 8px 0 var(--ink));
}

.portrait-inner {
  padding: 3px;
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% calc(var(--cut) * 0.5774), 100% 100%, 0 100%);
}

.portrait img {
  clip-path: polygon(0 0, calc(100% - var(--cut) + 2px) 0, 100% calc((var(--cut) - 2px) * 0.5774), 100% 100%, 0 100%);
}

.section-title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0 0 0 var(--lift);
  list-style: none;
}

.work-tile {
  --cut: clamp(1.5rem, 2.5vw, 2rem);
  display: block;
  height: 100%;
  filter: drop-shadow(calc(var(--lift) * -1) var(--lift) 0 var(--ink));
  transition: transform 0.12s ease, filter 0.12s ease;
}

.work-tile:hover {
  transform: translate(-3px, 3px);
  filter: drop-shadow(-3px 3px 0 var(--ink));
}

.work-inner {
  height: 100%;
  padding: 3px;
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% calc(var(--cut) * 0.5774), 100% 100%, 0 100%);
}

.work-face {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  height: 100%;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  background: var(--work-bg);
  color: var(--work-ink);
  clip-path: polygon(0 0, calc(100% - var(--cut) + 2px) 0, 100% calc((var(--cut) - 2px) * 0.5774), 100% 100%, 0 100%);
}

.work-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7rem;
}

.work-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.work-name {
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(1.625rem, 2.6vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-type {
  font-size: 1rem;
  line-height: 1.4;
}

.work--studio {
  --work-bg: var(--paper);
  --work-ink: #000;
}

.work--alcyone {
  --work-bg: #bd00ff;
  --work-ink: #fff;
}

.work--iyetra {
  --work-bg: #e0a246;
  --work-ink: #000;
}

.work--logbook {
  --work-bg: #a1ccff;
  --work-ink: #000;
}

.bio-lead {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.bio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.1rem clamp(2rem, 4vw, 3.5rem);
}

.bio p {
  margin: 0;
  color: var(--band-soft);
}

.bio p + p {
  margin-top: 1.1rem;
}

.bio strong {
  font-weight: 600;
  color: var(--band-ink);
}

.bio-lead a,
.bio a {
  font-weight: 700;
  color: var(--band-ink);
}

.colophon {
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--graphite);
  text-align: center;
}

.colophon p {
  margin: 0 auto;
  max-width: 62rem;
}

.colophon p + p {
  margin-top: 0.75rem;
}

.follow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4em 0.7em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: gap 0.18s ease, background-color 0.18s ease;
}

.more::before {
  content: "";
  flex: none;
  width: 0.72em;
  height: 0.82em;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform 0.18s ease;
}

.more:hover,
.more:focus-visible {
  gap: 0.9em;
  background: var(--teal);
}

.more:hover::before,
.more:focus-visible::before {
  transform: rotate(90deg);
}

@media (max-width: 63.99rem) {
  .work {
    grid-template-columns: minmax(0, 1fr);
  }

  .bio {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .sitebar {
    justify-content: flex-start;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .role {
    font-size: 3.8vw;
  }

  .portrait {
    justify-self: start;
    max-width: 18rem;
  }

  .work-face {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .work-mark {
    justify-content: flex-start;
    width: 7rem;
    height: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .work-tile,
  .more,
  .more::before {
    transition: none;
  }
}
