@font-face {
  font-family: "Tiempos";
  src: url("../fonts/tiempos-headline-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sohne";
  src: url("../fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sohne";
  src: url("../fonts/soehne-halbfett.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #080706;
  --bone: #f3efe7;
  --paper: #d9d3c6;
  --muted: #9a958a;
  --line: rgba(243, 239, 231, 0.15);
  --glass: rgba(8, 7, 6, 0.72);
  --red: #ff5a4d;
  --cyan: #00b7a8;
  --gold: #e7c84b;
  --blue: #7db4ff;
  --font-display: "Tiempos", Georgia, "Times New Roman", serif;
  --font-body: "Sohne", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

#refusalStage,
.grain {
  position: fixed;
  inset: 0;
}

#refusalStage {
  z-index: 0;
}

.grain {
  z-index: 1;
  pointer-events: none;
  opacity: 0.58;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.96' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar,
.room {
  position: relative;
  z-index: 2;
}

.topbar {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 14px;
  align-items: start;
  padding: 22px 24px;
}

.backlink {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.34);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 106px);
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
  text-wrap: balance;
}

.room {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  padding: 18px 24px 24px;
}

.refusal,
.absence,
.accession,
.receipt,
.studio-labor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.refusal {
  min-height: 500px;
  padding: 18px;
}

.refusal h2 {
  max-width: 760px;
  margin: 40px 0 18px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(42px, 6.8vw, 94px);
  font-weight: 400;
  line-height: 0.9;
}

.reason {
  max-width: 650px;
  color: var(--paper);
  font-size: 19px;
}

.rituals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
}

.rituals button {
  min-height: 64px;
  border: 1px solid rgba(243, 239, 231, 0.13);
  border-radius: 8px;
  background: rgba(243, 239, 231, 0.06);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.rituals button:hover,
.rituals button.active {
  border-color: rgba(255, 90, 77, 0.62);
  background: rgba(255, 90, 77, 0.14);
}

.absence {
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  padding: 18px;
}

.void-object {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 231, 0.18);
  border-radius: 50%;
  transform: rotate(var(--void-tilt, -4deg)) scale(var(--void-scale, 1));
  transition: transform 500ms var(--ease), border-color 500ms var(--ease);
}

.void-object::before,
.void-object::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 90, 77, 0.44);
  border-radius: 12%;
  transform: rotate(28deg);
}

.void-object::after {
  inset: 28%;
  border-color: rgba(231, 200, 75, 0.48);
  transform: rotate(-19deg);
}

#voidLabel {
  position: absolute;
  inset: auto 16px 18px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 62px);
  line-height: 0.95;
  text-align: center;
}

.accession,
.receipt,
.studio-labor,
.trace-panel {
  padding: 15px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#condition {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.accession p:last-child,
.receipt p:last-child {
  margin-bottom: 0;
}

.studio-labor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-color: rgba(255, 90, 77, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 90, 77, 0.1), rgba(231, 200, 75, 0.055)),
    var(--glass);
}

.studio-labor h2 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(18px, 2.4vw, 32px);
  line-height: 1.08;
}

.studio-labor p:not(.eyebrow) {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
}

.labor-meter {
  grid-column: 2;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 239, 231, 0.1);
}

.labor-meter span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: var(--labor-color, var(--red));
  box-shadow: 0 0 18px var(--labor-color, var(--red));
  transition: width 420ms var(--ease), background 420ms var(--ease);
}

.labor-button {
  grid-row: 1 / span 3;
  grid-column: 3;
  min-height: 44px;
  align-self: stretch;
  border: 1px solid rgba(255, 90, 77, 0.38);
  border-radius: 8px;
  background: rgba(255, 90, 77, 0.09);
  cursor: pointer;
  padding: 9px 12px;
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.labor-button:hover,
.labor-button:focus-visible {
  background: rgba(255, 90, 77, 0.16);
}

.trace-panel {
  grid-column: 1 / -1;
}

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

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

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

  h1 {
    text-align: left;
  }

  .room {
    padding: 12px 18px 18px;
  }

  .studio-labor {
    grid-template-columns: 1fr;
  }

  .labor-meter,
  .labor-button {
    grid-column: 1;
    grid-row: auto;
  }

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