/* Shizune: a quiet white gallery. Black type, a grotesk for the interface and an elegant serif for voice,
   and her lavender from the old site kept as the one accent. */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --grey: #6b6b6b;
  --hair: #e6e6e6;
  --lavender: #a18dcc;
  --lavender-deep: #6f5aa6;

  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r: clamp(230px, 34vw, 460px); /* ring radius */
  --card: clamp(120px, 16vw, 210px);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lavender-deep);
  outline-offset: 3px;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
}

.skip:focus {
  left: 0.5rem;
}

/* Bar */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  font-size: 0.9rem;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(10px);
}

.mark {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mark span {
  color: var(--grey);
  font-weight: 400;
}

.bar nav {
  display: flex;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
}

.bar nav a {
  text-decoration: none;
  color: var(--grey);
}

.bar nav a:hover {
  color: var(--ink);
}

sup {
  font-size: 0.62em;
  margin-left: 0.15em;
  vertical-align: super;
}

.bar-cta {
  justify-self: end;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

/* 1. Space */
.space {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.stage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.stage:active {
  cursor: grabbing;
}

.ring {
  position: relative;
  width: var(--card);
  height: calc(var(--card) * 1.33);
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* each piece sits on the ring, then turns back to face the viewer */
  transform: rotateY(var(--a)) translateZ(var(--r)) translateY(var(--y, 0px)) rotateY(calc(-1 * (var(--a) + var(--spin, 0deg))));
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
  transition: transform 0.35s ease;
}

.card:hover img {
  transform: scale(1.04);
}

.space-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  pointer-events: none;
}

.space-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin: 0;
}

.space-copy p {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  color: #333;
}

.hint {
  position: absolute;
  top: 5.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
  margin: 0;
}

/* Shared section heads */
.works,
.commissions,
.about {
  padding: clamp(5rem, 11vw, 8rem) var(--gutter);
  border-top: 1px solid var(--hair);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.lead {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

/* 2. Works */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 16rem;
  column-gap: clamp(1rem, 2.5vw, 2rem);
}

.grid li {
  break-inside: avoid;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.work {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.work img {
  width: 100%;
  height: auto;
}

.grid p {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--grey);
}

.grid p span {
  color: var(--ink);
  margin-right: 0.4rem;
}

/* 3. Commissions */
.prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}

.price {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.price-kind {
  margin: 0 0 0.2rem;
  color: var(--lavender-deep);
  font-size: 0.85rem;
  font-weight: 500;
}

.price h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.price-amount {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1.1rem;
}

.price ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--hair);
  color: #333;
  font-size: 0.93rem;
}

.price li + li {
  margin-top: 0.3rem;
}

.price-extras {
  background: #f6f3fb;
  border-color: transparent;
}

.price-extras dl {
  margin: 0.9rem 0 0;
}

.price-extras dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgb(111 90 166 / 0.15);
  font-size: 0.93rem;
}

.price-extras dt {
  color: #333;
}

.price-extras dd {
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.price-extras .price-sub {
  margin-top: 1.4rem;
}

.price-extras p {
  margin: 0.4rem 0 0;
  color: #333;
  font-size: 0.93rem;
}

.price-note {
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  color: var(--grey);
  font-size: 0.88rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--grey);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--lavender-deep);
}

.actions {
  margin: 0 0 2.5rem;
}

.tos {
  max-width: 44rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.tos summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 500;
}

.tos-body {
  padding-bottom: 1.5rem;
  color: #333;
  font-size: 0.95rem;
}

.tos-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
  color: var(--ink);
}

.tos-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* 4. About */
.about-body {
  max-width: 40rem;
}

.about-body p:not(.lead) {
  color: #333;
  font-size: 1.05rem;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--hair);
  font-size: 0.85rem;
  color: var(--grey);
}

.foot p {
  margin: 0;
}

/* Viewer */
.viewer {
  border: 0;
  padding: 0;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  background: transparent;
  overflow: visible;
}

.viewer::backdrop {
  background: rgb(255 255 255 / 0.94);
}

.viewer img {
  max-height: min(82vh, 900px);
  max-width: min(88vw, 640px);
  width: auto;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.18);
}

.viewer p {
  text-align: center;
  font-size: 0.88rem;
  color: var(--grey);
  margin: 0.9rem 0 0;
}

.close {
  position: fixed;
  top: 1rem;
  right: var(--gutter);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  padding: 0.25rem 0;
}

@media (max-width: 760px) {
  .bar {
    grid-template-columns: 1fr auto;
  }

  .bar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .prices {
    grid-template-columns: 1fr 1fr;
  }

  .price-extras {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .prices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }

  :root {
    --r: 190px;
    --card: 112px;
  }
}

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

  .card img {
    transition: none;
  }
}
