@font-face {
  font-family: Cormorant;
  src: url("/fonts/cormorant.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("/fonts/cormorant-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f3f0e7;
  --ink: #302a2b;
  --muted: #777066;
  --line: #d4cbbc;
  --wine: #762d43;
  --rose: #b87888;
  --green: #345c52;
  --gold: #b99b58;
  --serif: Cormorant, "Baskerville", "Palatino Linotype", serif;
  --sans: DM, Arial, sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
::selection {
  background: #762d4325;
}
a:focus-visible,
button:focus-visible,
canvas:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--paper);
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.site-head {
  height: 91px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.signature {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -0.04em;
}
.signature span {
  color: var(--wine);
}
.small-caps,
.eyebrow,
.site-head nav,
.piece-number,
.counter-label {
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-head nav {
  display: flex;
  gap: 28px;
}
.site-head a:hover {
  color: var(--wine);
}
.quiet {
  color: var(--muted);
}
.dot {
  color: var(--wine);
  padding: 0 10px;
}
.text-link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.collection {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5vw;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 62px 0 48px;
  align-items: end;
}
.intro h1 {
  font: 400 clamp(52px, 6.8vw, 99px) / 0.91 var(--serif);
  letter-spacing: -0.05em;
  margin: 12px 0 0;
  max-width: 660px;
}
.intro h1 em {
  font-weight: 400;
  color: var(--wine);
}
.intro-copy {
  justify-self: end;
  max-width: 270px;
  font: 400 19px/1.5 var(--serif);
  padding-bottom: 5px;
}
.intro-copy p {
  margin: 0;
}
.intro-copy .eyebrow {
  font-family: var(--sans);
  margin-top: 25px;
  font-size: 9px;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 38px;
  padding: 0 0 65px;
}
.work-card {
  display: block;
  position: relative;
}
.work-art {
  position: relative;
  overflow: hidden;
  height: 310px;
  background: #e9e4d7;
  border: 1px solid #d9d0c0;
}
.work-art canvas {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
}
.work-card:hover canvas {
  transform: scale(1.025);
}
.work-art .enter-mark {
  position: absolute;
  bottom: 17px;
  right: 19px;
  border: 1px solid #302a2b40;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  background: #f3f0e780;
  transition:
    background 0.2s,
    transform 0.2s;
}
.work-card:hover .enter-mark {
  background: var(--paper);
  transform: rotate(-35deg);
}
.work-caption {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 10px;
  margin-top: 20px;
}
.piece-number {
  color: var(--wine);
  padding-top: 8px;
  font-size: 9px;
}
.work-caption h2 {
  font: 400 32px/1.1 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 7px;
}
.work-caption p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}
.work-kind {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 11px;
}
.arcade-link {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.arcade-link strong {
  font: 400 23px var(--serif);
}
.arcade-link small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 35px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.experience {
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.experience .site-head {
  width: 100%;
  max-width: none;
  height: 70px;
  flex-shrink: 0;
  padding: 0 36px;
}
.back-link {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  gap: 11px;
  align-items: center;
}
.piece-head {
  padding: 28px 36px 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}
.piece-head h1 {
  font: 400 clamp(36px, 4.6vw, 63px) / 1 var(--serif);
  letter-spacing: -0.045em;
  margin: 7px 0 0;
}
.piece-head p {
  font: 400 17px/1.35 var(--serif);
  color: var(--muted);
  margin: 0;
  max-width: 290px;
}
.piece-tools {
  display: flex;
  gap: 16px;
  align-items: center;
}
.plain-button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  min-height: 32px;
}
.plain-button:hover {
  color: var(--wine);
  border-color: var(--wine);
}
.canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 36px;
  isolation: isolate;
}
.art-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.canvas-wrap.bordered {
  border: 1px solid var(--line);
}
.experience-foot {
  flex-shrink: 0;
  min-height: 64px;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.foot-note {
  max-width: 520px;
  line-height: 1.6;
}
.help-drawer {
  position: absolute;
  inset: auto 0 0 auto;
  z-index: 10;
  width: min(380px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 10px 40px #302a2b12;
}
.help-drawer h2 {
  font: 400 28px var(--serif);
  margin: 0 0 12px;
}
.help-drawer p {
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
}
.help-drawer[hidden] {
  display: none;
}
.help-close {
  float: right;
  background: none;
  border: 0;
  font-size: 20px;
}
.hint-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  pointer-events: none;
  transition: opacity 1s;
}
.hint-center h2 {
  font: 400 clamp(35px, 4vw, 61px) / 1 var(--serif);
  letter-spacing: -0.03em;
  margin: 0;
  color: #8b7b76;
}
.hint-center p {
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0;
}
.hint-center.hidden {
  opacity: 0;
}
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 19px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  z-index: 20;
  border-radius: 2px;
}
.toast[hidden] {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.small-button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: 0.05em;
  min-height: 36px;
}
.small-button:hover,
.small-button.active {
  border-color: var(--wine);
  color: var(--wine);
  background: #762d4308;
}
.small-button.primary {
  background: var(--wine);
  color: var(--paper);
  border-color: var(--wine);
}
.range-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.range-label input {
  accent-color: var(--wine);
  width: 120px;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  max-width: min(90vw, 480px);
}
dialog::backdrop {
  background: #302a2b50;
}
dialog h2 {
  font: 400 32px var(--serif);
  margin: 0 0 16px;
}
dialog p {
  font-size: 12px;
  line-height: 1.7;
}
dialog form {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
}
@media (min-width: 1500px) {
  .work-art {
    height: 360px;
  }
}
@media (max-width: 760px) {
  .site-head {
    height: 70px;
    padding: 0 23px;
  }
  .site-head nav {
    gap: 15px;
    font-size: 9px;
  }
  .collection {
    padding: 0 23px;
  }
  .intro {
    gap: 25px;
    padding: 36px 0 35px;
    grid-template-columns: 1fr;
  }
  .intro h1 {
    font-size: 64px;
    max-width: 460px;
  }
  .intro-copy {
    justify-self: start;
    max-width: 330px;
    font-size: 17px;
  }
  .intro-copy .eyebrow {
    margin-top: 16px;
  }
  .work-grid {
    gap: 30px 22px;
  }
  .work-art {
    height: 225px;
  }
  .work-caption {
    grid-template-columns: 18px 1fr;
    gap: 5px;
    margin-top: 13px;
  }
  .work-caption h2 {
    font-size: 26px;
  }
  .work-kind {
    display: none;
  }
  .experience .site-head {
    padding: 0 20px;
    height: 60px;
  }
  .piece-head {
    padding: 21px 20px 15px;
    align-items: start;
  }
  .piece-head p {
    font-size: 15px;
    max-width: 150px;
  }
  .piece-head h1 {
    font-size: 42px;
  }
  .canvas-wrap {
    margin: 0 20px;
  }
  .experience-foot {
    padding: 12px 20px;
    min-height: 68px;
    align-items: start;
    gap: 12px;
  }
  .piece-tools {
    gap: 12px;
  }
  .foot-note {
    font-size: 9px;
  }
  .arcade-link small {
    max-width: 115px;
    text-align: right;
  }
  .arcade-link strong {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .work-art {
    height: 300px;
  }
  .work-caption h2 {
    font-size: 32px;
  }
  .work-kind {
    display: block;
  }
  .work-caption {
    grid-template-columns: 24px 1fr auto;
  }
  .intro h1 {
    font-size: 65px;
  }
  .site-foot {
    font-size: 8px;
  }
  .piece-head p {
    display: none;
  }
  .piece-head h1 {
    font-size: 41px;
  }
  .piece-tools {
    gap: 10px;
  }
  .experience-foot {
    flex-wrap: wrap;
  }
  .experience {
    min-height: 560px;
  }
  .signature {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .work-card:hover canvas {
    transform: none;
  }
}
@media (max-width: 580px) {
  .piece-head {
    flex-wrap: wrap;
    gap: 14px;
  }
  .piece-head > div:first-child {
    flex-basis: 100%;
  }
  .piece-head .piece-tools {
    max-width: none !important;
    justify-content: start !important;
    flex-wrap: wrap;
  }
  .work-kind {
    font-size: 8px;
    max-width: 78px;
    line-height: 1.5;
  }
  .hint-center p {
    padding: 0 14px;
    text-align: center;
    line-height: 1.7;
  }
  .help-drawer {
    max-height: 100%;
    overflow: auto;
  }
}
@media (max-height: 700px) {
  .experience {
    height: auto;
    min-height: 100svh;
    overflow: auto;
  }
  .experience > .canvas-wrap {
    flex: none;
    height: 55svh;
    min-height: 280px;
  }
  .workbench-layout {
    flex: none;
    min-height: 480px;
  }
  .phrase > .canvas-wrap {
    height: 330px;
  }
}
