/* Gather: warm editorial paper, deliberate contrast, no external assets. */
:root {
  --ink: #263a31;
  --muted: #646b61;
  --paper: #f5f3eb;
  --line: #d7d9ce;
  --accent: #315747;
  --white: #fffef9;
  --danger: #9b3026;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}
h2 {
  font-size: 1.8rem;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: white;
  padding: 11px 19px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
}
button:hover,
.button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding: 8px 12px;
}
.danger {
  color: var(--danger);
  background: transparent;
  border-color: #cdb7af;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b7bfb3;
  border-radius: 4px;
  background: #fffefb;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
}
input[type="color"] {
  padding: 5px;
  min-height: 48px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
input[readonly] {
  background: #eeeee4;
  font-size: 0.85rem;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 16px;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: -7px;
  margin-bottom: 20px;
}
.small {
  font-size: 0.8rem;
}
.muted {
  color: var(--muted);
}
.eyebrow,
.section-label {
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.section-label {
  padding-top: 20px;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}
.masthead {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 4vw;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  letter-spacing: -0.07em;
  line-height: 1;
  text-decoration: none;
}
.dot {
  color: #b7684b;
}
.strap {
  font-size: 0.78rem;
  color: var(--muted);
}
nav {
  margin-left: auto;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 44px 4vw 70px;
  min-height: 75vh;
}
footer {
  padding: 24px 4vw;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 38px;
}
.page-heading h1 {
  font-size: 2.4rem;
}
.page-heading p {
  margin-bottom: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
}
aside {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}
.small-heading {
  font:
    600 0.8rem "Avenir Next",
    sans-serif;
  letter-spacing: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.event-item {
  width: 100%;
  text-align: left;
  align-items: flex-start;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  padding: 18px 8px;
  gap: 5px;
}
.event-item strong {
  font-weight: 600;
}
.event-item span {
  font-size: 0.73rem;
  color: var(--muted);
}
.event-item.active {
  background: #e4e9de;
  border-radius: 4px;
}
.empty {
  padding: 80px 8%;
  background: #e9ecdf;
  min-height: 500px;
}
.empty h2 {
  font-size: 3rem;
}
.empty p:not(.eyebrow) {
  max-width: 350px;
  color: var(--muted);
}
.editor-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.compose {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.05fr);
  gap: 36px;
}
.compose .section-label:first-child {
  padding-top: 0;
  border: 0;
}
.preview-panel {
  position: sticky;
  top: 20px;
  align-self: start;
  background: #e9eade;
  padding: 24px;
  border-radius: 8px;
}
.preview-caption {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}
.preview-panel > .small {
  text-align: center;
  margin: 18px 0 0;
}
.invitation {
  --accent: #315747;
  position: relative;
  overflow: hidden;
  padding: 45px 30px 32px;
  background: #fffef4;
  border: 1px solid #d2d9c4;
  min-height: 520px;
  text-align: center;
  box-shadow: 0 9px 20px #253a3110;
  color: #263a31;
}
.invitation h2 {
  font-size: clamp(2.3rem, 3vw, 3.8rem);
  line-height: 1.04;
  margin: 20px 0 18px;
  overflow-wrap: anywhere;
}
.invitation .eyebrow {
  color: var(--accent);
  font-size: 0.64rem;
}
.invitation .ornament {
  font-family: Georgia, serif;
  font-size: 3.6rem;
  color: var(--accent);
  line-height: 1.2;
  margin: 0 0 18px;
}
.invitation .byline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
}
.rule {
  width: 45px;
  height: 1px;
  background: var(--accent);
  margin: 28px auto;
}
.invitation p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.invitation .event-date {
  font-weight: 600;
}
.invitation .location {
  margin-top: 20px;
  font-weight: 600;
}
.invitation .message {
  margin: 24px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.invitation .deadline {
  margin-top: 28px;
  font-size: 0.68rem;
  color: #5f675c;
}
.garden {
  border-radius: 150px 150px 3px 3px;
  border: 2px solid #d1d9c3;
  padding-top: 42px;
}
.garden:before,
.garden:after {
  content: "";
  position: absolute;
  top: 28px;
  width: 45px;
  height: 100px;
  border: 1px solid var(--accent);
  border-radius: 100% 0 100% 0;
  opacity: 0.18;
  transform: rotate(25deg);
  pointer-events: none;
}
.garden:before {
  left: 18px;
}
.garden:after {
  right: 18px;
  transform: rotate(70deg);
}
.confetti {
  background: #ffeadb;
  border-color: #e6c6b3;
  border-radius: 2px 45px 2px 2px;
}
.confetti .ornament {
  border: 2px solid var(--accent);
  width: 73px;
  height: 73px;
  line-height: 69px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  transform: rotate(-12deg);
}
.confetti:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 22px;
  top: 130px;
  background: #c89f37;
  transform: rotate(23deg);
  border-radius: 50% 0;
}
.confetti:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 40px;
  right: 22px;
  bottom: 100px;
  background: var(--accent);
  transform: rotate(-32deg);
}
.midnight {
  background: #253b37;
  color: #fff5dd;
  border: 7px double #aaa47b;
}
.midnight .eyebrow,
.midnight .ornament {
  color: #e5d6a0;
}
.midnight .rule {
  background: #d8c692;
}
.midnight .deadline {
  color: #d2d5c3;
}
.midnight h2 {
  font-style: italic;
}
.midnight .ornament {
  font-size: 4.5rem;
}
#sharing {
  margin-top: 45px;
}
#sharing p {
  max-width: 630px;
  color: var(--muted);
}
#sharing label {
  max-width: 720px;
}
#responses {
  margin-top: 40px;
}
.response-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.response-heading h2 {
  margin: 0;
}
.totals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 26px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.totals p {
  margin: 0;
  font-size: 0.85rem;
}
.totals strong {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}
.totals .attendance {
  margin-left: auto;
  color: var(--muted);
}
.response-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.response-row p {
  margin: 4px 0;
}
.response-row .message {
  font-size: 0.85rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 0.7rem;
  padding: 4px 12px;
  background: #e4e8da;
  border-radius: 30px;
}
.response-list {
  margin-bottom: 20px;
}
.login {
  max-width: 440px;
  margin: 55px auto 90px;
}
.login h1 {
  font-size: 3.4rem;
  margin-bottom: 22px;
}
.login form {
  margin: 35px 0 24px;
}
.login form button {
  width: 100%;
}
.login .small {
  text-align: center;
  color: var(--muted);
}
.guest-layout {
  max-width: 1150px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: start;
  padding-top: 50px;
}
.guest-layout .invitation {
  min-height: 650px;
  padding: 50px 40px;
}
.guest-layout .invitation h2 {
  font-size: 3.8rem;
}
.guest-layout .invitation .message {
  font-size: 0.98rem;
}
.rsvp {
  padding-top: 35px;
}
.rsvp h1 {
  font-size: 2.8rem;
}
.rsvp form {
  margin-top: 28px;
}
fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
.rsvp button {
  width: 100%;
}
.confirmation p {
  max-width: 390px;
}
.confirmation .actions > * {
  flex: 1;
}
.calendar {
  display: inline-block;
  margin-top: 25px;
  font-size: 0.85rem;
  min-height: 44px;
}
.privacy-note {
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
}
.closed {
  background: #e9e2d4;
  padding: 15px;
}
.privacy {
  max-width: 650px;
  margin: 20px auto;
}
.privacy h1 {
  margin-bottom: 40px;
}
.privacy h2 {
  font-size: 1.65rem;
  margin-top: 30px;
}
.privacy p {
  line-height: 1.8;
}
#notice:empty {
  display: none;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 600px);
  width: max-content;
  background: #263e31;
  color: white;
  border: 1px solid #ffffff80;
  padding: 13px 23px;
  border-radius: 6px;
  box-shadow: 0 4px 20px #0002;
  z-index: 5;
  font-size: 0.85rem;
}
#notice.error {
  background: #8c3026;
}
:focus-visible {
  outline: 3px solid #ad6428;
  outline-offset: 4px;
}
.sr-only,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  clip: auto;
  background: white;
  padding: 15px;
  z-index: 10;
}
@media (min-width: 1500px) {
  .masthead,
  footer {
    padding-left: calc((100vw - 1380px) / 2);
    padding-right: calc((100vw - 1380px) / 2);
    margin: 0;
  }
  .masthead {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 22px;
  }
  .compose {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .preview-panel {
    position: static;
    max-width: 480px;
  }
  .guest-layout {
    gap: 30px;
  }
  .guest-layout .invitation {
    padding: 40px 24px;
  }
  .guest-layout .invitation h2 {
    font-size: 3rem;
  }
  .editor-heading {
    display: block;
  }
  .editor-heading h2 {
    margin-bottom: 6px;
  }
  .attendance {
    width: 100%;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
}
@media (max-width: 680px) {
  .masthead {
    margin: 0 6vw;
    gap: 16px;
  }
  .strap {
    display: none;
  }
  main {
    padding: 30px 6vw 65px;
  }
  .page-heading {
    display: block;
  }
  .page-heading button {
    margin-top: 16px;
  }
  .workspace {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
    margin-bottom: 28px;
  }
  #events {
    display: flex;
    gap: 12px;
    overflow-x: auto;
  }
  .event-item {
    min-width: 165px;
    max-width: 220px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px;
  }
  .small-heading {
    margin-bottom: 10px;
  }
  .compose {
    display: flex;
    flex-direction: column;
  }
  .preview-panel {
    padding: 18px;
    max-width: none;
  }
  .preview-panel .invitation {
    min-height: 520px;
  }
  .response-heading {
    display: block;
  }
  .response-heading .actions {
    margin-top: 18px;
  }
  .response-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .response-row button {
    grid-column: 1/-1;
    justify-self: start;
    padding-left: 0;
  }
  .guest-layout {
    display: block;
    padding-top: 28px;
  }
  .guest-layout .invitation {
    min-height: 570px;
    padding: 42px 25px;
  }
  .guest-layout .invitation h2 {
    font-size: 3.2rem;
  }
  .rsvp {
    padding-top: 40px;
  }
  .rsvp h1 {
    font-size: 2.5rem;
  }
  .login {
    margin: 35px auto 60px;
  }
  .login h1 {
    font-size: 2.9rem;
  }
  .pair {
    gap: 12px;
  }
  .totals {
    gap: 18px;
  }
  .totals .attendance {
    margin: 0;
  }
  .empty {
    min-height: 340px;
    padding: 40px 25px;
  }
  .empty h2 {
    font-size: 2.5rem;
  }
  footer {
    display: block;
    padding: 22px 6vw;
  }
  footer a {
    display: block;
    margin-top: 8px;
  }
  #notice {
    bottom: 12px;
    padding: 12px 16px;
  }
  .confirmation .actions {
    display: block;
  }
  .confirmation .actions > * {
    width: 100%;
    margin-bottom: 10px;
  }
}
.attendance-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 26px 0;
}
.confirmed-attendance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 28px;
  flex: 1 1 340px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9ecdf;
}
.attendance-overview h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.attendance-primary p {
  margin: 0;
}
.attendance-number {
  display: inline-block;
  font:
    400 4.5rem/1 Georgia,
    serif;
  letter-spacing: -0.05em;
  margin-right: 12px;
  font-variant-numeric: lining-nums tabular-nums;
}
.attendance-primary span {
  font-size: 0.85rem;
}
.attendance-breakdown {
  display: flex;
  gap: 24px;
  margin: 0;
}
.attendance-breakdown dt {
  font-size: 0.8rem;
}
.attendance-breakdown dd {
  margin: 4px 0 0;
  font-size: 1.7rem;
  font-weight: 600;
}
.attendance-explanation {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.reply-counts {
  flex: 0 1 220px;
}
.reply-counts p {
  margin-bottom: 6px;
}
@media (max-width: 680px) {
  .confirmed-attendance {
    flex-basis: 100%;
    gap: 18px;
    padding: 20px;
  }
  .attendance-breakdown {
    gap: 16px;
  }
  .attendance-number {
    font-size: 4rem;
  }
}
/* Address text remains plain, including multiline directions. Maps never embeds. */
.event-address {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 600;
}
.check {
  min-height: 44px;
}
.check input {
  flex-shrink: 0;
}

/* Unicorn: an illustrated storybook keepsake, with quiet, readable ink. */
.invitation.unicorn {
  background: #fffaf6;
  color: #493956;
  border: 1px solid #d7c4e5;
  border-radius: 110px 110px 12px 12px;
  padding: 26px 28px 34px;
  box-shadow:
    inset 0 0 0 7px #f5edf9,
    0 12px 30px #68507912;
}
.unicorn-art {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto 8px;
}
.unicorn .eyebrow {
  color: #72517e;
  letter-spacing: 0.22em;
}
.invitation.unicorn h2 {
  color: #654775;
  font-style: italic;
  letter-spacing: -0.045em;
  margin: 14px 0;
  font-size: clamp(2.3rem, 3.6vw, 3.5rem);
  text-wrap: balance;
}
.unicorn .byline {
  color: #715a7e;
}
.unicorn .rule {
  background: #c6a9d6;
  width: 58px;
  margin: 22px auto;
}
.unicorn .deadline {
  color: #715e7d;
}
.unicorn .map-link {
  color: #654775;
}
.guest-layout:has(.unicorn) {
  --ink: #493956;
  --muted: #715e7d;
  --accent: #765087;
}
body:has(.guest-layout .unicorn) {
  background: #f6f0f8;
}
.guest-layout .invitation.unicorn {
  padding: 25px 34px 35px;
}
@media (max-width: 680px) {
  .guest-layout .invitation.unicorn {
    padding: 20px 24px 30px;
  }
  .unicorn-art {
    max-width: 270px;
  }
  .guest-layout .invitation.unicorn h2 {
    font-size: 2.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
