@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffbed;
  --ink: #28231e;
  --muted: #57493b;
  --accent: #f4c944;
  --wash: #fff1bf;
  --outline: #d3c19f;
  --leaf: #465138;
  --butter: #fff09a;
  --coral: #ff8469;
  --sky: #a9dbe6;
  --pink: #ffc7d4;
  --red: #a33224;
  --shell: min(1200px, calc(100% - 108px));
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  translate: 0 -160%;
}
.skip-link:focus { translate: 0 0; }


.wordmark {
  display: inline-block;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.075em;
  text-decoration: none;
}
.wordmark span { color: var(--red); margin-inline-start: .035em; }

/* Give the wordmark a distinct full stop at every screen size. */
.dysto-home .brand-period {
  display: inline-block;
  width: .18em;
  height: .18em;
  margin-inline-start: .065em;
  overflow: hidden;
  border-radius: 50%;
  background: var(--red);
  color: transparent;
}
@media (forced-colors: active) {
  .dysto-home .brand-period { background: LinkText; forced-color-adjust: none; }
}

.studio-hero {
  overflow: clip;
  background: var(--butter);
  border-bottom: 2px solid var(--ink);
  padding-block: clamp(8px, 1.3vw, 20px) clamp(35px, 4vw, 56px);
}
.studio-scene {
  position: relative;
  display: grid;
  isolation: isolate;
  place-items: center;
  min-height: clamp(365px, 33vw, 450px);
  scroll-margin-top: 16px;
}
.studio-scene:focus { outline: 0; }
.flight-trails, .question-flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flight-trails { z-index: -3; }
.question-flight { z-index: -1; visibility: hidden; }
.studio-scene[data-scene-ready] .question-flight { visibility: visible; }
.question-flight > span {
  position: absolute;
  top: 0;
  left: 0;
  width: min(200px, 39vw);
  text-align: center;
  font-size: clamp(.85rem, 1.3vw, 1.05rem);
  font-weight: 800;
  line-height: 1.19;
  color: var(--ink);
  transform-origin: center;
  will-change: transform, opacity;
}
.question-word { color: #664b35; }
.question-word.is-read { color: var(--ink); }
.question-word.is-reading { color: var(--red); text-shadow: 0 0 .32em #fffcdf; }

.scene-star {
  position: absolute;
  z-index: -2;
  width: clamp(26px, 5vw, 63px);
  aspect-ratio: 1;
  clip-path: polygon(50% 0,60% 30%,86% 12%,77% 42%,100% 48%,75% 60%,88% 88%,59% 74%,50% 100%,40% 73%,11% 87%,23% 59%,0 50%,25% 40%,13% 13%,40% 28%);
}
.scene-star--coral { left: 11%; top: 29%; background: var(--coral); rotate: -7deg; }
.scene-star--sky { right: 13%; top: 2%; background: #5699ac; rotate: 14deg; width: clamp(23px, 4.2vw, 54px); }

.hero-copy {
  width: min(66%, 710px);
  min-width: 0;
  align-self: center;
  padding-block: 12px 16px;
  text-align: center;
}
.hero-headline {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 4.35rem);
  font-weight: 925;
  line-height: 1.02;
  letter-spacing: -.072em;
}
.headline-lead { display: block; text-wrap: balance; }
.recipient-window {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1.17em;
  margin: .04em auto .065em;
  font-size: clamp(2.8rem, 7.8vw, 7.65rem);
  font-weight: 920;
  line-height: 1.17;
  letter-spacing: -.075em;
}
.recipient-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--red); white-space: nowrap; }
.recipient-word--next { opacity: 0; translate: 0 100%; }

.studio-scene.scene-enter .hero-headline { animation: arrive 450ms ease 115ms both; }
.studio-scene.scene-enter .shop-actions { animation: arrive 440ms ease 240ms both; }
@keyframes arrive {
  from { opacity: 0; translate: 0 9px; }
  to { opacity: 1; translate: 0 0; }
}

.shop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(10px, 1.7vw, 20px);
}
.shop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 21px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font-weight: 850;
  white-space: nowrap;
  transition: translate .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.shop-action:hover { translate: 0 -2px; box-shadow: 3px 5px 0 var(--ink); }
.shop-action:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.shop-action--primary { background: var(--coral); }
.shop-action--primary:hover { background: #ff9d87; }
.hero-copy .shop-action { min-height: 56px; padding-inline: clamp(18px, 2.5vw, 35px); font-size: 1.08rem; }

.motion-control {
  display: block;
  margin: 0 0 0 auto;
  min-height: 36px;
  padding: 5px 8px;
  border: 0;
  background: var(--butter);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}
.motion-control[hidden] { display: none; }
.motion-control:not([hidden]) + .studio-shelf { margin-top: .5rem; }

.studio-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
  margin-top: clamp(26px, 2.9vw, 44px);
}
.studio-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px 7px;
  min-width: 0;
  padding: clamp(10px, 1.3vw, 20px);
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--ticket);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.studio-tile > .guide-cover { display:block; grid-column:1/-1; width:100%; height:auto; aspect-ratio:1.85; object-fit:cover; border-radius:var(--cut); }
.tile-coffee { --ticket: #ffab90; --cut:46% 46% 2% 2% / 68% 68% 2% 2%; }
.tile-garden { --ticket: var(--sky); --cut:50%; }
.tile-trail { --ticket: #fffce9; --cut:24% 7% 24% 7%; }
.tile-dinner { --ticket: var(--pink); --cut:6% 32% 6% 32%; }

.studio-tile-title { font-size: clamp(1rem, 1.62vw, 1.43rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.12; }
.studio-tile-price { justify-self: end; font-size: .875rem; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .studio-tile:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }

}
.studio-tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.how-section { background: var(--paper); }
.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(30px, 9vw, 142px);
  padding-block: clamp(45px, 7.5vw, 100px);
}
.how-layout.how-enter > * { animation: arrive 520ms ease-out both; }
.how-layout.how-enter > .how-steps { animation-delay: 110ms; }
.how-layout h2 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 6vw, 6rem);
  letter-spacing: -.082em;
  line-height: .95;
  margin: 0;
}
.how-steps article { border-top: 1px solid #a18c68; padding: 15px 0 18px; }
.how-steps h3 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); margin: 0 0 4px; letter-spacing: -.045em; }
.how-steps p { color: var(--muted); margin: 0; max-width: 38ch; line-height: 1.5; }
.how-start { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; padding-bottom: clamp(38px, 6vw, 84px); }
.how-section .how-layout { padding-bottom: clamp(18px, 3vw, 38px); }
.how-start .shop-action { gap: 18px; min-height: 62px; padding-inline: clamp(21px, 3vw, 38px); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.dysto-home .brief-why {
  --font-display: "DM Sans", system-ui, sans-serif;
  margin-block: 0 clamp(42px, 6.8vw, 88px);
  scroll-margin-top: 16px;
}
@media (max-width: 560px) {
  .hero-copy .shop-action { font-size: .96rem; min-height: 50px; padding-inline: 14px; }
}

.footer-link { font-weight: 750; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .studio-tile { grid-template-columns: 1fr; gap: 6px; }
  .studio-tile-price { justify-self: start; }
}

@media (max-width: 840px) {
  :root { --shell: calc(100% - 56px); }
  .scene-star--coral { left: 6%; }
  .scene-star--sky { right: 9%; }
  .studio-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 740px) {
  .hero-copy { width: 100%; }
  .question-flight > span:nth-child(n+5) { display: none; }
  .scene-star--coral { top: 3px; left: 2%; width: 19px; }
  .scene-star--sky { top: 2px; right: 4%; width: 17px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 34px); }
  .studio-scene { min-height: 424px; }
  .hero-headline { font-size: clamp(2.25rem, 8.6vw, 3.1rem); }
  .recipient-window { font-size: clamp(2.5rem, 9.3vw, 3.6rem); }
  .shop-actions { gap: 9px; }
  .shop-action { padding-inline: 13px; min-height: 45px; font-size: .88rem; }
  .studio-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 5px; }

  .studio-tile { padding: 10px; }
  .how-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-scene.scene-enter .hero-headline, .studio-scene.scene-enter .shop-actions, .how-layout.how-enter > * { animation: none; }
  .shop-action, .studio-tile { transition: none; }
  .shop-action:hover { translate: none; }
  .studio-tile { transition: none; }
  .studio-tile:hover, .studio-tile:active { transform: none; }
}
.home-beta-note { font-size:.8rem; line-height:1.4; max-width:33rem; margin:.75rem 0 0; }
.home-beta-note a { color:inherit; }
