@font-face {
  font-family: Inter;
  src: url(assets/inter.woff2);
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #241f18;
  background: #e0d6c8;
  font:
    16px/1.45 Inter,
    Arial,
    sans-serif;
}
#world,
#world canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#world {
  touch-action: none;
  cursor: grab;
}
#world:active {
  cursor: grabbing;
}
button,
a,
input {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  text-decoration: none;
}
header {
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4vw;
  pointer-events: none;
}
header > * {
  pointer-events: auto;
}
.signature {
  font-size: clamp(32px, 4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
}
.signature span {
  color: #a84316;
}
#contact,
#back {
  font-weight: 550;
  background: #efe9deeb;
  padding: 7px 12px;
  border-radius: 2px;
}
#identity {
  position: fixed;
  top: calc(22px + clamp(32px, 4vw, 68px));
  left: 4vw;
  font-size: clamp(13px, 1.2vw, 17px);
}
#markers button {
  position: fixed;
  top: 0;
  left: 0;
  padding: 4px 10px;
  border-left: 3px solid #b95721;
  background: #fffcf1ed;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 14px #37231118;
}
#markers button:before {
  content: "";
  position: absolute;
  width: clamp(18px, 3vw, 52px);
  height: 1px;
  background: currentColor;
  right: 100%;
  top: 50%;
}
#home {
  position: fixed;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #312719;
}
#cut {
  accent-color: #a34c21;
  width: min(240px, 55vw);
}
small,
.kicker,
#count {
  font-size: 12px;
  letter-spacing: 0.05em;
}
.kicker {
  font-weight: 650;
  text-transform: uppercase;
  color: #924719;
}
small {
  white-space: nowrap;
}
#back {
  position: fixed;
  top: calc(34px + clamp(32px, 4vw, 68px));
  left: 4vw;
}
#room:before {
  content: "";
  position: fixed;
  inset: 65% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, #eee6d9ee 46%, #eee6d9 100%);
}
.legend {
  position: fixed;
  bottom: 3vh;
  left: 4vw;
  right: 22vw;
}
h1 {
  font-weight: 550;
  letter-spacing: -0.06em;
  font-size: clamp(26px, 3.6vw, 56px);
  margin: 2px 0;
  line-height: 1.05;
}
p {
  max-width: 75ch;
  margin: 6px 0;
}
.legend a {
  display: inline-block;
  margin: 4px 16px 0 0;
  font-weight: 550;
  border-bottom: 1px solid #624c39;
}
#steps {
  position: fixed;
  bottom: 4vh;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 10px;
}
#steps button {
  font-size: 24px;
  border: 1px solid #8a7e70;
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
button:hover,
.legend a:hover {
  color: #a04416;
}
:focus-visible {
  outline: 3px solid #bf551a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#error {
  position: fixed;
  top: 28%;
  left: 5%;
  right: 5%;
  padding: 20px;
  background: #eee6d9;
}
.in-room #identity {
  display: none;
}
@media (max-width: 650px) {
  #room:before {
    inset: 58% 0 0;
  }
  .legend {
    bottom: 10vh;
    right: 4vw;
  }
  .legend p {
    font-size: 14px;
  }
  #steps {
    bottom: 2vh;
  }
  #markers button {
    font-size: 14px;
  }
  #back {
    top: 74px;
  }
  #identity {
    max-width: 70%;
  }
}
@media (min-width: 760px) {
  #home {
    left: 4vw;
    bottom: 4vh;
    transform: none;
    justify-items: start;
    text-align: left;
  }
}
#next,
#prev {
  font-size: 0 !important;
  position: relative;
}
#next:after,
#prev:after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.6px 1.6px 0 0;
  transform: rotate(45deg);
  margin: auto;
}
#prev:after {
  transform: rotate(-135deg);
}
@media (max-height: 500px) and (orientation: landscape) {
  .legend {
    bottom: 2vh;
  }
  .legend p {
    font-size: 13px;
    margin: 2px 0;
  }
  h1 {
    font-size: 24px;
  }
  #back {
    top: 59px;
  }
  #home small {
    display: none;
  }
}
@font-face {
  font-family: "Instrument Serif";
  src: url(assets/instrument-serif.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
body {
  background: #36302a;
  color: #fff7e9;
}
#world:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #160f0c7d,
      transparent 35%,
      transparent 61%,
      #19120c54
    ),
    linear-gradient(
      0deg,
      #19141054,
      transparent 23%,
      transparent 85%,
      #21160d50
    );
}
.signature {
  font-size: clamp(32px, 3.7vw, 58px);
  font-weight: 590;
  letter-spacing: -0.085em;
}
.signature span {
  color: #ffb86a;
}
header,
#identity {
  color: #fff9ee;
  text-shadow: 0 1px 12px #1e150f8c;
}
#identity {
  font-size: clamp(12px, 0.98vw, 15px);
  letter-spacing: 0.01em;
  top: calc(24px + clamp(32px, 3.7vw, 58px));
}
#contact,
#back {
  color: #fff6e4;
  background: #30292065;
  border: 1px solid #edcf9d88;
  border-radius: 30px;
  padding: 7px 17px;
  backdrop-filter: blur(12px);
}
#markers button {
  font:
    400 clamp(31px, 3.2vw, 60px) / 1.12 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.032em;
  background: none;
  box-shadow: none;
  border: 0;
  color: #fff4df;
  text-shadow:
    0 1px 14px #20150e,
    0 1px 2px #271f17;
  padding: 4px 0 8px;
  transition: color 0.2s;
}
#markers button:before {
  width: clamp(29px, 4.5vw, 82px);
  right: calc(100% + 13px);
  background: linear-gradient(90deg, #e6c49ca6, #fff1d891);
  height: 1px;
}
#markers button:after {
  content: "";
  position: absolute;
  right: calc(100% + 11px + clamp(29px, 4.5vw, 82px));
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe1a5;
  box-shadow: 0 0 9px #ffce8880;
}
#markers button:hover,
#markers button:focus-visible {
  color: #ffc685;
}
#home {
  color: #fff6e8;
  text-shadow: 0 1px 6px #241c18;
  gap: 8px;
}
#home label {
  font-size: 14px;
  font-weight: 550;
}
#home small {
  letter-spacing: 0;
  font-size: 12px;
}
#cut {
  appearance: none;
  height: 18px;
  width: min(190px, 55vw);
  background: transparent;
  cursor: pointer;
}
#cut::-webkit-slider-runnable-track {
  height: 2px;
  background: #e8d9c2bd;
}
#cut::-webkit-slider-thumb {
  appearance: none;
  height: 12px;
  width: 12px;
  border: 2px solid #fff3df;
  border-radius: 50%;
  background: #be8750;
  margin-top: -5px;
  box-shadow: 0 0 0 3px #28211766;
}
#cut::-moz-range-track {
  height: 2px;
  background: #e8d9c2bd;
}
#cut::-moz-range-thumb {
  width: 9px;
  height: 9px;
  background: #be8750;
  border: 2px solid #fff3df;
  border-radius: 50%;
}
#room:before {
  background: linear-gradient(transparent, #211a16ce 47%, #211b17f5);
}
#room h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.kicker {
  color: #f3bf82;
}
.legend a {
  border-color: #d4b284;
}
.legend a:hover,
#contact:hover,
#back:hover {
  color: #ffcc89;
}
#error {
  color: #2b231c;
}
@media (max-width: 719px) {
  #markers {
    position: fixed;
    bottom: max(134px, 16.5vh);
    left: 5vw;
    right: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 4vw, 24px);
  }
  #markers button {
    position: static;
    transform: none !important;
    font-size: clamp(24px, 6vw, 32px);
    padding: 8px 0;
  }
  #markers button:before,
  #markers button:after {
    display: none;
  }
  #home {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  #world:after {
    background: linear-gradient(
      0deg,
      #1a1411e0,
      transparent 31%,
      transparent 77%,
      #1b171370
    );
  }
}
@media (max-width: 719px) {
  #markers {
    bottom: max(100px, 12vh);
  }
}
