@font-face {
  font-family: "Hakgyoansim Dunggeunmiso";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/HakgyoansimDunggeunmiso@0c17c9a46e58e25ad8a44cfa1076fa4c3bc8c264/HakgyoansimDunggeunmiso-B.woff2")
    format("woff2");
}
:root {
  color-scheme: light;
  --paper: #fff8eb;
  --ink: #253044;
  --muted: #4b5665;
  --red: #d83748;
  --blue: #4169c5;
  --yellow: #ffda68;
  --pink: #ffd7d9;
  --green: #a8d793;
  --content-width: 70rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --card-padding: clamp(1.25rem, 3vw, 2rem);
  --section-gap: clamp(3rem, 6vw, 5rem);
  --section-title: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  --display:
    "Hakgyoansim Dunggeunmiso", "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  --body:
    "Pretendard Variable", system-ui, -apple-system, "Apple SD Gothic Neo",
    sans-serif;
  --hanja: "Noto Serif CJK KR", "AppleMyungjo", "Batang", serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.7 var(--body);
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
main {
  flex: 1;
  min-width: 0;
}
h1,
h2,
p,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
main:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}
[hidden],
.js-only[hidden] {
  display: none !important;
}
.wrap,
.site-header__inner {
  width: min(calc(100% - var(--gutter) * 2), var(--content-width));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--ink);
  background: #fffdf5;
}
.site-header__inner {
  min-height: 4.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 1.35rem/1.2 var(--display);
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 2px 2px 0 var(--yellow);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a[aria-current="page"] {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}
.eyebrow {
  color: #3155a6;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: var(--section-title);
  line-height: 1.3;
}
.section-space {
  padding-block: var(--section-gap);
}
.section-space .eyebrow {
  margin-bottom: 0.75rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.85rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.text-link > span,
.site-footer a > span {
  flex-shrink: 0;
}
.text-link:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}
@media (hover: hover) and (pointer: fine) {
  .text-link,
  .gallery-photo,
  .site-header a {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }
  .text-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .gallery-photo:hover {
    transform: translateY(-3px);
  }
  .site-header a:hover,
  .site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}
/* The cover illustration uses only cut-paper CSS shapes, never photographs. */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(90deg, #fff 1px, transparent 1px),
    linear-gradient(#fff 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  pointer-events: none;
}
.home-hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-block: var(--section-gap);
}
.home-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.home-hero .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: #fffdf5;
}
.home-hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  line-height: 1.15;
}
.home-hero h1 span {
  display: inline-block;
  max-width: 100%;
  color: var(--blue);
  text-shadow: 3px 3px 0 #fffdf5;
}
.home-hero__intro {
  max-width: 27rem;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 400;
}
.age-section {
  padding-top: var(--section-gap);
  background: #fffdf5;
}
.age-counter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label display";
  align-items: center;
  gap: 0.4rem 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: #e7effc;
  box-shadow: 4px 4px 0 var(--blue);
}
.age-counter__label {
  grid-area: label;
  font: 700 1.25rem/1.4 var(--display);
}
.age-counter__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.age-counter__display {
  grid-area: display;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
.age-counter__prefix {
  color: var(--red);
  font: 700 2rem/1 var(--display);
}
.age-counter__digits {
  display: flex;
  gap: 0.375rem;
  max-width: 100%;
}
.age-digit {
  --digit-height: 4rem;
  position: relative;
  flex: 0 1 3rem;
  width: 3rem;
  min-width: 0;
  height: var(--digit-height);
  border: 1px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--paper);
  box-shadow: 0 2px 0 var(--ink);
  perspective: 16rem;
  container-type: inline-size;
  font: 700 2.5rem/var(--digit-height) var(--body);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.age-digit::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #25304440;
  pointer-events: none;
}
.age-digit__half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: #f5eddd;
  backface-visibility: hidden;
}
.age-digit__half > span {
  display: block;
  height: 200%;
  font-size: min(2.5rem, 90cqw);
  line-height: calc(var(--digit-height) - 2px);
}
.age-digit__half--top {
  top: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  transform-origin: center bottom;
}
.age-digit__half--bottom {
  bottom: 0;
  border-radius: 0 0 0.35rem 0.35rem;
  background: var(--paper);
  transform-origin: center top;
}
.age-digit__half--bottom > span {
  transform: translateY(-50%);
}
.age-digit__flap {
  z-index: 2;
}
.age-counter noscript {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
@media (max-width: 36rem) {
  .age-counter {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "display";
    justify-items: center;
    gap: 1rem;
    text-align: center;
  }
}
.home-hero__art {
  position: relative;
  width: min(100%, 29rem);
  aspect-ratio: 1.35;
  justify-self: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 42% 58% / 48% 43% 57% 52%;
  background: #bcdaf6;
  box-shadow: 10px 12px 0 var(--red);
}
.art-sun {
  position: absolute;
  z-index: 1;
  top: 12%;
  left: 35%;
  width: 30%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffd058;
  box-shadow: 0 0 0 0.75rem #ffe7a0;
}
.art-sun::after {
  content: "";
  position: absolute;
  left: 36%;
  top: 56%;
  width: 28%;
  height: 17%;
  border-bottom: 3px solid var(--ink);
  border-radius: 50%;
}
.art-sun__face::before,
.art-sun__face::after {
  content: "";
  position: absolute;
  top: 40%;
  width: 8%;
  height: 10%;
  border-radius: 50%;
  background: var(--ink);
}
.art-sun__face::before {
  left: 34%;
}
.art-sun__face::after {
  right: 34%;
}
.art-sun__face {
  position: absolute;
  inset: 0;
}
.art-sun__face::selection {
  background: transparent;
}
.art-cloud {
  position: absolute;
  z-index: 2;
  width: 27%;
  height: 11%;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fffdf5;
}
.art-cloud::before,
.art-cloud::after {
  content: "";
  position: absolute;
  bottom: 35%;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: #fffdf5;
}
.art-cloud::before {
  left: 13%;
  width: 40%;
  height: 95%;
}
.art-cloud::after {
  right: 13%;
  width: 47%;
  height: 145%;
}
.art-cloud--one {
  top: 28%;
  left: 7%;
}
.art-cloud--two {
  top: 19%;
  right: 3%;
  transform: scale(0.78);
}
.art-hill {
  position: absolute;
  bottom: -27%;
  width: 105%;
  height: 66%;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 0 0;
}
.art-hill--back {
  right: -40%;
  bottom: -18%;
  background: #6fba83;
}
.art-hill--front {
  left: -23%;
  background: var(--green);
}
.art-flower {
  position: absolute;
  z-index: 3;
  bottom: 16%;
  width: 16%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 40%;
  background: var(--pink);
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
}
.art-flower::before {
  content: "";
  position: absolute;
  inset: 31%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.art-flower--one {
  left: 17%;
  transform: rotate(20deg);
}
.art-flower--two {
  right: 20%;
  bottom: 27%;
  width: 12%;
  background: #fffdf5;
  transform: rotate(-18deg);
}
.art-flower--three {
  right: 11%;
  bottom: 11%;
  width: 9%;
  background: var(--red);
}
.name-section {
  background: #fffdf5;
}
.name-section__grid {
  display: grid;
  gap: 2.25rem;
}
.name-section__intro {
  min-width: 0;
}
.name-wish {
  max-width: 24rem;
  margin-top: 1.5rem;
  padding: var(--card-padding);
  border: 2px solid var(--ink);
  border-radius: 1.2rem 1.2rem 0.4rem 1.2rem;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}
.name-notes {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.name-note {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}
.name-note:nth-child(2) {
  background: #c5dbfa;
}
.name-note:nth-child(3) {
  background: var(--green);
}
.name-note[open] {
  background: #fffdf5;
}
.name-note summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.5rem;
  padding: 0.75rem var(--card-padding);
  cursor: pointer;
  list-style: none;
}
.name-note summary::-webkit-details-marker {
  display: none;
}
.name-note__syllable {
  font: 700 1.65rem/1.2 var(--display);
}
.name-note__hanja {
  font: 400 1.2rem/1.3 var(--hanja);
}
.name-note__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.name-note__hint::after {
  content: " +";
  font-size: 1.15rem;
}
.name-note[open] .name-note__hint::after {
  content: " −";
}
.name-note p {
  margin: 0 var(--card-padding) 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #aeb5b9;
  font-weight: 500;
}
.record-section {
  background: #c9ddfa;
  border-block: 3px solid var(--ink);
}
.record-section__grid {
  display: grid;
  gap: 2.25rem;
}
.record-section__entry {
  min-width: 0;
  padding: var(--card-padding);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: #fffdf5;
  box-shadow: 4px 4px 0 var(--blue);
}
.record-section time {
  display: inline-block;
  padding: 0.1rem 0.65rem;
  border-radius: 0.65rem;
  background: var(--yellow);
  font: 600 1.125rem/1.6 var(--body);
  font-variant-numeric: tabular-nums;
}
.record-section__sequence {
  margin-block: 1.25rem;
  font: 600 1.125rem/1.6 var(--body);
  word-spacing: 0.5rem;
}
.record-section__sequence span {
  color: var(--blue);
}
.record-section__entry > p {
  max-width: 32rem;
}
.invite-teaser {
  background: var(--pink);
}
.invite-teaser__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: var(--card-padding);
  border: 3px dashed var(--red);
  border-radius: 1.25rem;
  background: #fffdf5;
}
.invite-teaser__inner > * {
  min-width: 0;
  max-width: 100%;
}
.invite-teaser__inner p:last-child {
  margin-top: 0.75rem;
  font-weight: 500;
}
/* Party invitation: facts precede the photograph even on narrow screens. */
.page-invite {
  --content-width: 44rem;
  --section-title: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  background: #fff1e8;
}
.invitation {
  padding-block: 2rem 0;
}
.invitation__intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: end;
  padding: 4.5rem var(--card-padding) var(--card-padding);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--red);
  overflow: hidden;
}
.pennants {
  position: absolute;
  top: 0.8rem;
  left: 0.2rem;
  right: 0.2rem;
  display: flex;
  justify-content: space-around;
  border-top: 2px solid var(--ink);
}
.pennants span {
  width: clamp(1.25rem, 5vw, 2rem);
  height: clamp(1.5rem, 6vw, 2.5rem);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--red);
}
.pennants span:nth-child(3n + 2) {
  background: var(--blue);
}
.pennants span:nth-child(3n) {
  background: var(--green);
}
.invitation__intro .eyebrow {
  grid-column: 1 / -1;
  color: var(--ink);
}
.invitation h1 {
  min-width: 0;
  font-size: clamp(2.25rem, 1.25rem + 4vw, 4rem);
  line-height: 1.2;
}
.invitation h1 em {
  color: var(--red);
  font-style: normal;
  text-shadow: 2px 2px 0 #fffdf5;
}
.birthday-badge {
  width: 5rem;
  max-width: 100%;
  justify-self: end;
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: 3px 3px 0 var(--blue);
  transform: rotate(12deg);
  font: 700 0.85rem/1 var(--display);
}
.birthday-badge strong {
  color: var(--red);
  font-size: 2.75rem;
  line-height: 1;
}
.invitation__details {
  margin-top: 1.5rem;
  padding: 0.5rem var(--card-padding);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: #fffdf5;
  box-shadow: 4px 4px 0 var(--blue);
}
.event-details > div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
}
.event-details > div + div {
  border-top: 1px solid #bcc2cc;
}
.event-details dt {
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 600;
}
.event-details dd {
  min-width: 0;
  font-weight: 500;
}
.event-details time {
  font-variant-numeric: tabular-nums;
}
.gallery-photo {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0.5rem;
  border: 2px solid var(--ink);
  background: #fffdf5;
  box-shadow: 4px 4px 0 var(--ink);
}
.gallery-photo::before,
.gallery-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 3.5rem;
  height: 0.85rem;
  background: #ffe395db;
  border-inline: 1px solid #bc965f;
  pointer-events: none;
}
.gallery-photo::before {
  top: -0.42rem;
  left: 5%;
  transform: rotate(-10deg);
}
.gallery-photo::after {
  bottom: -0.4rem;
  right: 5%;
  transform: rotate(-9deg);
}
.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-photo:focus-visible {
  outline-offset: 8px;
}
.invitation__hero {
  margin-top: 2rem;
}
.invitation__letter {
  margin-top: 2rem;
  padding: var(--card-padding);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--red);
}
.invitation__signature {
  margin-top: 1.5rem;
  color: #8c263a;
  font-size: 0.9375rem;
  font-weight: 600;
}
.birthday-wish {
  margin-block: var(--section-gap);
  padding: 2rem var(--card-padding);
  border-block: 1px solid #ddceba;
  text-align: center;
  background: radial-gradient(ellipse at 50% 45%, #fffdf7, transparent 70%);
}
.birthday-wish .eyebrow {
  color: #946452;
}
.birthday-wish h2 {
  margin-top: 0.75rem;
}
.wish-candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 18rem);
  margin: 1rem auto 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: #85513e;
  cursor: pointer;
  font: 500 0.9375rem/1.5 var(--body);
  -webkit-tap-highlight-color: transparent;
}
.wish-candle__art {
  position: relative;
  display: block;
  width: 10rem;
  max-width: 100%;
}
.wish-candle__art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #fbe2ab80, transparent 65%);
  transition: opacity 0.4s ease;
}
.wish-candle svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.wish-candle__flame {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.wish-candle__smoke {
  opacity: 0;
}
.wish-candle__label {
  padding: 0.65rem 1.1rem;
  border: 1px solid #cfb4a0;
  border-radius: 100px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.wish-candle__label span {
  margin-left: 0.5rem;
}
.wish-candle:not([aria-disabled="true"]):active .wish-candle__label {
  background: #f4e5d6;
}
@media (hover: hover) and (pointer: fine) {
  .wish-candle:not([aria-disabled="true"]):hover .wish-candle__label {
    background: #f4e5d6;
    border-color: #a77b61;
  }
}
.birthday-wish.is-celebrated .wish-candle {
  cursor: default;
}
.birthday-wish.is-celebrated .wish-candle__flame,
.birthday-wish.is-celebrated .wish-candle__art::before {
  opacity: 0;
}
.birthday-wish.is-celebrated .wish-candle__label {
  border-color: transparent;
  color: #6f6a5c;
}
.birthday-wish__message {
  margin-top: 1rem;
  color: #766858;
  font-size: 0.875rem;
}
.invitation__venue {
  padding: var(--card-padding);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: #fffdf5;
  box-shadow: 4px 4px 0 var(--green);
}
.invitation__venue h2 {
  margin-bottom: 1rem;
}
.invitation__venue .text-link {
  margin-top: 1.5rem;
  background: var(--green);
}
.album {
  padding-block: var(--section-gap);
}
.album h2 {
  margin-block: 0.75rem;
}
.album__hint {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
}
.album__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}
.gallery-photo--wide {
  grid-column: 1 / -1;
}
.invite-return {
  padding-bottom: var(--section-gap);
}
/* An explicit bounded stage is essential: intrinsic image dimensions cannot size the grid. */
.gallery-viewer {
  position: fixed;
  inset: 0;
  width: 100dvw;
  max-width: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fffdf5;
  background: #19243a;
}
.gallery-viewer::backdrop {
  background: #19243a;
}
.gallery-viewer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: max(0.5rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}
.gallery-viewer button {
  min-width: 44px;
  min-height: 44px;
  border: 2px solid #ffda68;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
.gallery-viewer button:focus-visible {
  outline: 3px solid #ffda68;
  outline-offset: 3px;
}
.gallery-viewer__close {
  justify-self: end;
}
.gallery-viewer__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}
.gallery-viewer__stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-viewer__stage img[hidden],
.gallery-viewer__error[hidden] {
  display: none;
}
.gallery-viewer__error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}
.gallery-viewer__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-self: center;
  width: min(100%, 26rem);
  min-width: 0;
  gap: clamp(0.5rem, 4vw, 1.5rem);
  min-height: 56px;
}
.gallery-viewer__controls span {
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.not-found {
  display: grid;
  align-items: center;
  background: #c9ddfa;
}
.not-found__inner {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.not-found__art {
  position: relative;
  width: min(100%, 21rem);
  height: 9rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--ink);
}
.not-found__sun {
  position: absolute;
  top: 0.5rem;
  left: 18%;
  width: min(6rem, 60%);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0.5rem #fff0b8;
}
.not-found__cloud {
  position: absolute;
  top: 2rem;
  right: 10%;
  width: 6rem;
  height: 3rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
}
.not-found__flower {
  position: absolute;
  bottom: -0.1rem;
  right: 29%;
  width: 3.5rem;
  height: 3.5rem;
  border: 3px solid var(--ink);
  border-radius: 40%;
  background: var(--pink);
  transform: rotate(18deg);
}
.not-found__flower::after {
  content: "";
  position: absolute;
  inset: 34%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.not-found h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.15;
}
.not-found__note {
  margin-top: 1.3rem;
  font-weight: 400;
}
.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.not-found__links .text-link:last-child {
  background: var(--pink);
}
.site-footer {
  border-top: 3px solid var(--ink);
  background: #fffdf5;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 5.5rem;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
}
@media (min-width: 48rem) {
  .site-header nav {
    gap: 0.8rem;
  }
  .site-header nav a {
    padding-inline: 0.9rem;
  }
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
  .home-hero__art {
    aspect-ratio: 1;
  }
  .name-section__grid,
  .record-section__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}
@media (max-width: 36rem) {
  .invitation__intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .birthday-badge {
    width: 4rem;
  }
  .birthday-badge strong {
    font-size: 2rem;
  }
  .event-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .gallery-photo::before,
  .gallery-photo::after {
    width: 2rem;
  }
}
@media (max-width: 22rem) {
  .site-header nav {
    width: 100%;
  }
  .site-header nav a {
    flex: 1;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
