* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--body);
  min-height: 100svh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button,
input {
  touch-action: manipulation;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
.glyph {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  max-width: 1.5em;
}
.skip {
  position: fixed;
  top: -120px;
  left: 8px;
  z-index: 200;
  background: white;
  color: black;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 9px 16px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 40px);
}
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
}
.topnav [aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.librows {
  display: grid;
}
.librow {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
}
.librow .glyph {
  width: 23px;
  height: 23px;
}
.backlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
}
.recovery {
  min-height: 75svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 32px;
  text-align: center;
}
.recovery > .glyph {
  width: 68px;
  height: 68px;
  max-width: none;
}
.recovery h1 {
  font: var(--error-title);
  max-width: 90vw;
}
.community-entry {
  scroll-margin-top: 1rem;
}
button:disabled {
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
:root {
  --join-ground: #f5ebce;
  --join-input: #f5ebce;
  --join-ink: #342a25;
  --join-primary: #713c51;
  --join-on-primary: #fff4d9;
  --join-bar: #713c51;
  --join-on-bar: #fff4d9;
  --join-frame: 1px solid #342a25;
  --join-field-border: 1px solid #342a25;
  --join-action-border: 1px solid #713c51;
  --join-shadow: 0 14px 50px #0005;
  --join-tint: #dbebcd;
  --join-focus: #342a25;
  --join-font: Georgia, serif;
  --join-heading: 700 22px/1.03 Fraunces, Georgia, serif;
  --join-track: -0.035em;
}
@font-face {
  font-family: Fraunces;
  src: url(/art/fraunces.woff2);
  font-weight: 800;
}
:root {
  --ground: #f4ebd5;
  --ink: #362736;
  --body: Georgia, serif;
  --focus: #0f6470;
  --plum: #64354c;
  --error-title: 800 clamp(52px, 7vw, 115px)/0.95 Fraunces, Georgia;
}
.im-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4.5vw;
  border-bottom: 2px solid #b68c5a;
}
.im-head > a img {
  width: clamp(112px, 14vw, 200px);
}
.topnav a {
  font: bold 16px Georgia;
  color: #523248;
}
.cabin {
  position: relative;
  min-height: 630px;
  height: calc(90svh - 60px);
  max-height: 880px;
  overflow: hidden;
  background: #4d4037;
  isolation: isolate;
}
.cabinphoto {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}
.cabin:after {
  content: "";
  background:
    linear-gradient(90deg, #1e161a88, transparent 64%),
    linear-gradient(0deg, #231b22a0, transparent 46%);
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cabin-title {
  position: absolute;
  top: 8%;
  left: 4.5%;
  width: 42%;
  transform: rotate(-4deg);
  filter: drop-shadow(0 3px 2px #160d19);
}
.cabin-title img {
  width: 100%;
}
.radio {
  position: absolute;
  left: 5.5%;
  bottom: 7%;
  width: min(47%, 660px);
  padding: clamp(12px, 1.3vw, 23px);
  background: linear-gradient(150deg, #e5d6ac, #b49b77);
  border: 3px solid #563e37;
  border-radius: 25px 25px 17px 17px;
  box-shadow:
    inset 1px 3px #fff7d6,
    inset 0 -5px #957851,
    0 12px 22px #1f131abc;
}
.radio:before {
  content: "";
  width: 42%;
  height: 24px;
  border: 8px solid #473937;
  border-bottom: none;
  border-radius: 15px 15px 0 0;
  position: absolute;
  bottom: 100%;
  left: 28%;
  box-shadow: inset 1px 1px #b59978;
}
.receiver-rim {
  background: linear-gradient(135deg, #b8d1b2, #88ad99);
  border: 2px solid #686751;
  padding: 12px;
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 16px;
  border-radius: 13px;
}
.perforated {
  background: radial-gradient(
      ellipse,
      #3c4a3c 16%,
      #697e63 24%,
      transparent 35%
    )
    0 0 / 7px 7px;
  border-radius: 10px;
}
.screen {
  min-width: 0;
}
.scale {
  height: 14px;
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    #695f48 0 1px,
    transparent 1px 3%
  );
  border-bottom: 1px solid #605d48;
}
.scale i {
  position: absolute;
  left: 15%;
  background: #962d24;
  width: 3px;
  inset-block: 0;
  transition: left 0.25s;
}
.screen small,
.features small,
.plate h1 {
  font: 700 11px/1.2 monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.screen small {
  display: block;
  margin: 11px 0 3px;
}
.screen h1 {
  font:
    800 clamp(26px, 3.45vw, 57px)/1 Fraunces,
    Georgia;
  letter-spacing: -0.065em;
  color: #392b31;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}
.listen,
.action,
.watch {
  font: bold 16px Georgia;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff6df;
  background: #624052;
  padding: 9px 14px;
  border-radius: 5px;
  min-height: 44px;
}
.dial {
  border-radius: 50%;
  width: 47px;
  height: 47px;
  box-shadow:
    0 3px 3px #352a27aa,
    inset 0 1px 2px white;
  background: conic-gradient(#c0b191, #f6efd6, #b6a286, #f5efd5, #c0b191);
  border: 2px solid #594d41;
  position: relative;
}
.dial:after {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 12px;
  background: #653747;
  transform-origin: 2px 17px;
  transform: rotate(var(--angle, -45deg));
  transition: transform 0.25s;
}
.presets {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.preset {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #7e6a59;
  box-shadow: 0 3px 0 #765f50;
  color: #392e29;
  background: #f1e7cb;
  font: bold clamp(11px, 1vw, 16px)/1.05 Georgia;
  text-align: left;
  min-height: 44px;
}
.preset[aria-pressed="true"] {
  background: #5e384a;
  color: #fff0d6;
  box-shadow: inset 0 2px 3px #341e29;
}
.preset img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1600px;
  margin: auto;
}
.features a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 5vw;
  border-bottom: 1px solid #ba9d77;
}
.features a + a {
  border-left: 1px solid #ba9d77;
}
.features img {
  width: 72px;
  height: 72px;
  transform: rotate(-5deg);
  box-shadow: 1px 3px 5px #604a3a44;
}
.features strong {
  display: block;
  font:
    800 clamp(23px, 2.4vw, 43px)/1.05 Fraunces,
    Georgia;
}
.features a > .glyph {
  margin-left: auto;
}
.puzzlepage {
  min-height: 80svh;
  max-width: 1250px;
  margin: auto;
  padding: 5vw;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  align-items: center;
}
.p-intro h1 {
  font:
    800 clamp(58px, 8vw, 140px)/0.83 Fraunces,
    Georgia;
  letter-spacing: -0.08em;
}
.p-intro h1 em {
  color: #a23b2c;
}
.p-intro p {
  font-size: 19px;
  line-height: 1.4;
  max-width: 245px;
  margin: 20px 0;
}
.roundIcon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #8b6a4d;
  border-radius: 50%;
  color: #8d422e;
  margin-bottom: 16px;
}
.game {
  min-width: 0;
}
.sliders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1;
  border: 9px solid #fff4dd;
  box-shadow: 0 3px 16px #624a3650;
  transform: rotate(1deg);
  position: relative;
}
.piece {
  padding: 0;
  border: 0;
  position: relative;
  background: #aad2ae url(/art/love-is-blind.webp) var(--column) 0 / 300% 100%
    repeat-y;
  box-shadow: inset -1px 0 #342d2399;
}
.piece:after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-position-x: var(--column);
  background-position-y: 0;
  transform: none;
  background-size: 300% 100%;
  background-image: url(/art/love-is-blind.webp);
  background-repeat: repeat-y;
  pointer-events: none;
  background-position-y: calc(var(--slide) * 1);
  background-position-y: var(--offset, 0px);
}
.piece:focus-visible {
  z-index: 1;
  outline-offset: -4px;
}
.sr {
  clip-path: inset(50%);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gamefoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-top: 12px;
}
.gamefoot button {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #725746;
  border-radius: 4px;
  background: #f8eed4;
  color: #362736;
}
.watch {
  margin-top: 8px;
}
.solved .sliders {
  outline: 3px solid #50855e;
}
.ianlib {
  max-width: 610px;
  padding: 24px 5vw 45px;
  margin: auto;
}
.plate {
  padding: 14px 6px 18px;
  text-align: center;
}
.plate img {
  max-width: 270px;
  width: 72%;
  margin: auto;
}
.plate h1 {
  margin-top: 8px;
}
.librow {
  font-size: 19px;
  font-weight: bold;
  border-top: 1px solid #b99a74;
}
.librow .glyph {
  color: #7c404c;
}
.ianlib .community-entry {
  margin-top: 15px;
}
@media (max-width: 730px) {
  .im-head {
    padding: 4px 13px;
  }
  .im-head > a img {
    width: 106px;
  }
  .topnav {
    gap: 13px;
  }
  .topnav a {
    font-size: 15px;
  }
  .topnav .glyph {
    display: none;
  }
  .cabin {
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px 22px;
  }
  .cabinphoto {
    object-position: 64% 35%;
  }
  .cabin-title {
    left: 6%;
    top: 6%;
    width: 65%;
  }
  .radio {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 500px);
    padding: 11px;
  }
  .radio:before {
    height: 14px;
    border-width: 6px;
  }
  .receiver-rim {
    grid-template-columns: 17% 1fr;
    gap: 10px;
    padding: 9px;
  }
  .screen h1 {
    font-size: 30px;
  }
  .screen small {
    margin: 6px 0 3px;
  }
  .controls {
    margin-top: 4px;
  }
  .preset {
    font-size: 12px;
    gap: 3px;
  }
  .preset img {
    width: 25px;
    height: 25px;
  }
  .presets {
    gap: 4px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .features a {
    padding: 14px 6vw;
  }
  .features a + a {
    border-left: 0;
  }
  .features img {
    width: 50px;
    height: 50px;
  }
  .puzzlepage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    padding: 22px 6vw;
  }
  .p-intro {
    position: relative;
  }
  .roundIcon {
    display: none;
  }
  .p-intro h1 {
    font-size: clamp(40px, 12vw, 66px);
  }
  .p-intro h1 br {
    display: none;
  }
  .p-intro h1 em:before {
    content: " ";
  }
  .p-intro p {
    font-size: 16px;
    margin: 12px 0;
  }
  .p-intro .action {
    position: absolute;
    bottom: 0;
    right: 0;
    min-height: 36px;
    padding: 5px 9px;
    font-size: 13px;
  }
  .p-intro p {
    max-width: 66%;
  }
  .ianlib {
    padding-top: 12px;
  }
  .ianlib .librow {
    min-height: 48px;
  }
}
@media (max-height: 660px) and (max-width: 730px) {
  .cabin {
    min-height: 510px;
  }
  .cabin-title {
    top: 5%;
  }
}
