:root {
  color-scheme: dark;
  --ink: #ffffff;
  --line: rgba(255, 255, 255, 0.28);
  --field: rgba(255, 255, 255, 0.08);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #080808;
  font-size: 16px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.8) 28%,
      rgba(0, 0, 0, 0.22) 58%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    url("assets/background.jpeg") center center / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: soft-light;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.invite {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(24px, 6vw, 76px);
}

.invite__content {
  width: min(500px, 100%);
}

.kicker {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

h1,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.copy {
  max-width: 500px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.copy p {
  margin: 0;
}

.link-list {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 44px;
}

.text-link,
.back-link {
  appearance: none;
  display: inline;
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-link:hover,
.back-link:hover {
  opacity: 0.72;
}

.rsvp {
  width: min(320px, 100%);
  margin-top: 24px;
}

.rsvp label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

.rsvp__fields {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.rsvp__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.rsvp__row > * {
  min-width: 0;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--field);
  outline: none;
}

input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

button {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 400;
  line-height: 1;
}

button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.form-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

.form-message--warning {
  min-height: 0;
  margin-top: 0;
  opacity: 0.78;
}

.rsvp-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-link {
  min-height: 40px;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
}

.action-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-shell--inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(24px, 6vw, 76px);
}

.inner-page {
  width: min(500px, 100%);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 18px;
  max-width: 580px;
  margin-top: 0;
}

.faq-list article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-list h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 720px) {
  body::before {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.84) 42%,
        rgba(0, 0, 0, 0.28) 100%
      ),
      url("assets/background.jpeg") 38% bottom / auto 68vh no-repeat,
      #080808;
  }

  .invite {
    align-items: flex-start;
    padding-top: 28px;
  }

  .site-shell--inner {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 28px;
  }
}
