/* Birthday landing page V4 | responsive, accessible SVG icons */

:root {
  --font-main: "Lexend", "Segoe UI", Arial, sans-serif;
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif;
  --ink: #263e34;
  --green: #315f4b;
  --pink: #d64468;
  --soft: #fff0f2;
  --cream: #fffaf1;
  --red: #c83b4e;
  --border: #eed5d7;
  --shadow: 0 20px 70px #a63a4e18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 400;
  min-width: 0;
}

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

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid #b82d54;
  outline-offset: 5px;
}

button {
  border: 0;
}

#snow,#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

#confetti {
  z-index: 15;
}

.top {
  max-width: 1180px;
  margin: auto;
  padding: 26px 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.brand {
  font-weight: 800;
  letter-spacing: -.055em;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  color: var(--pink);
  font-size: 33px;
  line-height: 1;
}

.sound {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff9f8;
  color: var(--green);
  border: 1px solid var(--border);
  padding: 11px 15px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.equalizer {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.equalizer i {
  width: 3px;
  height: 4px;
  background: currentColor;
  border-radius: 8px;
}

.equalizer i:nth-child(2) {
  height: 9px;
}

.equalizer i:nth-child(3) {
  height: 14px;
}

.equalizer i:nth-child(4) {
  height: 7px;
}

.sound[aria-pressed=true] .equalizer i {
  animation: beat .65s alternate infinite;
}

.sound[aria-pressed=true] .equalizer i:nth-child(2) {
  animation-delay: .16s;
}

.sound[aria-pressed=true] .equalizer i:nth-child(3) {
  animation-delay: .31s;
}

@keyframes beat {
  to {
    height: 3px;
  }
}
.wrap {
  max-width: 1080px;
  margin: auto;
  padding-inline: 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: 55px;
  align-items: center;
  min-height: 610px;
  padding-top: 28px;
  padding-bottom: 70px;
}

.eyebrow,.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dot {
  background: var(--pink);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.small-date {
  border-left: 1px solid #d6adae;
  padding-left: 10px;
  color: var(--pink);
}

h1 {
  font-family: var(--font-main);
  font-size: clamp(40px,7vw,96px);
  line-height: 1.1;
  letter-spacing: -.045em;
  margin: 30px 0 20px;
  font-weight: 900;
}

.birthday {
  color: var(--pink);
}

.period {
  color: var(--green);
}

.name {
  font-family: var(--font-accent);
  font-size: clamp(31px,4.6vw,51px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 25px;
  letter-spacing: -.025em;
}

.name span {
  color: var(--pink);
  font-style: normal;
  font-size: .8em;
}

.intro {
  max-width: 440px;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 26px;
  color: #56645b;
}

.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: var(--pink);
  color: white;
  border-radius: 100px;
  padding: 17px 22px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 0 #a72c50;
  transition: transform .2s,box-shadow .2s;
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #a72c50;
}

.primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #a72c50;
}

.secondary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
  padding: 14px 0;
}

.micro {
  font-size: 12px;
  color: #7b6b6b;
  margin-top: 20px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 480px;
}

.orbit {
  position: absolute;
  width: 105%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg,#f9cbd3 0 12px,#fce0e4 12px 24px);
  opacity: .75;
  transform: rotate(-8deg);
}

.photo-card {
  position: relative;
  background: var(--cream);
  padding: 13px 13px 0;
  width: min(84%,345px);
  transform: rotate(5deg);
  box-shadow: 0 20px 38px #98475832;
  border: 1px solid #fff;
  border-radius: 12px;
  z-index: 1;
}

.photo-head {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 9px;
  letter-spacing: .09em;
  font-weight: 800;
  padding: 4px 2px 12px;
}

.photo {
  aspect-ratio: .78;
  overflow: hidden;
  border-radius: 5px;
  background: #315f4b;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.photo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 19px;
  padding: 14px 2px 17px;
  color: var(--pink);
}

.photo-foot span:last-child {
  font-style: normal;
}

.bow {
  position: absolute;
  width: 125px;
  top: 0;
  right: 1%;
  z-index: 3;
  transform: rotate(14deg);
  filter: drop-shadow(0 5px 3px #8d2a3920);
}

.seal {
  position: absolute;
  z-index: 3;
  bottom: 96px;
  left: 0;
  background: var(--green);
  color: #fff8eb;
  border: 5px solid #fff8eb;
  outline: 1px solid var(--green);
  border-radius: 50%;
  width: 112px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  box-shadow: 0 5px 12px #183e4422;
}

.seal span {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .05em;
}

.seal b {
  font-size: 29px;
  letter-spacing: -.06em;
}

.star {
  position: absolute;
  z-index: 2;
  color: #d39b50;
  font-size: 50px;
  line-height: 1;
}

.star-a {
  top: 5%;
  left: 1%;
  font-size: 60px;
}

.star-b {
  bottom: 8%;
  right: -1%;
}

.star-c {
  top: 45%;
  right: -3%;
  font-size: 30px;
  color: #a94a66;
}

.ticker {
  background: var(--green);
  color: #fff8eb;
  overflow: hidden;
  padding: 15px 0;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.ticker div {
  width: max-content;
  animation: marquee 34s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-40%);
  }
}
.wish-section {
  padding-top: 83px;
  padding-bottom: 70px;
}

.section-label {
  color: #8d585f;
  margin-bottom: 19px;
}

.wish-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(25px,6vw,65px);
  background: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wish-card:after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -95px;
  width: 240px;
  height: 240px;
  border: 25px solid #f7d6dd;
  border-radius: 50%;
  pointer-events: none;
}

.wish-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.pill {
  display: inline-block;
  border-radius: 40px;
  padding: 9px 15px;
  background: #f8d9e0;
  color: #a33553;
  font-size: 12px;
  font-weight: bold;
}

.stamp {
  display: grid;
  place-items: center;
  text-align: center;
  background: #f3d1d9;
  color: var(--pink);
  font-size: 34px;
  line-height: .8;
  padding: 14px 11px;
  transform: rotate(10deg);
  border: 3px dotted #fffaf1;
}

.stamp small {
  font-size: 9px;
  letter-spacing: .15em;
  margin-top: 7px;
}

.wish-teaser {
  font-family: var(--font-accent);
  font-size: clamp(25px,4.5vw,40px);
  line-height: 1.35;
  max-width: 650px;
  margin: 24px 0 32px;
}

.wish-card h2,.party h2 {
  font-size: clamp(34px,5.8vw,70px);
  line-height: 1.17;
  letter-spacing: -.06em;
  margin: 24px 0;
}

.wish-card h2 em,.party h2 em {
  font-family: var(--font-accent);
  color: var(--pink);
  font-weight: 600;
}

.punchline {
  font-size: clamp(23px,4.2vw,42px);
  line-height: 1.3;
  margin: 24px 0;
  color: var(--green);
  font-weight: 600;
  letter-spacing: -.045em;
}

.sincere {
  line-height: 1.8;
  color: #59665b;
  max-width: 650px;
  font-size: 16px;
  margin: 24px 0 28px;
}

.green {
  background: var(--green);
  box-shadow: 0 5px 0 #1c4031;
  position: relative;
  z-index: 1;
}

.green:hover {
  box-shadow: 0 8px 0 #1c4031;
}

.green:active {
  box-shadow: 0 1px 0 #1c4031;
}

.signature {
  font: italic 21px var(--font-accent);
  color: #9d4760;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.party {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.78fr);
  gap: 90px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 90px;
}

.party h2 {
  margin: 18px 0;
}

.party p {
  color: #59665b;
  line-height: 1.6;
  font-size: 16px;
}

.details {
  margin: 25px 0;
}

.detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #f8dce2;
  border-radius: 50%;
  font-size: 28px;
  color: var(--pink);
}

.detail small,.detail b {
  display: block;
}

.detail small {
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 800;
  color: #8d585f;
  margin-bottom: 7px;
}

.detail b {
  font-size: 19px;
}

.outline {
  border: 1px solid #a8b5a4;
  background: transparent;
  border-radius: 40px;
  padding: 12px 17px;
}

.invitation {
  position: relative;
  padding: 9px 9px 38px;
  background: #fffaf1;
  border-radius: 12px;
  transform: rotate(3deg);
  box-shadow: var(--shadow);
  width: min(100%,310px);
  justify-self: center;
  transition: transform .2s;
}

.invitation:hover {
  transform: rotate(0);
}

.invitation img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.invitation span {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  font-size: 12px;
  font-weight: bold;
  color: var(--green);
}

footer {
  text-align: center;
  background: var(--green);
  padding: 35px 20px 40px;
  color: #fff9ed;
}

footer>span {
  font-size: 34px;
  color: #fbc7d1;
}

footer p {
  font: italic 16px var(--font-accent);
  line-height: 1.6;
}

footer small {
  font-size: 10px;
  letter-spacing: .15em;
  opacity: .75;
}

dialog {
  background: #fffaf1;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  max-width: 92vw;
  max-height: 94dvh;
  overflow: visible;
}

dialog::backdrop {
  background: #263e34bb;
  backdrop-filter: blur(5px);
}

dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(94dvh - 24px);
  border-radius: 6px;
  object-fit: contain;
}

.close {
  position: absolute;
  right: -10px;
  top: -10px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  width: 38px;
  height: 38px;
  font-size: 26px;
  line-height: 1;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  max-width: 90%;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.notice.show {
  opacity: 1;
}

.reveal-in {
  animation: reveal .6s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fluid layout: the headline is sized to its actual column, not the viewport. */
.hero-copy, .party-copy, .detail > div { min-width: 0; }
.hero-copy { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .hero-copy h1 { font-size: clamp(38px, 21cqi, 106px); }
}
.birthday { white-space: nowrap; }
.intro { font-weight: 400; line-height: 1.8; }
.primary, .secondary { font-weight: 600; min-height: 44px; }
.primary { max-width: 100%; text-align: center; }
.primary:hover { transform: translateY(-2px); }
.wish-card h2, .party h2 { font-weight: 800; overflow-wrap: anywhere; }
.wish-card { isolation: isolate; }
.wish-card:focus-within { outline-offset: 3px; }
.wish-card::after { z-index: -1; }
.punchline, .sincere, .signature, .detail b { overflow-wrap: anywhere; }
.detail-icon { flex: 0 0 46px; }
.detail { align-items: center; }
.photo img { display: block; }
.photo-foot { gap: 8px; }
.hero-art { padding-block: 18px; }
.orbit { max-width: 100%; }
.star-b { right: 1%; }
.star-c { right: 0; }
.invitation { max-width: calc(100% - 24px); }
.invitation img { height: auto; }
.ticker { max-width: 100%; }
.ticker div { padding-left: 10px; }
footer { padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 18px)); }
.notice { bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); text-align: center; }
/* Vector icons do not depend on the Latin/Vietnamese font glyphs. */
.icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.12em; }
.name .icon { color: var(--pink); width: .65em; height: .65em; }
.photo-foot .icon { width: 1em; height: 1em; fill: currentColor; }
.detail-icon .icon { width: 25px; height: 25px; }
.stamp { line-height: 1; }
.stamp br { display: none; }
.stamp .icon { width: 31px; height: 31px; }
.signature .icon { width: .8em; height: .8em; }
footer > .icon { color: #fbc7d1; width: 33px; height: 33px; }
.ticker .icon { vertical-align: -.15em; }
.invitation > span .icon { vertical-align: -.12em; }
.emoji { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.13em; }
.emoji svg { width: 100%; height: 100%; display: block; }
/* Dialog always fits the visual viewport, including short landscape screens. */
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 8px;
  padding-top: 52px;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog img {
  width: auto;
  height: auto;
  max-width: min(100%, 500px);
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}
.close {
  right: 7px;
  top: 5px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.close .icon { width: 23px; height: 23px; }
body.poster-open { overflow: hidden; }

@media (max-width: 900px) {
  .top { padding: 20px 25px; }
  .wrap { padding-inline: 25px; }
  .hero { gap: 26px; min-height: auto; padding-top: 26px; padding-bottom: 50px; }
  .hero-art { min-height: 345px; }
  .photo-card { width: 82%; }
  .bow { width: 95px; }
  .seal { width: 90px; bottom: 72px; }
  .seal b { font-size: 23px; }
  .party { gap: 40px; }
  .actions { gap: 14px; }
}
@media (max-width: 720px) {
  .top { padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); }
  .wrap { padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right)); }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-top: 18px; padding-bottom: 36px; }
  .hero-copy h1 { margin: 22px 0 17px; font-size: clamp(40px, 13.3vw, 82px); }
  @supports (font-size: 1cqi) { .hero-copy h1 { font-size: clamp(38px, 21cqi, 96px); } }
  .name { font-size: clamp(26px, 7.3vw, 43px); margin-bottom: 17px; }
  .intro { font-size: 16px; margin-bottom: 18px; }
  .hero-art { min-height: 0; padding: 27px 0 23px; width: min(100%, 390px); align-self: center; }
  .orbit { width: 90%; }
  .photo-card { width: 70%; }
  .bow { top: 3px; right: 7%; width: clamp(72px, 24vw, 102px); }
  .seal { bottom: 65px; left: 4%; }
  .star-a { left: 3%; font-size: 43px; }
  .star-b { right: 2%; font-size: 40px; }
  .star-c { right: 1%; }
  .wish-section { padding-top: 49px; padding-bottom: 43px; }
  .wish-card { border-radius: 22px; padding: clamp(19px, 5vw, 32px); }
  .wish-card h2, .party h2 { font-size: clamp(34px, 8.7vw, 56px); letter-spacing: -.045em; }
  .wish-card::after { opacity: .5; }
  .party { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-top: 15px; padding-bottom: 55px; }
  .invitation { align-self: center; width: min(80%, 310px); }
  .ticker { font-size: 11px; padding: 12px 0; }
  .actions { gap: 12px; }
  .primary { font-size: 14px; padding: 14px 16px; }
  .secondary { font-size: 13px; }
  .eyebrow { font-size: 10px; letter-spacing: .11em; flex-wrap: wrap; }
  .section-label { font-size: 10px; letter-spacing: .12em; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 17px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 5px; }
  .photo-head { font-size: 8px; letter-spacing: .035em; }
  .photo-foot { font-size: 15px; }
  .seal { width: 75px; }
  .seal span { font-size: 8px; }
  .seal b { font-size: 19px; }
  .wish-top { gap: 9px; }
  .detail b { font-size: 17px; }
}
@media (max-height: 560px) and (min-width: 721px) {
  .hero { min-height: 0; padding-top: 10px; }
  .hero-art { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #snow,#confetti { display: none; }
}
