:root {
  color-scheme: light;
  --pearl: #faf9f6;
  --paper: #fff;
  --ink: #252626;
  --charcoal: #222;
  --muted: #626562;
  --coral: #f3b6a6;
  --line: #dedfda;
  --ease: cubic-bezier(.2, .7, .3, 1);
  font: 100%/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse 29rem 24rem at 50% -7rem, #f5ddd4 0%, transparent 100%) var(--pearl); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #985845; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.page { width: min(100% - 2.5rem, 28rem); margin-inline: auto; padding: clamp(1.3rem, 5.3vw, 2.6rem) 0 1.55rem; }
.identity { text-align: center; }
.icon-lockup { position: relative; isolation: isolate; display: grid; place-items: center; width: 7.25rem; height: 6.75rem; margin-inline: auto; }
.icon-lockup::before, .icon-lockup::after { content: ''; position: absolute; pointer-events: none; }
.icon-lockup::before { z-index: -2; inset: -.7rem -1.45rem; border-radius: 50%; background: radial-gradient(ellipse, #f3b6a65c, transparent 68%); }
.icon-lockup::after { z-index: -1; inset: .48rem .73rem; border: 1px solid #fff9; border-radius: 1.55rem; background: linear-gradient(125deg, #efbfaf65, #fff9 45%, #f1bfad6b); background-size: 190% 100%; box-shadow: 0 .1rem .75rem #8d514817; }
.app-icon { width: 4.75rem; height: 4.75rem; border-radius: 1.12rem; box-shadow: 0 .48rem 1.25rem #241b1826, 0 .12rem .35rem #241b1817; }
.identity h1 { margin-top: .27rem; font-size: clamp(1.9rem, 7.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 730; }
.identity p { margin-top: .36rem; color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .52rem; margin: 1rem auto 1.1rem; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #e5e0da; border-radius: 50%; background: #fffdf9; color: var(--ink); }
.socials svg { width: 1.125rem; height: 1.125rem; }
.download-link { display: flex; align-items: center; justify-content: center; gap: .58rem; width: fit-content; min-width: min(14.5rem, 100%); min-height: 3rem; padding: .5rem 1rem; margin-inline: auto; border: 1px solid var(--charcoal); border-radius: 999px; background: var(--charcoal); color: var(--pearl); text-align: center; font-size: .9375rem; font-weight: 675; box-shadow: 0 4px 10px #22222217; }
.download-link svg { width: .96rem; height: 1.05rem; flex: none; }

.featured { margin-top: 1.45rem; }
.section-divider { display: flex; align-items: center; gap: .78rem; margin-bottom: .72rem; color: var(--muted); font-size: .8125rem; font-weight: 670; letter-spacing: .065em; text-transform: uppercase; }
.section-divider::before, .section-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.featured-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 1.125rem; background: var(--paper); box-shadow: 0 4px 15px #3529200c; }
.featured-link img { width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--charcoal); }
.featured-link h3 { padding: .94rem 1rem 1rem; font-size: clamp(1.18rem, 4.9vw, 1.375rem); letter-spacing: -.028em; line-height: 1.25; font-weight: 690; text-wrap: balance; }

.destinations { display: grid; margin-top: 1.1rem; padding: .15rem .7rem; border: 1px solid var(--line); border-radius: 1rem; background: #fffdfb; }
.destination { display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); align-items: center; gap: .73rem; min-height: 3.28rem; padding: .4rem .08rem; font-weight: 630; }
.destination + .destination { border-top: 1px solid #eeebe6; }
.destination:focus-visible { outline-offset: 0; border-radius: .5rem; }
.destination-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .54rem; background: #f2efea; color: #4b4b48; }
.destination-icon svg { width: 1.1rem; height: 1.1rem; }

.footer { margin-top: 1.2rem; padding-top: .25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; text-align: center; }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .95rem; }
.footer a, .footer button { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .32rem; }
.footer button { border: 0; background: none; padding: 0; cursor: pointer; }
.footer button[hidden] { display: none; }
.footer svg { width: .95rem; height: .95rem; }
.copyright { margin-top: .14rem; font-size: .8125rem; }
.footer a:hover, .footer button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2rem; }
.share-status:not(:empty) { position: fixed; bottom: .85rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); padding: .55rem .85rem; border-radius: .65rem; background: var(--charcoal); color: var(--pearl); font-size: .875rem; box-shadow: 0 4px 15px #26262626; }
.share-dialog { width: min(24rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: 1rem; padding: 1.15rem; background: var(--pearl); color: var(--ink); }
.share-dialog::backdrop { background: #2228; }
.share-dialog form { display: grid; gap: .75rem; }
.share-dialog h2 { font-size: 1.125rem; }
.share-dialog input, .share-dialog button { min-width: 0; width: 100%; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .6rem; font: inherit; }
.share-dialog button { background: var(--charcoal); color: var(--pearl); cursor: pointer; }

@media (hover: hover) {
  .socials a:hover { color: #754334; border-color: #ddbbad; background: #fbefe9; }
  .download-link:hover { background: #363635; box-shadow: 0 7px 16px #22222226; }
  .featured-link:hover { border-color: #c9b9af; box-shadow: 0 8px 20px #35292013; }
  .featured-link:hover h3, .destination:hover span:last-child { text-decoration: underline; text-underline-offset: .2em; }
  .destination:hover .destination-icon { background: #fae9df; }
}

@media (prefers-reduced-motion: no-preference) {
  .app-icon { animation: settle 640ms var(--ease) backwards; }
  .icon-lockup::after { animation: glint 960ms var(--ease) backwards; }
  .identity > :is(h1, p) { animation: arise 420ms 80ms var(--ease) backwards; }
  .socials { animation: arise 420ms 145ms var(--ease) backwards; }
  .download-link { animation: arise 420ms 210ms var(--ease) backwards; }
  .socials a, .download-link, .featured-link, .destination-icon { transition: transform 190ms var(--ease), background-color 190ms var(--ease), box-shadow 190ms var(--ease), border-color 190ms var(--ease), color 190ms var(--ease); }
  .waiting { opacity: 0; transform: translateY(.65rem); }
  .arrived { animation: arise 420ms var(--ease) backwards; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .socials a:hover, .download-link:hover, .featured-link:hover { transform: translateY(-2px); }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(-.35rem) scale(.94) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}

@keyframes glint {
  from { opacity: .35; background-position: 100% 50%; }
  to { opacity: 1; background-position: 0 50%; }
}

@keyframes arise {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 350px) {
  .page { width: calc(100% - 2rem); }
  .socials { gap: .45rem; }
}
