:root {
  --plum: #302538;
  --deep: #291f32;
  --ink: #312737;
  --paper: #f9f6ee;
  --line: #cfc6c6;
  --accent: #ffb686;
  --rust: #924935;
  --mauve: #bda2bc;
  --mono: "IBM Plex Mono", monospace;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  cursor: pointer;
  color: inherit;
  font: inherit;
}
a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid #2594ad;
  outline-offset: 4px;
}
.wrap {
  width: min(1180px, 88%);
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -7em;
  left: 1rem;
  z-index: 5;
  background: white;
  padding: 1em;
}
.skip:focus {
  top: 1rem;
}
.top {
  border-bottom: 1px solid #645263;
  background: var(--plum);
  color: var(--paper);
}
.nav,
.brand,
nav {
  display: flex;
  align-items: center;
}
.nav {
  min-height: 75px;
  justify-content: space-between;
  gap: 1em;
}
.brand {
  text-decoration: none;
  gap: 0.85em;
  font-weight: 650;
}
.stamp {
  display: grid;
  place-content: center;
  background: var(--accent);
  color: var(--plum);
  width: 34px;
  height: 34px;
  font: italic 27px/1 var(--serif);
  border-radius: 3px 10px 3px 3px;
  letter-spacing: -3px;
  padding-right: 3px;
}
nav {
  gap: clamp(16px, 3vw, 40px);
}
nav a {
  font-size: 0.94rem;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
.contact-nav {
  color: var(--accent);
}
.mast {
  background: var(--plum);
  color: var(--paper);
}
.mast-grid {
  padding-block: clamp(42px, 5.6vw, 88px);
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 7%;
  align-items: center;
}
.eyebrow,
.project-meta,
.print-title,
#seed-caption,
.print-legend,
.playerfoot {
  font: 400 0.79rem/1.5 var(--mono);
  letter-spacing: 0.055em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.dash {
  height: 2px;
  width: 28px;
  display: inline-block;
  background: currentColor;
}
.intro .eyebrow,
.mast .period,
footer h2 span {
  color: var(--accent);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
}
h1 {
  font-size: clamp(4.7rem, 7.9vw, 7.9rem);
  line-height: 0.87;
  letter-spacing: -0.055em;
  margin: 0.15em 0 0.24em;
}
h1 i,
h2 i {
  font-weight: normal;
}
h1 i {
  letter-spacing: -0.065em;
}
.intro > p {
  max-width: 34em;
  line-height: 1.58;
  color: #e6dce4;
  font-size: clamp(1rem, 1.22vw, 1.15rem);
}
.btn {
  padding: 0.73em 1.28em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  border-radius: 3px;
}
.fill {
  background: var(--accent);
  color: var(--plum);
  margin-top: 1.45rem;
}
.fill:hover {
  background: #ffd1ae;
}
.cover {
  border: 1px solid #7b6879;
  border-radius: 2px;
  overflow: hidden;
}
.print {
  position: relative;
  overflow: hidden;
}
.print canvas {
  display: block;
  width: 100%;
  height: auto;
}
.print-title,
#seed-caption,
.print-legend {
  position: absolute;
  color: #f6dcd3;
}
.print-title {
  top: 15px;
  left: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.print #seed-caption {
  top: 21px;
  right: 18px;
  font-size: 0.75rem;
}
.print-legend {
  display: flex;
  gap: 4px;
  bottom: 15px;
  left: 18px;
}
.print-legend span {
  width: 12px;
  height: 7px;
  background: #6b556d;
}
.print-legend span:nth-child(2) {
  background: #a77e95;
}
.print-legend span:nth-child(3) {
  background: #dda1a6;
}
.print-legend span:nth-child(4) {
  background: #ffbb88;
}
.cover figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #705d71;
  padding: 9px 14px;
  font: 400 0.77rem/1.5 var(--mono);
  color: #e4d2df;
}
.cover button,
#close-player {
  font: 500 0.82rem var(--mono);
  border: 1px solid #806d81;
  background: transparent;
  color: #f9f2e7;
  border-radius: 2px;
  padding: 0.45em 0.65em;
}
.cover button:hover {
  background: #4a394e;
}
.works,
.cv {
  padding-block: clamp(48px, 6.5vw, 92px);
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1.15rem;
}
.works .eyebrow,
.cv .eyebrow,
.about .eyebrow {
  color: var(--rust);
}
h2 {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
h2 span {
  color: var(--rust);
}
.sectionhead .eyebrow {
  margin-bottom: 0.65em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filters button {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding: 0.38em 0.75em;
  border-radius: 20px;
  font: 400 0.83rem var(--mono);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.filters button:hover {
  border-color: var(--ink);
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3.5vw, 54px);
}
.project {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-block: 1.7rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.project[hidden],
[hidden] {
  display: none !important;
}
.art {
  width: 100%;
  aspect-ratio: 2.85;
  overflow: hidden;
  margin: 0 0 1.25em;
  display: grid;
  place-items: center;
}
.art canvas {
  width: 100%;
  height: 100%;
}
.chat-art {
  background: #d9c6d5;
  position: relative;
}
.terminal {
  position: absolute;
  left: 9%;
  top: 12%;
  width: 49%;
  background: #302538;
  color: #fff2df;
  box-shadow: 4px 4px #99859b;
  border: 1px solid #59475c;
  border-radius: 4px;
  font: 400 clamp(0.65rem, 1.25vw, 1rem) / 1.35 var(--mono);
}
.terminal > div:last-child {
  padding: 7px 12px 10px;
}
.terminal strong {
  color: var(--accent);
}
.terminal small {
  color: #d6c0d5;
}
.terminal-bar {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid #806f82;
  padding: 5px 8px;
}
.terminal i {
  width: 4px;
  height: 4px;
  background: #bea2bc;
  border-radius: 50%;
}
.second-terminal {
  left: 44%;
  top: 44%;
}
.cursor {
  display: inline-block;
  background: var(--accent);
  width: 0.5em;
  height: 0.85em;
  vertical-align: middle;
  margin-left: 0.15em;
}
.mine-art {
  background: #dfb5ae;
}
.tile-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: rotate(-8deg);
  gap: 3px;
}
.tile-art b {
  border: 1px solid #7c5264;
  box-shadow: 2px 2px #936d7a;
  width: clamp(23px, 3.1vw, 46px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #693d50;
  background: #f5ddd0;
  font: 600 1.15rem var(--mono);
}
.card-art {
  background: #624c67;
}
.card-art img {
  display: block;
  width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 4px 5px #382c40;
}
.project-meta {
  text-transform: uppercase;
  color: #705966;
  letter-spacing: 0.05em;
}
.project h3,
.cv-list h3 {
  font-size: clamp(1.65rem, 2.55vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin: 0.18em 0;
}
.project > p {
  max-width: 48ch;
  line-height: 1.57;
  margin: 0.35em 0 1.2em;
}
.actions {
  display: flex;
  gap: 1.25em;
  align-items: center;
  margin-top: auto;
}
.launch,
.source,
.textlink,
.social a {
  font-weight: 600;
}
.launch {
  border: 1px solid #887685;
  border-radius: 3px;
  text-decoration: none;
  padding: 0.42em 0.85em;
  font-size: 0.92rem;
}
.launch:before {
  content: "";
  display: inline-block;
  border-left: 7px solid currentColor;
  border-block: 4px solid transparent;
  margin-right: 0.55em;
}
.launch:hover {
  background: var(--plum);
  color: var(--paper);
}
.source {
  font-size: 0.92rem;
}
.wide {
  grid-column: 1/-1;
}
.wide > p {
  max-width: 75ch;
}
.compact {
  padding-block: 1.65rem;
}
.about {
  background: #efe4e0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8%;
  padding-block: clamp(50px, 6vw, 90px);
}
.portrait {
  align-self: start;
  padding: 9px;
  border: 1px solid #74616c;
  transform: rotate(-1.5deg);
  background: var(--paper);
  max-width: 405px;
}
.portrait img {
  width: 100%;
  display: block;
}
.about h2 {
  margin-bottom: 0.3em;
}
.about p:not(.eyebrow) {
  max-width: 64ch;
  margin-bottom: 0.75em;
}
.lead {
  font-size: 1.15rem;
}
.smallhead {
  font-size: 1.6rem;
  margin: 1.15em 0 0.3em;
}
.skills {
  margin: 0;
}
.skills div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 1rem;
  border-top: 1px solid #c5b3b8;
  padding: 0.6em 0;
}
.skills dt {
  font-weight: 650;
}
.skills dd {
  margin: 0;
}
.cv {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8%;
}
.doc-actions {
  display: flex;
  align-items: center;
  gap: 1.25em;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.ink {
  background: var(--ink);
  color: var(--paper);
}
.cv-list > div {
  border-top: 1px solid var(--line);
  padding: 0.9em 0 1.2em;
}
.cv-list h3 {
  font-size: 1.4rem;
}
.cv-list p {
  margin-top: 0.35em;
}
.footer-in {
  padding-block: 3rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
footer {
  background: var(--plum);
  color: var(--paper);
}
footer .eyebrow {
  color: var(--accent);
}
.email {
  display: inline-block;
  margin-top: 0.8em;
}
.social {
  display: flex;
  align-items: center;
  gap: 1.35em;
}
#player {
  margin: 1.5rem 0;
  background: #272031;
  border-radius: 4px;
  color: var(--paper);
  overflow: hidden;
}
#player > header,
.playerfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: #392d40;
}
#player .eyebrow {
  color: var(--accent);
  margin: 0;
  font-size: 0.7rem;
}
#player h3 {
  font-size: 1.5rem;
}
#player iframe {
  width: 100%;
  height: 580px;
  border: 0;
  display: block;
  background: #272031;
}
.playerfoot {
  font-size: 0.77rem;
  letter-spacing: 0;
}
.playerfoot a {
  white-space: nowrap;
}
@media (max-width: 800px) {
  .wrap {
    width: 90%;
  }
  .mast-grid {
    gap: 4%;
  }
  .sectionhead {
    align-items: start;
    flex-direction: column;
  }
  .skills div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-grid,
  .cv {
    gap: 5%;
  }
  .filters button {
    padding: 0.45em 0.75em;
  }
  .art {
    aspect-ratio: 2.5;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: 90%;
  }
  .nav {
    min-height: 60px;
  }
  .brand {
    gap: 0;
    font-size: 0;
  }
  .stamp {
    font-size: 26px;
  }
  nav {
    gap: 15px;
  }
  nav a {
    font-size: 0.88rem;
  }
  .mast-grid,
  .about-grid,
  .cv {
    grid-template-columns: 1fr;
  }
  .mast-grid {
    gap: 2rem;
  }
  .mast-grid h1 {
    font-size: clamp(4.7rem, 17vw, 6.3rem);
  }
  .intro > p {
    max-width: 38ch;
  }
  .cover {
    max-width: 480px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .project {
    padding-block: 1.55em;
  }
  .portrait {
    width: min(58%, 265px);
    margin-bottom: 2rem;
  }
  .cv-list {
    margin-top: 2rem;
  }
  .footer-in {
    align-items: start;
    flex-direction: column;
  }
  .art {
    aspect-ratio: 2.85;
  }
  .terminal {
    font-size: clamp(0.7rem, 2.6vw, 0.95rem);
  }
  .tile-art b {
    width: clamp(23px, 6.6vw, 38px);
  }
  #player iframe {
    height: 65vh;
    min-height: 360px;
  }
  .playerfoot {
    align-items: start;
  }
  .eyebrow {
    font-size: 0.72rem;
  }
  .cover figcaption {
    font-size: 0.7rem;
  }
  .sectionhead {
    gap: 1.2em;
  }
  .brand:focus-visible {
    outline-offset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#original {
  padding: 0.65rem 1.2rem 1rem;
  background: #392d40;
  font-size: 0.85rem;
}
#original summary {
  cursor: pointer;
}
#still img {
  display: block;
  max-width: 100%;
  margin-top: 0.7rem;
}
