:root {
  --paper: #fbf8f5;
  --ink: #403944;
  --accent: #705665;
  --muted: #746a70;
  --line: #ded8db;
  --gold: #92713d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 100px;
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Georgia, serif;
  font-size: 43px;
  font-weight: bold;
  letter-spacing: -3px;
}
.brand span {
  display: inline-block;
  font-size: 35px;
  color: #92713d;
  margin-left: 4px;
}
.tagline,
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
}
.host-pill {
  margin-left: auto;
  border: 1px solid #d8d1d7;
  border-radius: 20px;
  padding: 9px 13px;
  font-size: 10px;
  letter-spacing: 1px;
}
main {
  max-width: 1224px;
  padding: 43px 0 70px;
  margin: auto;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 8px;
}
.actions {
  display: flex;
  gap: 9px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 12px 18px;
  font-weight: bold;
  font-size: 12px;
}
.btn:hover {
  background: #eee7ed;
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #57414e;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 64px;
  align-items: center;
}
.poster {
  min-height: 505px;
  background: var(--accent);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  color: #51414a;
  text-align: center;
  padding: 44px 26px;
  box-shadow: 0 12px 30px #40394410;
}
.poster:before,
.poster:after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #a98b5666;
  border-radius: 160px 160px 8px 8px;
  pointer-events: none;
}
.poster:after {
  inset: 20px;
  border-color: #a98b5630;
}
.poster .eyebrow {
  margin: 13px 0 30px;
  color: #78603e;
}
.poster h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 93px;
  letter-spacing: -6px;
  line-height: 0.91;
  margin: 0;
  position: relative;
  z-index: 1;
}
.poster h2 em {
  color: var(--gold);
  font-weight: normal;
}
.poster .small {
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 28px;
}
.poster .poster-name {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 12px 0;
}
.star {
  position: absolute;
  color: var(--gold);
  font-size: 49px;
  transform: rotate(13deg);
}
.star.one {
  top: 90px;
  right: 37px;
}
.star.two {
  left: 35px;
  top: 260px;
  font-size: 32px;
}
.star.three {
  right: 55px;
  bottom: 68px;
  font-size: 23px;
}
.cake {
  margin: 25px auto 0;
  position: relative;
  width: 104px;
  height: 47px;
  border: 1px solid #aa8b55;
  border-radius: 50% 50% 12px 12px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 12px,
    #aa8b5555 13px 14px
  );
  transform: rotate(-7deg);
}
.cake:before {
  content: "│ │ │";
  position: absolute;
  top: -29px;
  font-size: 31px;
  left: 16px;
  color: var(--gold);
}
.cake:after {
  content: "✦ ✦ ✦";
  position: absolute;
  top: -40px;
  font-size: 13px;
  left: 24px;
  color: var(--gold);
}
.details .eyebrow {
  color: #8a7331;
}
.details h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 47px;
  letter-spacing: -1.7px;
  line-height: 1.12;
  margin: 18px 0;
}
.hosted {
  color: var(--muted);
  font-size: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #eadfc8;
  color: #715b32;
  border-radius: 50%;
  margin-right: 7px;
  font-size: 11px;
  font-weight: bold;
}
.description {
  font-size: 14px;
  line-height: 1.8;
  color: #71666e;
  max-width: 430px;
  margin: 22px 0;
}
.event-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.info-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 9px;
}
.event-info strong {
  font-size: 13px;
  display: block;
}
.event-info p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
  line-height: 1.6;
}
.secret {
  display: flex;
  gap: 13px;
  background: #f2eade;
  padding: 17px;
  border-radius: 7px;
  margin-top: 25px;
}
.secret b {
  font-size: 12px;
}
.secret p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #756850;
}
.guest-section {
  margin-top: 49px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 30px;
  margin: 0 0 8px;
}
.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.live {
  font-size: 11px;
  color: #77617b;
  display: flex;
  gap: 7px;
  align-items: center;
}
.live:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #9986a5;
  border-radius: 50%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.stat {
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat b {
  font-size: 28px;
  font-weight: normal;
  font-family: Georgia, serif;
}
.stat span {
  font-size: 12px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  background: #a6a0a8;
}
.yes .dot {
  background: #8b7999;
}
.maybe .dot {
  background: #c6a450;
}
.no .dot {
  background: #b77b6e;
}
.guest-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdfb;
  overflow: hidden;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  color: #736973;
  border-radius: 5px;
  font-size: 12px;
}
.tab.active {
  background: #eee7f1;
  color: var(--accent);
  font-weight: bold;
}
.search {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: transparent;
  width: 200px;
  font-size: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 1.1fr 0.7fr;
  gap: 18px;
  align-items: center;
  padding: 16px 23px;
  border-bottom: 1px solid #e9e3e7;
}
.row:last-child {
  border-bottom: 0;
}
.row.head {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #736975;
  padding-top: 13px;
  padding-bottom: 13px;
  background: #f6f1f5;
}
.guest-name {
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}
.guest-name .avatar {
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: #e8e3ed;
}
.badge {
  font-size: 11px;
  border-radius: 20px;
  padding: 6px 10px;
  width: fit-content;
  background: #eeebef;
  color: #716973;
}
.badge.yes {
  background: #eee7f3;
  color: #665076;
}
.badge.maybe {
  background: #f5eed6;
  color: #7d642c;
}
.badge.no {
  background: #f3e6df;
  color: #905b51;
}
.note {
  font-size: 12px;
  line-height: 1.5;
  color: #746a73;
  overflow-wrap: anywhere;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11px;
  padding: 8px;
  text-align: right;
}
.empty {
  padding: 38px;
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: normal;
}
.under-list {
  font-size: 10px;
  color: #756c76;
  margin-top: 14px;
  text-align: center;
}
.rsvp {
  background: #fffaf6;
  border: 1px solid #dfd3c4;
  padding: 23px;
  border-radius: 8px;
  margin-top: 26px;
}
.rsvp h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  margin: 0 0 7px;
  font-weight: normal;
}
.rsvp p {
  font-size: 12px;
  color: var(--muted);
}
.choices {
  display: flex;
  gap: 9px;
  margin: 15px 0;
}
.choices button {
  flex: 1;
}
.choices .selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
textarea,
input {
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.rsvp textarea {
  width: 100%;
  min-height: 65px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  margin-bottom: 10px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 27px 48px;
  display: flex;
  gap: 25px;
  align-items: center;
  max-width: 1320px;
  margin: auto;
  color: #746a73;
  font-size: 11px;
}
footer .brand {
  font-size: 30px;
  color: var(--ink);
}
footer .brand span {
  font-size: 24px;
}
footer > span:last-child {
  margin-left: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 32px;
  max-width: 550px;
  width: calc(100% - 32px);
}
dialog::backdrop {
  background: #302731aa;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font:
    normal 31px Georgia,
    serif;
  margin: 0 0 12px;
}
dialog p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  margin: 13px 0 7px;
}
dialog input,
dialog textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdfb;
}
dialog textarea {
  min-height: 80px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
dialog .primary {
  margin-top: 20px;
}
.locked {
  padding: 70px 20px;
  text-align: center;
}
.locked h1 {
  font:
    normal 65px Georgia,
    serif;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 23px;
  border-radius: 8px;
  display: none;
  max-width: 90vw;
  z-index: 10;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #baa143;
  outline-offset: 3px;
}
.notice {
  padding: 12px 16px;
  background: #efe9ef;
  font-size: 11px;
  color: #746774;
  border-radius: 6px;
  margin-bottom: 23px;
}
.error {
  color: #a04b38;
  font-size: 12px;
}
.preview-return {
  margin-bottom: 20px;
}
@media (min-width: 1000px) {
  .poster {
    animation: arrive 0.6s ease both;
  }
  .details {
    animation: arrive 0.7s 0.1s ease both;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1300px) {
  main {
    padding: 32px 40px 60px;
  }
  .hero-grid {
    gap: 40px;
  }
}
@media (max-width: 800px) {
  header {
    height: 80px;
    padding: 0 22px;
  }
  .tagline {
    display: none;
  }
  main {
    padding: 24px 22px 45px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .poster {
    min-height: 460px;
  }
  .poster h2 {
    font-size: 85px;
  }
  .details h1 {
    font-size: 40px;
  }
  .topline {
    align-items: flex-start;
    gap: 15px;
  }
  .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .btn {
    padding: 11px 13px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .list-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 13px;
  }
  .search {
    width: 100%;
  }
  .row {
    grid-template-columns: 1fr 0.75fr;
    gap: 10px;
    padding: 15px;
  }
  .row .note {
    grid-column: 1;
  }
  .row.head {
    display: none;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .live {
    font-size: 10px;
  }
  .guest-section {
    margin-top: 35px;
  }
  .event-info {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .link-btn {
    text-align: left;
  }
  footer {
    padding: 22px;
    gap: 17px;
  }
  footer > span:last-child {
    display: none;
  }
  .breadcrumb {
    line-height: 1.8;
    font-size: 11px;
  }
  .poster .eyebrow {
    margin-top: 9px;
  }
  .locked h1 {
    font-size: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
