@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #513b42;
  --muted: #86656a;
  --rose: #b95767;
  --rose-deep: #974758;
  --cream: rgba(255, 251, 244, .78);
  --line: rgba(126, 76, 83, .22);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: #f4c2ad;
  color: var(--ink);
  font-family: Nunito, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.landing {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  isolation: isolate;
  background: #f4c2ad url("./assets/landing-bg.jpg") center / cover no-repeat;
}

.landing__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 245, 239, .34), rgba(255, 236, 216, .12) 42%, rgba(255, 239, 218, .3)),
    radial-gradient(ellipse at 50% 42%, rgba(255, 250, 240, .2), transparent 62%);
}

.landing__header {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(81, 59, 66, .74);
  font-size: 12px;
  letter-spacing: .08em;
}

.wordmark { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.wordmark__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px rgba(185, 87, 103, .12); }
.edition { opacity: .72; font-family: Georgia, serif; letter-spacing: .04em; }

.landing__hero {
  align-self: center;
  justify-self: center;
  width: min(100% - 40px, 720px);
  padding: 72px 20px 40px;
  text-align: center;
  transition: opacity .8s ease, filter .8s ease, transform .8s ease;
}

.rose-seal {
  width: 45px;
  height: 45px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(151, 71, 88, .3);
  border-radius: 50%;
  color: var(--rose-deep);
  font-size: 17px;
  background: rgba(255, 247, 237, .35);
  box-shadow: 0 9px 24px rgba(151, 71, 88, .08);
}

.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; letter-spacing: .22em; }
h1 { margin: 0; color: #FFB7B2; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(58px, 10vw, 108px); font-weight: 600; line-height: 1.13; letter-spacing: .06em; text-shadow: 0 8px 24px rgba(126, 76, 83, .13); }
.hero-copy { margin: 22px 0 0; color: rgba(81, 59, 66, .76); font-family: "Noto Serif SC", serif; font-size: 15px; letter-spacing: .12em; }

.landing__actions { width: min(100% - 40px, 410px); margin: 0 auto; padding-bottom: 30px; text-align: center; }
.action { border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.action:focus-visible { outline: 3px solid rgba(151, 71, 88, .35); outline-offset: 4px; }
.action:hover { transform: translateY(-2px); }
.action--primary { width: 100%; min-height: 56px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 999px; color: #fffaf7; background: #FFB7B2; box-shadow: 0 13px 28px rgba(151, 71, 88, .24), inset 0 1px 0 rgba(255, 255, 255, .22); font-size: 16px; letter-spacing: .16em; }
.action--primary:hover { background: var(--rose-deep); box-shadow: 0 16px 30px rgba(151, 71, 88, .29), inset 0 1px 0 rgba(255, 255, 255, .24); }
.action__arrow { font-size: 20px; line-height: 1; transition: transform .2s ease; }
.action--primary:hover .action__arrow { transform: translate(2px, -2px); }
.secondary-actions { display: flex; justify-content: center; gap: 28px; margin-top: 15px; }
.action--secondary { padding: 7px 4px; color: var(--muted); background: transparent; border-bottom: 1px solid transparent; font-size: 13px; letter-spacing: .12em; }
.action--secondary:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.landing__footer { padding: 0 20px 23px; color: rgba(81, 59, 66, .55); text-align: center; font-size: 11px; letter-spacing: .16em; }

.petal-stage { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.petal { position: absolute; border-radius: 62% 38% 58% 42% / 58% 42% 58% 42%; opacity: 0; will-change: transform, opacity; animation: petal-drift var(--duration, 1.8s) cubic-bezier(.15, .65, .25, 1) forwards; }
.petal--pink { background: radial-gradient(ellipse at 30% 28%, rgba(255, 225, 220, .96), rgba(224, 105, 121, .7)); }
.petal--rose { background: radial-gradient(ellipse at 30% 28%, rgba(255, 208, 199, .95), rgba(185, 87, 103, .7)); }
.petal--cream { background: radial-gradient(ellipse at 30% 28%, rgba(255, 250, 235, .95), rgba(244, 181, 159, .66)); }
@keyframes petal-drift {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.15); }
  12% { opacity: .96; transform: translate(var(--start-x), var(--start-y)) rotate(35deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--end-x), var(--end-y)) rotate(var(--rotation)) scale(.25); }
}
.is-leaving .landing__hero, .is-leaving .landing__actions, .is-leaving .landing__header, .is-leaving .landing__footer { opacity: 0; filter: blur(9px); transform: translateY(7px) scale(.98); }
.is-leaving .landing__wash { opacity: .24; transition: opacity 1.6s ease; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(81, 59, 66, .2); backdrop-filter: blur(7px); }
.dialog-backdrop[hidden] { display: none; }
.dialog { position: relative; width: min(100%, 430px); padding: 36px 34px 32px; border: 1px solid rgba(151, 71, 88, .18); border-radius: 22px; color: var(--ink); background: rgba(255, 249, 239, .9); box-shadow: 0 24px 70px rgba(110, 64, 66, .2); }
.dialog__close { position: absolute; top: 12px; right: 15px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 25px; line-height: 1; }
.dialog__close:hover { color: var(--rose-deep); background: rgba(185, 87, 103, .1); }
.dialog__kicker { margin: 0 0 9px; color: var(--rose); font-size: 11px; letter-spacing: .2em; }
.dialog h2 { margin: 0 0 17px; font-family: "Noto Serif SC", serif; font-size: 25px; font-weight: 600; }
.dialog p { margin: 0; color: var(--muted); font-family: "Noto Serif SC", serif; font-size: 14px; line-height: 1.9; }

@media (max-width: 600px) {
  .landing__header { width: min(100% - 36px, 1180px); padding-top: 20px; }
  .edition { display: none; }
  .landing__hero { padding-top: 36px; padding-bottom: 24px; }
  .rose-seal { margin-bottom: 17px; }
  .eyebrow { font-size: 11px; letter-spacing: .14em; }
  h1 { font-size: clamp(53px, 17vw, 78px); }
  .hero-copy { margin-top: 16px; font-size: 13px; letter-spacing: .08em; }
  .landing__actions { padding-bottom: 22px; }
  .action--primary { min-height: 54px; font-size: 15px; letter-spacing: .1em; }
  .secondary-actions { gap: 24px; }
  .landing__footer { padding-bottom: 17px; font-size: 10px; letter-spacing: .1em; }
  .dialog { padding: 32px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
