:root {
  color-scheme: light;
  --paper: #f7f3ed;
  --card: #fffdf9;
  --ink: #202925;
  --muted: #79766f;
  --line: #e8e1d7;
  --forest: #293931;
  --forest-deep: #202d27;
  --gold: #bb8d55;
  --blush: #ddada1;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1140px, calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  min-height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.wordmark-mark {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -2px;
}

.wordmark-mark span {
  padding-inline: 3px;
  color: var(--gold);
  font-size: 21px;
}

.wordmark-text {
  padding-left: 13px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.025em;
}

.memories-link,
.text-link {
  font-size: 12px;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.memories-link span,
.text-link span {
  margin-left: 6px;
  color: var(--gold);
}

.hero {
  min-height: 531px;
  padding-block: 54px 95px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 90px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.booking-dialog h2 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(48px, 6.1vw, 74px);
  line-height: 0.99;
}

.hero h1 span,
.section-heading h2 span {
  color: var(--gold);
  font-style: italic;
}

.hero-description {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--forest);
  color: white;
}

.button-dark:hover {
  background: var(--forest-deep);
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.sparkle {
  color: #e2bf8c;
  font-size: 15px;
}

.birthday-note {
  position: relative;
  min-height: 367px;
  padding: 29px 31px;
  overflow: hidden;
  background: var(--forest);
  color: #f6f1e8;
  box-shadow: 16px 18px 0 rgba(193, 176, 151, 0.14);
}

.birthday-note::before,
.birthday-note::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
}

.birthday-note::before {
  inset: 10px;
  border: 1px solid rgba(243, 233, 217, 0.16);
}

.birthday-note::after {
  width: 230px;
  height: 230px;
  right: -115px;
  bottom: -112px;
  border: 1px solid rgba(243, 233, 217, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.022), 0 0 0 67px rgba(255, 255, 255, 0.018);
}

.note-topline {
  display: flex;
  justify-content: space-between;
  color: rgba(246, 241, 232, 0.62);
  font-size: 9px;
  letter-spacing: 0.055em;
}

.note-stars {
  margin-top: 46px;
  color: #d9b885;
  font-size: 14px;
  letter-spacing: 4px;
}

.note-stars span {
  color: rgba(246, 241, 232, 0.63);
}

.note-message {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.note-small {
  max-width: 205px;
  margin-top: 13px;
  color: rgba(246, 241, 232, 0.69);
  font-size: 11px;
  line-height: 1.7;
}

.note-signoff {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.note-stamp {
  position: absolute;
  right: 34px;
  bottom: 36px;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(225, 194, 145, 0.65);
  border-radius: 50%;
  color: #dfc294;
  font-family: var(--serif);
  font-size: 21px;
}

.menu-section {
  padding-block: 33px 85px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(35px, 4.5vw, 50px);
  line-height: 1.13;
}

.date-counter,
.memory-counter {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.filters {
  display: flex;
  gap: 8px;
  margin-block: 31px 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 37px;
  padding-inline: 15px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.filter-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.filter-chip.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.date-card {
  position: relative;
  min-height: 347px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee8df;
  background: var(--card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.date-card:hover,
.date-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(62, 49, 31, 0.07);
}

.date-card.is-highlighted {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(187, 141, 85, 0.13), 0 14px 35px rgba(62, 49, 31, 0.1);
}

.date-card.is-redeemed {
  background: #fbfaf6;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number,
.card-category {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.card-art {
  position: relative;
  height: 102px;
  margin-top: 16px;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: var(--art-background);
}

.card-art::after {
  position: absolute;
  right: -14px;
  bottom: -36px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--art-stroke);
  border-radius: 50%;
  content: "";
  opacity: 0.24;
}

.card-art svg {
  width: 57px;
  height: 57px;
  color: var(--art-stroke);
}

.card-title {
  margin: 17px 0 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.card-description {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.card-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.tag-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.redeem-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.redeem-button span {
  color: var(--gold);
}

.redeem-button:disabled {
  color: #64806e;
  cursor: default;
}

.memories-section {
  padding-block: 42px 73px;
  border-top: 1px solid var(--line);
}

.memories-heading {
  margin-bottom: 28px;
}

.memory-empty {
  min-height: 177px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #dbd0c2;
  text-align: center;
}

.memory-empty-mark {
  color: var(--gold);
  font-size: 21px;
}

.memory-empty p {
  margin: 10px 0 3px;
  font-family: var(--serif);
  font-size: 19px;
}

.memory-empty span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.memory-card {
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--card);
}

.memory-photo {
  position: relative;
  min-height: 131px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #dfd5c8;
  background: #f5f0e9;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

.memory-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-photo input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.memory-photo-copy {
  display: grid;
  gap: 6px;
}

.memory-photo-copy strong {
  color: var(--gold);
  font-size: 17px;
  font-weight: 400;
}

.memory-title {
  margin: 14px 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.memory-date {
  color: var(--gold);
  font-size: 10px;
}

.memory-note {
  width: 100%;
  min-height: 55px;
  margin-top: 10px;
  padding: 9px 0;
  resize: vertical;
  border: 0;
  border-top: 1px solid var(--line);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
}

.memory-note::placeholder {
  color: #a6a097;
}

.closing-note {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border-block: 1px solid var(--line);
}

.closing-note span {
  color: var(--gold);
  font-size: 13px;
}

.closing-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.booking-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 36px));
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 100px rgba(32, 41, 37, 0.2);
}

.booking-dialog::backdrop {
  background: rgba(33, 41, 37, 0.56);
  backdrop-filter: blur(4px);
}

.booking-form {
  position: relative;
  padding: 37px 38px 32px;
}

.dialog-close {
  position: absolute;
  top: 22px;
  right: 23px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f4f0e9;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
}

.booking-dialog h2 {
  margin-top: 13px;
  padding-right: 20px;
  font-size: 40px;
  line-height: 1.06;
}

.dialog-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.dialog-meta {
  margin-top: 15px;
  color: var(--gold);
  font-size: 11px;
}

.booking-fields {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 550;
}

.field-label span {
  color: var(--muted);
  font-weight: 400;
}

.field-input {
  min-height: 45px;
  width: 100%;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 12px;
}

.field-input:focus {
  border-color: var(--gold);
}

.field-note {
  min-height: 62px;
  resize: vertical;
}

.confirm-button {
  width: 100%;
}

.booking-fine-print {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.booking-success {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.success-mark {
  display: grid;
  width: 47px;
  height: 47px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid #dce5dc;
  border-radius: 50%;
  color: #597764;
  font-size: 20px;
}

.success-title {
  margin: 12px 0 5px;
  font-family: var(--serif);
  font-size: 30px;
}

.success-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 21px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  max-width: calc(100% - 48px);
  padding: 12px 16px;
  transform: translateY(12px);
  background: var(--forest);
  color: white;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

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

@media (max-width: 900px) {
  .hero {
    gap: 40px;
  }

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

  .birthday-note {
    padding-inline: 23px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 38px);
  }

  .topbar {
    min-height: 83px;
  }

  .wordmark-text {
    font-size: 9px;
  }

  .memories-link {
    font-size: 10px;
  }

  .hero {
    min-height: unset;
    padding-block: 51px 71px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 70px);
  }

  .birthday-note {
    min-height: 340px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .date-counter,
  .memory-counter {
    display: block;
    margin-top: 10px;
  }

  .filters {
    width: calc(100% + 19px);
    padding-right: 19px;
  }

  .date-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .date-card {
    min-height: 341px;
  }

  .memory-photo {
    min-height: 178px;
  }

  .closing-note {
    min-height: 101px;
    gap: 9px;
  }

  .closing-note p {
    font-size: 16px;
  }

  .footer {
    min-height: 72px;
    gap: 14px;
    font-size: 9px;
  }

  .booking-form {
    padding: 35px 24px 26px;
  }

  .booking-dialog h2 {
    font-size: 34px;
  }

  .success-actions {
    flex-direction: column;
  }
}

@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;
  }
}
