﻿:root {
  --paper: #fffaf0;
  --paper-soft: #f5ead9;
  --paper-deep: #ead9c3;
  --ink: #4f3b2e;
  --muted: #8a7868;
  --gold: #a77a2f;
  --gold-soft: #d6bd8d;
  --sage: #9bab8d;
  --sage-deep: #62785c;
  --sage-pale: #e3eadb;
  --brown: #765f50;
  --line: rgba(167, 122, 47, 0.28);
  --shadow: 0 22px 70px rgba(79, 59, 46, 0.18);
  --radius: 8px;
  --font-serif: Cambria, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-ui: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 240, 0.82), transparent 34rem),
    linear-gradient(90deg, rgba(155, 171, 141, 0.14), transparent 24%, transparent 76%, rgba(214, 189, 141, 0.16)),
    #eee3d2;
  font-family: var(--font-serif);
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 250, 240, 0.9), transparent 26rem),
    linear-gradient(180deg, #f3eadf, #e7d7c4);
  perspective: 1200px;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.envelope-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.envelope-card {
  position: relative;
  width: min(450px, calc(100vw - 18px));
  height: min(735px, calc(100vh - 20px));
  overflow: hidden;
  border: 1px solid rgba(169, 133, 84, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.08)),
    url("./images/opening-envelope-final.webp");
  background-position: center;
  background-size: cover;
  box-shadow: 0 26px 90px rgba(91, 70, 55, 0.28);
  transform-style: preserve-3d;
  transition: transform 920ms cubic-bezier(.2, .75, .2, 1), opacity 620ms ease;
}

.envelope-card::before,
.envelope-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.envelope-card::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 250, 240, 0.08), transparent 11rem),
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(111, 86, 64, 0.02));
}

.envelope-card::after {
  display: none;
}

.envelope-screen.is-opening .envelope-card {
  transform: translateY(-18px) scale(1.035);
  opacity: 0.08;
}

.envelope-flap {
  position: absolute;
  inset-inline: 0;
  pointer-events: none;
  background: linear-gradient(160deg, #f8efe5, #dfcbb7);
  transition: transform 980ms cubic-bezier(.2, .75, .2, 1), opacity 680ms ease;
}

.flap-top {
  top: 0;
  height: 47%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 7;
  transform-origin: 50% 0;
  box-shadow: inset 0 -16px 18px rgba(95, 69, 49, 0.1);
}

.flap-left {
  inset-block: 0;
  width: 50%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 6;
  box-shadow: inset -14px 0 16px rgba(95, 69, 49, 0.08);
}

.flap-right {
  inset-block: 0;
  left: auto;
  width: 50%;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  z-index: 6;
  box-shadow: inset 14px 0 16px rgba(95, 69, 49, 0.08);
}

.flap-bottom {
  bottom: 0;
  height: 47%;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  z-index: 6;
  box-shadow: inset 0 14px 16px rgba(255, 255, 255, 0.28);
}

.envelope-screen.is-opening .flap-top {
  transform: rotateX(72deg) translateY(-32px);
}

.envelope-screen.is-opening .flap-left {
  transform: translateX(-16%) rotateY(-10deg);
  opacity: 0.54;
}

.envelope-screen.is-opening .flap-right {
  transform: translateX(16%) rotateY(10deg);
  opacity: 0.54;
}

.envelope-screen.is-opening .flap-bottom {
  transform: translateY(12%);
  opacity: 0.42;
}

.emboss {
  position: absolute;
  top: 9%;
  bottom: 6%;
  width: 34%;
  z-index: 8;
  opacity: 0.8;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 45% 8%, rgba(255, 255, 255, 0.75) 0 6px, transparent 7px),
    radial-gradient(ellipse at 62% 21%, rgba(255, 255, 255, 0.7) 0 7px, transparent 8px),
    radial-gradient(ellipse at 42% 34%, rgba(255, 255, 255, 0.72) 0 8px, transparent 9px),
    radial-gradient(ellipse at 64% 50%, rgba(255, 255, 255, 0.74) 0 6px, transparent 7px),
    radial-gradient(ellipse at 39% 64%, rgba(255, 255, 255, 0.75) 0 9px, transparent 10px),
    radial-gradient(ellipse at 62% 80%, rgba(255, 255, 255, 0.68) 0 7px, transparent 8px),
    linear-gradient(102deg, transparent 22%, rgba(255, 255, 255, 0.58) 23%, transparent 25%),
    linear-gradient(78deg, transparent 48%, rgba(142, 114, 87, 0.16) 49%, transparent 51%);
  filter: drop-shadow(0 1px 0 rgba(132, 99, 74, 0.12));
}

.envelope-flap,
.emboss {
  display: none;
}

.emboss-left {
  left: 4%;
}

.emboss-right {
  right: 4%;
  transform: scaleX(-1);
}

.wax-seal,
.name-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.42), transparent 21%),
    linear-gradient(145deg, #c9d6bf, #8fa889 58%, #6f8768);
  box-shadow:
    inset 0 0 0 4px rgba(255, 250, 240, 0.22),
    inset 0 0 0 10px rgba(83, 107, 78, 0.15),
    0 12px 28px rgba(67, 85, 60, 0.24);
}

.wax-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 12;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  transition: transform 720ms ease, opacity 520ms ease;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.wax-seal::before {
  display: none;
}

.name-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(52, 42, 31, 0.24));
}

.wax-seal img {
  display: none;
}

.envelope-screen.is-opening .wax-seal {
  transform: translate(-50%, -64%) scale(0.78);
  opacity: 0;
}

.open-zone {
  position: absolute;
  left: 50%;
  top: 52%;
  bottom: auto;
  z-index: 13;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
  color: rgba(151, 116, 78, 0.72);
}

.open-zone p {
  display: none;
}

.cover-open {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  box-shadow: none;
}

.cover-open strong,
.cover-open span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cover-langs {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 14;
}

.invite-shell {
  width: min(440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(255, 250, 240, 0.78), rgba(255, 250, 240, 0.92)),
    repeating-linear-gradient(90deg, rgba(167, 122, 47, 0.025) 0 1px, transparent 1px 4px);
  box-shadow: 0 0 50px rgba(92, 72, 58, 0.16);
}

.language-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  color: #fffaf0;
  background: rgba(118, 95, 80, 0.96);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.flag-langs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 250, 240, 0.48);
  border-radius: 999px;
  padding: 0 10px;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-btn.is-active {
  color: var(--brown);
  background: #fffaf0;
}

.flag {
  width: 23px;
  height: 15px;
  display: inline-block;
  border-radius: 3px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(64, 48, 38, 0.12);
}

.flag-az {
  background-image: url("./images/flag-az.png");
}

.flag-ru {
  background-image: url("./images/flag-ru.png");
}

.flag-en {
  background-image: url("./images/flag-en.svg");
}

.hero-poster {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 76px 30px 62px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 250, 240, 0.18), rgba(255, 250, 240, 0.32)),
    url("./images/azerbaijani-neoclassical-hero-beige.webp");
  background-position: center;
  background-size: cover;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(167, 122, 47, 0.28);
  box-shadow: inset 0 0 0 8px rgba(255, 250, 240, 0.5);
  z-index: 1;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 30px;
  pointer-events: none;
  border: 1px solid rgba(98, 120, 92, 0.18);
  z-index: 1;
}

.azerbaijan-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(ellipse at 8% 20%, transparent 0 18px, rgba(98, 120, 92, 0.22) 19px 21px, transparent 22px),
    radial-gradient(ellipse at 92% 20%, transparent 0 18px, rgba(98, 120, 92, 0.22) 19px 21px, transparent 22px),
    radial-gradient(ellipse at 8% 80%, transparent 0 18px, rgba(98, 120, 92, 0.22) 19px 21px, transparent 22px),
    radial-gradient(ellipse at 92% 80%, transparent 0 18px, rgba(98, 120, 92, 0.22) 19px 21px, transparent 22px),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(167, 122, 47, 0.045) 16px 17px, transparent 17px 34px),
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(98, 120, 92, 0.04) 16px 17px, transparent 17px 34px);
}

.azerbaijan-pattern::before,
.azerbaijan-pattern::after {
  content: "";
  position: absolute;
  top: 80px;
  bottom: 64px;
  width: 74px;
  background:
    radial-gradient(ellipse at 50% 7%, rgba(98, 120, 92, 0.32) 0 8px, transparent 9px),
    radial-gradient(ellipse at 50% 24%, rgba(167, 122, 47, 0.26) 0 10px, transparent 11px),
    radial-gradient(ellipse at 50% 43%, rgba(98, 120, 92, 0.26) 0 8px, transparent 9px),
    radial-gradient(ellipse at 50% 62%, rgba(167, 122, 47, 0.22) 0 10px, transparent 11px),
    radial-gradient(ellipse at 50% 82%, rgba(98, 120, 92, 0.28) 0 8px, transparent 9px),
    linear-gradient(90deg, transparent 47%, rgba(167, 122, 47, 0.18) 48% 52%, transparent 53%);
  border-radius: 999px;
}

.azerbaijan-pattern::before {
  left: 12px;
}

.azerbaijan-pattern::after {
  right: 12px;
  transform: scaleX(-1);
}

.garden-arch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.96;
}

.arch-line {
  position: absolute;
  left: 50%;
  top: 56px;
  width: 330px;
  height: 445px;
  border: 20px solid rgba(181, 145, 91, 0.28);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(120, 87, 57, 0.08);
}

.arch-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -46px;
  width: 58px;
  height: 78px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(#c3a273, #9e7d52);
  opacity: 0.42;
  transform: translateX(-50%);
}

.floral-cloud {
  position: absolute;
  width: 190px;
  height: 520px;
  opacity: 0.58;
  background:
    radial-gradient(circle at 38% 7%, rgba(255, 255, 255, 0.9) 0 10px, transparent 11px),
    radial-gradient(circle at 54% 16%, rgba(155, 171, 141, 0.52) 0 4px, transparent 5px),
    radial-gradient(circle at 26% 27%, rgba(255, 255, 255, 0.82) 0 16px, transparent 17px),
    radial-gradient(circle at 70% 40%, rgba(155, 171, 141, 0.48) 0 6px, transparent 7px),
    radial-gradient(circle at 44% 54%, rgba(255, 255, 255, 0.88) 0 14px, transparent 15px),
    radial-gradient(circle at 68% 70%, rgba(255, 255, 255, 0.75) 0 18px, transparent 19px),
    radial-gradient(circle at 30% 86%, rgba(155, 171, 141, 0.44) 0 7px, transparent 8px);
}

.cloud-left {
  left: -44px;
  bottom: 20px;
  transform: rotate(-10deg);
}

.cloud-right {
  right: -48px;
  bottom: 34px;
  transform: scaleX(-1) rotate(-8deg);
}

.poster-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  min-height: 610px;
}

.poster-details {
  width: min(330px, 100%);
  margin-top: 24px;
  padding: 18px 14px 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.58), transparent);
}

.poster-main {
  display: grid;
  justify-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 34px;
  padding: 7px 14px;
  color: rgba(79, 59, 46, 0.76);
  background: rgba(255, 250, 240, 0.58);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.small-mark {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  background: rgba(255, 250, 240, 0.54);
  border: 1px solid rgba(151, 116, 78, 0.16);
  box-shadow: none;
}

.small-mark img {
  width: 106%;
  height: 106%;
}

.hero-poster h1 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(52px, 15vw, 82px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-poster h1 em {
  display: block;
  margin: 8px 0 4px;
  color: rgba(133, 104, 51, 0.82);
  font-family: var(--font-serif);
  font-size: 0.34em;
  font-style: italic;
}

.hero-copy,
.hero-invite {
  margin: 22px auto 0;
  color: rgba(79, 59, 46, 0.7);
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
}

.hero-copy {
  width: min(330px, 100%);
  margin-top: 24px;
}

.hero-invite {
  margin-top: 0;
  color: rgba(79, 59, 46, 0.68);
  font-size: 22px;
}

.date-line {
  margin: 24px auto 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.venue-line {
  margin: 14px 0 0;
  color: rgba(79, 59, 46, 0.74);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-divider {
  width: 92px;
  height: 18px;
  margin: 22px auto;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 8px, rgba(167, 122, 47, 0.48) 8px 40px, transparent 40px 52px, rgba(167, 122, 47, 0.48) 52px 84px, transparent 84px);
  opacity: 0.64;
}

.poster-address {
  margin: 18px auto 0;
  color: rgba(79, 59, 46, 0.62);
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 16px auto 0;
  color: var(--gold);
  text-decoration: none;
  font-size: 30px;
}

.ornate-card {
  position: relative;
  margin: 28px 22px;
  padding: 34px 24px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.96)),
    repeating-linear-gradient(90deg, rgba(167, 122, 47, 0.03) 0 1px, transparent 1px 3px);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(80, 60, 45, 0.08);
}

.ornate-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(167, 122, 47, 0.16);
}

.ornate-card::after {
  content: "";
  position: absolute;
  inset: 18px 15px;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 0% 12%, transparent 0 10px, var(--sage-deep) 11px 12px, transparent 13px),
    radial-gradient(ellipse at 100% 12%, transparent 0 10px, var(--sage-deep) 11px 12px, transparent 13px),
    radial-gradient(ellipse at 0% 88%, transparent 0 10px, var(--sage-deep) 11px 12px, transparent 13px),
    radial-gradient(ellipse at 100% 88%, transparent 0 10px, var(--sage-deep) 11px 12px, transparent 13px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(167, 122, 47, 0.24) 18px 19px, transparent 19px 36px);
  mask-image:
    linear-gradient(90deg, #000 0 26px, transparent 26px calc(100% - 26px), #000 calc(100% - 26px)),
    linear-gradient(#000 0 26px, transparent 26px calc(100% - 26px), #000 calc(100% - 26px));
  mask-composite: add;
}

.ornate-corner {
  position: absolute;
  width: 54px;
  height: 54px;
  opacity: 0.42;
  pointer-events: none;
}

.corner-tl {
  top: 20px;
  left: 20px;
  border-top: 1px solid var(--gold-soft);
  border-left: 1px solid var(--gold-soft);
  border-radius: 18px 0 0 0;
}

.corner-tr {
  top: 20px;
  right: 20px;
  border-top: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
  border-radius: 0 18px 0 0;
}

.corner-bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 1px solid var(--gold-soft);
  border-left: 1px solid var(--gold-soft);
  border-radius: 0 0 0 18px;
}

.corner-br {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  border-radius: 0 0 18px 0;
}

.letter-card {
  min-height: 440px;
  display: grid;
  align-content: center;
  text-align: center;
}

.letter-card h2,
.section-heading h2,
.venue-card h2 {
  margin: 0;
  color: var(--gold);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.35;
}

.letter-card p {
  margin: 38px auto 0;
  width: min(300px, 100%);
  color: rgba(79, 59, 46, 0.68);
  font-size: 19px;
  font-style: italic;
  line-height: 1.9;
}

.script-heading {
  margin: 0 0 24px;
  color: var(--gold);
  text-align: center;
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
}

.countdown-card {
  min-height: 410px;
  display: grid;
  align-content: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
  align-items: start;
  gap: 4px;
}

.time-tile {
  min-width: 0;
  text-align: center;
}

.time-tile strong {
  display: block;
  color: var(--gold);
  font-size: clamp(32px, 10vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.time-tile span {
  display: block;
  margin-top: 12px;
  color: rgba(79, 59, 46, 0.68);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.time-separator {
  color: rgba(167, 122, 47, 0.44);
  font-size: 32px;
  line-height: 1;
}

.calendar-section {
  padding: 6px 0;
}

.calendar-panel {
  padding: 28px 20px 32px;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 22px;
}

.calendar-grid span,
.calendar-grid i {
  min-height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(79, 59, 46, 0.66);
  font-family: var(--font-ui);
  font-size: 10px;
  font-style: normal;
}

.calendar-grid span:nth-child(-n + 7) {
  color: var(--gold);
  font-weight: 800;
}

.calendar-grid .wedding-day {
  color: #fffaf0;
  background: var(--sage-deep);
  box-shadow: 0 8px 18px rgba(98, 120, 92, 0.22);
}

.calendar-note {
  margin: 20px 0 0;
  color: var(--sage-deep);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 22px 28px;
}

.mini-card {
  min-height: 132px;
  padding: 20px 12px;
  text-align: center;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid var(--line);
}

.mini-card span {
  color: var(--gold);
}

.mini-card h3 {
  margin: 10px 0 8px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-card p {
  margin: 0;
  color: rgba(79, 59, 46, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.venue-card {
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 250, 240, 0.86), rgba(255, 250, 240, 0.9)),
    url("./images/venue-baxcali-saray.webp");
  background-position: center;
  background-size: cover;
}

.venue-illustration {
  display: none;
  width: min(260px, 100%);
  height: 170px;
  margin: 0 auto 20px;
  border: 1px solid rgba(167, 122, 47, 0.2);
  background:
    linear-gradient(180deg, transparent 56%, rgba(155, 171, 141, 0.16) 57%),
    radial-gradient(circle at 24% 74%, rgba(155, 171, 141, 0.28) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.8) 0 14px, transparent 15px),
    linear-gradient(90deg, transparent 18%, rgba(167, 122, 47, 0.2) 19% 21%, transparent 22% 78%, rgba(167, 122, 47, 0.2) 79% 81%, transparent 82%),
    radial-gradient(ellipse at 50% 72%, transparent 0 52px, rgba(167, 122, 47, 0.24) 53px 56px, transparent 57px),
    var(--paper);
}

.venue-card h2 {
  margin-top: 18px;
  font-size: 30px;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.7);
}

.venue-card p {
  margin: 14px auto 22px;
  color: rgba(79, 59, 46, 0.76);
  line-height: 1.55;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.55);
}

.primary-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.rsvp-section {
  padding: 22px 0 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 240, 0.86), transparent 16rem),
    linear-gradient(rgba(245, 234, 217, 0.26), rgba(255, 250, 240, 0.48));
}

.section-heading {
  margin: 0 28px 24px;
  text-align: center;
}

.section-heading .script-heading {
  margin-bottom: 8px;
  font-size: 38px;
  line-height: 1;
}

.section-heading h2 {
  color: rgba(79, 59, 46, 0.58);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.8;
  text-transform: uppercase;
}

.section-heading p:not(.script-heading) {
  margin: 18px auto 0;
  width: min(350px, 100%);
  color: rgba(79, 59, 46, 0.66);
  font-size: 16px;
  line-height: 1.7;
}

.form-card {
  padding: 34px 26px 28px;
  background:
    linear-gradient(rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.97)),
    repeating-linear-gradient(90deg, rgba(167, 122, 47, 0.028) 0 1px, transparent 1px 4px);
}

label {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(79, 59, 46, 0.78);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(167, 122, 47, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(155, 171, 141, 0.18);
}

.choice-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.choice-field legend {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  color: rgba(79, 59, 46, 0.78);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-card {
  position: relative;
  min-height: 56px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid rgba(167, 122, 47, 0.25);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(79, 59, 46, 0.72);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.choice-card:has(input:checked) {
  border-color: rgba(167, 122, 47, 0.5);
  color: #fffaf0;
  background: linear-gradient(135deg, #a77a2f, #7f612c);
  transform: translateY(-1px);
}

.form-card .primary-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  color: #fffaf0;
  background: linear-gradient(135deg, #a77a2f, #7f612c);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--sage-deep);
  text-align: center;
  font-size: 14px;
}

.invite-footer {
  position: relative;
  padding: 28px 20px 92px;
  text-align: center;
  color: var(--muted);
}

.footer-mark {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  background: transparent;
  box-shadow: none;
}

.footer-mark img {
  width: 100%;
  height: 100%;
}

.invite-footer p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 25px;
  font-style: italic;
}

.rights {
  display: block;
  margin-top: 12px;
  color: rgba(79, 59, 46, 0.48);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.music-fab {
  position: fixed;
  z-index: 12;
  border: 0;
  border-radius: 999px;
  color: #fffaf0;
  background: var(--sage-deep);
  box-shadow: 0 12px 24px rgba(79, 59, 46, 0.2);
  text-decoration: none;
}

.music-fab {
  right: max(14px, calc((100vw - 440px) / 2 + 14px));
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.music-fab span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Admin page */
.admin-page {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(155, 171, 141, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(244, 236, 220, 0.92)),
    var(--paper);
  min-height: 100vh;
}

.admin-header,
.admin-main {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.admin-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px 0 18px;
  border-bottom: 1px solid rgba(167, 122, 47, 0.16);
}

.monogram {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(229, 217, 192, 0.72)),
    rgba(255, 250, 240, 0.86);
  box-shadow: 0 10px 22px rgba(76, 57, 37, 0.08);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.admin-header .eyebrow {
  margin: 0 0 4px;
  padding: 0;
  background: transparent;
  color: var(--sage-deep);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--gold);
}

.admin-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 18px rgba(78, 59, 38, 0.07);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 700;
}

.admin-main {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  margin-bottom: 60px;
}

.paper-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 248, 235, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
}

.admin-toolbar::before,
.message-card::before,
.empty-state::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(167, 122, 47, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.stats div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid rgba(167, 122, 47, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: inset 0 3px 0 rgba(155, 171, 141, 0.18);
}

.stats span {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.stats strong {
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
}

.toolbar-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(167, 122, 47, 0.24);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  font-family: var(--font-ui);
  outline: none;
}

.search-input:focus {
  border-color: rgba(104, 123, 96, 0.58);
  box-shadow: 0 0 0 3px rgba(155, 171, 141, 0.18);
}

.small-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.86);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.small-btn:hover {
  border-color: rgba(104, 123, 96, 0.45);
  transform: translateY(-1px);
}

.small-btn.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
}

.danger-soft {
  color: #8a5b55;
  background: rgba(255, 247, 240, 0.82);
}

.danger-btn {
  color: white;
  border-color: transparent;
  background: #8a5b55;
}

.admin-list-wrap {
  min-height: 280px;
}

.empty-state {
  padding: 44px 34px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-ui);
}

.message-list {
  display: grid;
  gap: 16px;
}

.message-card {
  padding: 20px;
  overflow: hidden;
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(167, 122, 47, 0.14);
}

.message-name {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 400;
}

.message-meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
}

.attendance-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  color: white;
  background: var(--sage-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
}

.attendance-badge.no {
  background: #8a6f60;
}

.attendance-badge.maybe {
  background: var(--gold);
}

.message-text {
  margin: 16px 0 18px;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .admin-header {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .admin-header .admin-link {
    grid-column: 1 / -1;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .search-input {
    grid-column: 1 / -1;
  }

  .message-head {
    display: grid;
  }

  .attendance-badge {
    justify-self: start;
  }

  .message-actions {
    justify-content: stretch;
  }

  .message-actions .small-btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 390px) {
  .hero-poster {
    min-height: 710px;
    padding-inline: 18px;
  }

  .ornate-card {
    margin-inline: 14px;
  }

  .details-grid {
    margin-inline: 14px;
  }

  .letter-card h2,
  .script-heading {
    font-size: 29px;
  }

  .countdown-grid {
    gap: 2px;
  }

  .time-tile strong {
    font-size: 30px;
  }
}

