@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/dm-sans-300.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/dm-sans-800.ttf") format("truetype");
}
:root {
  --paper: #ffffff;
  --ink: #214bff;
  --accent: #214bff;
  --line: #dce2ff;
  --soft: #f2f5ff;
  --error: #9c312e;
  --white: #fafafa;
  --radius: 0px;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 300;
  font-size: 19.2px;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 30px 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.7;
}
header {
  text-align: center;
  margin-bottom: 52px;
}
h1 {
  font-size: clamp(42px, 7vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 24px 0 48px;
}
.intro {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
}
#content {
  max-width: 600px;
  margin-inline: auto;
}
.deadline,
.fine {
  font-size: 13px;
  line-height: 1.7;
  color: #4356a4;
}
.deadline {
  margin-top: 4px;
}
h2 {
  font-size: 19.2px;
  font-weight: 300;
  line-height: 1.3;
  margin: 0 0 12px;
}
h3,
legend {
  font-size: 19.2px;
  font-weight: 300;
  line-height: 1.3;
}
p {
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 1px solid var(--accent);
  padding: 14px 21px;
  min-height: 48px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.35;
}
button:hover {
  background: #153bdc;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
}
.secondary:hover {
  background: var(--soft);
}
.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.text-button:hover {
  background: none;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
label {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0 8px;
}
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  min-height: 49px;
  border: 1px solid #555;
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  color: var(--ink);
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
  margin: 0;
  flex-shrink: 0;
}
.choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin: 0;
  min-height: 44px;
  cursor: pointer;
  flex: 1;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
  padding: 20px 0 12px;
  min-width: 0;
}
legend {
  padding: 0 14px 0 0;
}
.event-label {
  margin-bottom: 9px;
}
.event-meta {
  display: block;
  font-size: 12px;
  color: #4356a4;
  margin-top: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 27px 0 0;
  flex-wrap: wrap;
}
.actions button:first-child {
  flex: 1;
}
.notice,
#message {
  padding: 16px 19px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 14px;
}
#message {
  border-color: var(--error);
  color: #742723;
  background: #fbefeb;
}
.household-names {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.household-names li {
  font-size: 27px;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.review-card h3 {
  margin: 0 0 12px;
}
.review-card p {
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.success-mark {
  font-size: 30px;
  color: var(--accent);
}
footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}
footer p {
  margin: 7px 0;
}
footer .fine {
  margin-top: 18px;
  font-size: 12px;
}
:focus-visible {
  outline: 3px solid #173ac8;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
  min-width: 160px;
}
.tag {
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.2px;
  color: #4356a4;
}
.admin-shell {
  max-width: 1100px;
}
.admin-shell header {
  text-align: left;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow: auto;
}
.admin-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.admin-tools button {
  font-size: 13px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
details {
  margin: 20px 0;
}
summary {
  cursor: pointer;
  padding: 12px 0;
}
.saved-at {
  font-size: 13px;
  color: #4356a4;
}
@media (max-width: 540px) {
  main {
    padding: 32px 20px 20px;
  }
  header {
    margin-bottom: 28px;
  }
  fieldset {
    padding: 16px 0 12px;
  }
  h1 {
    letter-spacing: 2px;
  }
  .choice {
    padding: 10px 0;
    min-width: 130px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .row {
    display: block;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
  }
  .admin-shell {
    padding: 22px 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
h2[tabindex="-1"]:focus {
  outline: none;
}

html.embedded .shell > header,
html.embedded #back {
  display: none;
}
html.embedded main {
  padding-top: 12px;
}

#lookup-heading {
  line-height: 1;
  margin-bottom: 16px;
}

.language-picker {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 24px;
}
.language-picker select {
  width: auto;
  min-height: 36px;
  padding: 6px 28px 6px 10px;
  font-size: 14px;
  background: white;
  border-color: var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.review-email {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.review-card strong,
.review-email strong {
  font-weight: 800;
}
#recovery {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 20px 0;
}

/* Keep the optional guest controls compact without shrinking touch targets. */
.plus-one-choice {
  margin: 20px 0 12px;
  padding: 10px 0 4px;
}
.plus-one-choice > p {
  margin: 4px 0 8px;
}
#extra-person > fieldset {
  margin: 12px 0 24px;
  padding: 10px 0 8px;
}
#extra-person label:not(.choice) {
  margin-top: 10px;
}
#extra-person .event-label {
  margin-top: 14px;
  margin-bottom: 6px;
}
