@font-face {
  font-family: DM;
  font-display: swap;
  src: url('assets/DMSans-Regular.ttf');
}
@font-face {
  font-family: DM;
  font-display: swap;
  src: url('assets/DMSans-Bold.ttf');
  font-weight: 700;
}
@font-face {
  font-family: Caveat;
  font-display: swap;
  src: url('assets/Caveat-Regular.ttf');
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #fffdf7;
  color: #302c43;
  font-family: DM, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #5947d7;
  outline-offset: 5px;
}
header,
main,
footer {
  max-width: 1200px;
  margin: auto;
}
header {
  padding: 27px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
nav {
  display: flex;
  gap: 32px;
}
nav a {
  font-size: 14px;
  text-decoration: none;
  padding: 12px 0;
}
.wordmark {
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.dot {
  color: #5947d7;
}
.wordmark .dot {
  font-size: 30px;
  margin-left: 5px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 640px;
  align-items: center;
  padding: 28px 38px 70px;
  gap: 36px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #69566f;
  margin: 0 0 22px;
}
h1 {
  font-size: clamp(48px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -3.8px;
  margin: 0 0 28px;
}
h2 {
  font-size: clamp(36px, 4vw, 51px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 0 0 28px;
}
.lead {
  font-size: 21px;
  line-height: 1.6;
  max-width: 380px;
}
.description {
  max-width: 355px;
  color: #69566f;
  margin-bottom: 27px;
}
.button {
  background: #5947d7;
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  background: #4434b5;
}
.status,
.reference {
  font-size: 12px;
  color: #69566f;
}
.status {
  margin-top: 16px;
}
.photos {
  position: relative;
  height: 500px;
}
.print {
  background: white;
  padding: 12px 12px 5px;
  box-shadow: 0 8px 28px #302c4312;
  border: 1px solid #eee9e2;
  margin: 0;
}
.print img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.print figcaption {
  font-family: Caveat, cursive;
  font-size: 25px;
  text-align: center;
  line-height: 1.4;
  padding: 12px 0;
}
.sky {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 69%;
  transform: rotate(5deg);
}
.sky img {
  height: 300px;
}
.coffee {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: 53%;
  transform: rotate(-7deg);
}
.coffee img {
  height: 175px;
}
.margin-note {
  position: absolute;
  right: 0;
  bottom: 68px;
  font: 26px Caveat, cursive;
  transform: rotate(6deg);
  max-width: 125px;
}
.photos > .reference {
  position: absolute;
  bottom: -24px;
  right: 0;
}
.ordinary {
  padding: 80px 60px;
  border-top: 1px solid #dfd2e4;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.split p {
  max-width: 440px;
}
.large-copy {
  font-size: 23px;
  line-height: 1.6;
  margin-top: 0;
}
.play {
  padding: 50px 100px 100px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 100px;
}
.cat {
  transform: rotate(-4deg);
}
.cat img {
  height: 330px;
}
.hand {
  font-family: Caveat, cursive;
  font-size: 29px;
  color: #69566f;
}
.adventure {
  padding: 65px 38px;
  background: #f2ecf7;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  border-radius: 18px;
  margin: 0 20px;
}
.invitation {
  background: #fffdf7;
  padding: 28px;
  border-radius: 4px;
  border-top: 5px solid #dfd2e4;
}
.ticket-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #69566f;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices button {
  border: 1px solid #dfd2e4;
  border-radius: 20px;
  background: transparent;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13px;
  color: #302c43;
}
.choices button[aria-pressed='true'] {
  background: #5947d7;
  color: white;
  border-color: #5947d7;
}
h3 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 24px 0 12px;
}
#prompt {
  min-height: 150px;
}
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.text-button {
  color: #5947d7;
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
}
#finish {
  background: #f4f4da;
  color: #62683b;
  padding: 15px;
  border-radius: 5px;
}
.closing {
  text-align: center;
  padding: 90px 24px;
}
.closing h2 {
  font-size: clamp(36px, 4vw, 52px);
}
footer {
  border-top: 1px solid #dfd2e4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 30px 38px;
  font-size: 13px;
}
footer > span {
  flex-basis: 100%;
  font-size: 12px;
  color: #69566f;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #fffdf7;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.legal {
  padding: 50px 25px;
  max-width: 800px;
}
.legal h1 {
  font-size: 48px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  header {
    padding: 20px 24px;
  }
  nav a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 24px 55px;
    gap: 28px;
  }
  h1 {
    letter-spacing: -2.5px;
  }
  .intro {
    max-width: 500px;
  }
  .photos {
    height: 440px;
    max-width: 440px;
    width: 100%;
    margin: auto;
  }
  .sky img {
    height: 265px;
  }
  .coffee img {
    height: 150px;
  }
  .ordinary {
    padding: 50px 24px;
  }
  .split,
  .play,
  .adventure {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .play {
    padding: 25px 35px 60px;
  }
  .cat {
    max-width: 300px;
    margin: 0 auto 24px;
  }
  .cat img {
    height: 270px;
  }
  .adventure {
    padding: 36px 22px;
    margin: 0 12px;
  }
  .invitation {
    padding: 20px;
  }
  .closing {
    padding: 60px 24px;
  }
  footer {
    padding: 25px;
  }
  .margin-note {
    font-size: 24px;
    max-width: 100px;
  }
  .photos > .reference {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 380px) {
  .photos {
    height: 390px;
  }
  .sky img {
    height: 220px;
  }
  .coffee img {
    height: 130px;
  }
  header {
    gap: 12px;
  }
  nav a {
    font-size: 12px;
  }
  .margin-note {
    display: none;
  }
}

.margin-note {
  display: none;
}
.sky img {
  height: 240px;
}
.coffee {
  bottom: 0;
}
.photos > .reference {
  bottom: -38px;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
button,
a {
  touch-action: manipulation;
}
a:hover {
  color: #5947d7;
}
a.button:hover {
  color: #fff;
}
.choices button:hover {
  border-color: #5947d7;
}
@media (max-width: 760px) {
  .sky img {
    height: 210px;
  }
  .coffee {
    bottom: 0;
  }
}
@media (max-width: 380px) {
  .sky img {
    height: 180px;
  }
}
/* Keep both handwritten captions readable in the overlapping print composition. */
.sky { z-index: 2; }
