@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #bd4d79;
  --brand-strong: #a63868;
  --ink: #29202b;
  --muted: #675b63;
  --surface-soft: #f7f3f5;
  --surface-brand: #f8e7ee;
  --line: #eadde3;
  --success: #356b5b;
  --success-bg: #edf6f1;
  --waiting: #7b5a25;
  --waiting-bg: #fbf3df;
  --declined: #75475a;
  --declined-bg: #f6edf1;
  --page-gutter: clamp(20px, 5vw, 48px);
  --content-width: 880px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffffff;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(189, 77, 121, 0.28);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.owner-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(100%, calc(var(--content-width) + (var(--page-gutter) * 2)));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    var(--page-gutter)
    10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.owner-header__brand {
  padding: 10px 0;
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 720;
  text-decoration: none;
}

.owner-header__refresh {
  min-height: 44px;
  padding: 0 4px;
  color: var(--brand-strong);
  background: transparent;
  font-weight: 620;
  cursor: pointer;
}

.owner-header__refresh:disabled {
  color: #a99da3;
  cursor: wait;
}

.responses-shell {
  width: min(100%, calc(var(--content-width) + (var(--page-gutter) * 2)));
  display: grid;
  gap: 40px;
  margin: 0 auto;
  padding:
    34px var(--page-gutter)
    max(56px, calc(env(safe-area-inset-bottom, 0px) + 32px));
}

.responses-hero {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.responses-eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.responses-hero h1,
.responses-list-heading h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.responses-hero h1 {
  max-width: 700px;
  font-size: clamp(38px, 10vw, 68px);
  font-weight: 740;
  line-height: 0.98;
}

.responses-hero__event {
  max-width: 620px;
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: clamp(17px, 4.5vw, 20px);
  line-height: 1.45;
}

.responses-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.responses-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  padding: 0 18px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.responses-button:active {
  transform: scale(0.985);
}

.responses-button--primary {
  color: #ffffff;
  background: var(--brand-strong);
}

.responses-button--primary:hover {
  background: #922b59;
}

.responses-button--soft {
  color: var(--brand-strong);
  background: var(--surface-soft);
}

.responses-button--soft:hover {
  background: var(--surface-brand);
}

.responses-button:disabled {
  color: #9b8e94;
  background: #f4f1f2;
  cursor: wait;
  transform: none;
}

.responses-button[hidden],
.responses-empty a[hidden] {
  display: none;
}

.responses-unpublish {
  min-height: 44px;
  margin-top: 2px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}

.responses-unpublish:hover,
.responses-unpublish[data-confirming="true"] {
  color: var(--brand-strong);
}

.responses-unpublish[hidden] {
  display: none;
}

.responses-unpublish:disabled {
  color: #a99da3;
  cursor: wait;
}

.responses-summary {
  padding: 4px 0;
}

.responses-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.responses-summary dl > div {
  min-width: 0;
  padding-right: 12px;
}

.responses-summary dl > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.responses-summary dt {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.25;
}

.responses-summary dd {
  margin: 3px 0 0;
  font-size: clamp(30px, 9vw, 48px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}

.responses-list-section {
  display: grid;
  gap: 18px;
}

.responses-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.responses-list-heading > div {
  display: grid;
  gap: 5px;
}

.responses-list-heading h2 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
}

.responses-list-heading > span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.responses-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.responses-error,
.responses-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 24px 0;
}

.responses-error[hidden],
.responses-empty[hidden] {
  display: none;
}

.responses-error strong,
.responses-empty strong {
  font-size: 22px;
  line-height: 1.15;
}

.responses-error p,
.responses-empty p {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.responses-empty a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-strong);
  font-weight: 650;
}

.responses-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-response {
  display: grid;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.guest-response__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.guest-response__identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.guest-response__identity h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 680;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.guest-response__identity time {
  color: var(--muted);
  font-size: 13px;
}

.guest-response__status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 690;
  white-space: nowrap;
}

.guest-response__status--attending {
  color: var(--success);
  background: var(--success-bg);
}

.guest-response__status--maybe {
  color: var(--waiting);
  background: var(--waiting-bg);
}

.guest-response__status--declined {
  color: var(--declined);
  background: var(--declined-bg);
}

.guest-response__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.guest-response__details > div {
  display: grid;
  gap: 3px;
}

.guest-response__details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.guest-response__details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.guest-response__delete {
  min-height: 40px;
  justify-self: start;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}

.guest-response__delete:hover,
.guest-response__delete[data-confirming="true"] {
  color: var(--brand-strong);
}

.guest-response__delete:disabled {
  color: #a99da3;
  cursor: wait;
}

.responses-load-more {
  min-height: 48px;
  border-radius: 20px;
  color: var(--brand-strong);
  background: var(--surface-soft);
  font-weight: 650;
  cursor: pointer;
}

.responses-load-more[hidden] {
  display: none;
}

.responses-load-more:hover {
  background: var(--surface-brand);
}

@media (min-width: 620px) {
  .responses-actions {
    width: auto;
    grid-template-columns: repeat(3, auto);
  }

  .responses-summary dt {
    min-height: auto;
    font-size: 14px;
  }

  .guest-response__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .responses-button {
    transition: none;
  }
}
