@font-face {
  font-family: "Bitter";
  src: url("/assets/fonts/Bitter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("/assets/fonts/Bitter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("/assets/fonts/Bitter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff6e9;
  --ink: #2b2527;
  --muted: #306db5;
  --accent: #e94c2d;
  --brand-blue: #306db5;
  --field: #fffaf1;
  --line: rgba(43, 37, 39, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Bitter", Georgia, serif;
  color: var(--ink);
  background: var(--bg);
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.landing-page,
.legal-page,
.admin-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.landing-page {
  display: block;
}

.legal-page {
  display: block;
}

.landing-page > * + * {
  margin-top: 40px;
}

.legal-page > * + * {
  margin-top: 32px;
}

.landing-page > .section-divider {
  margin-top: 36px;
  margin-bottom: 36px;
}

.legal-page > .section-divider {
  margin-top: 28px;
  margin-bottom: 18px;
}

.landing-page > .section-divider + * {
  margin-top: 0;
}

.legal-page > .section-divider + * {
  margin-top: 0;
}

.hero {
  display: grid;
  gap: 20px;
  align-items: start;
}

.hero__logo {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero__logo-image {
  width: min(100%, 440px);
}

.hero__more-image {
  width: min(100%, 180px);
  margin-top: 10px;
}

.hero__motif {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero__motif-image {
  width: min(100%, 500px);
  transform-origin: center top;
}

.hero__kicker {
  margin: 0;
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 31rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.hero__kicker strong,
.invite__summary strong,
.section-text strong,
.bullet-list strong,
.iban-box__label strong {
  font-weight: 700;
}

.section-divider {
  height: 8px;
  background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.7px);
  background-position: left center;
  background-repeat: repeat-x;
  background-size: 12px 8px;
}

.invite {
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.invite__eyebrow {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.18rem, 1.9vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
}

.invite__date {
  margin: 0;
  color: var(--brand-blue);
  width: 100%;
  max-width: none;
  font-size: clamp(2.65rem, 7.1vw, 5.15rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.invite__summary,
.invite__location,
.invite__contact,
.section-text,
.section-note {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.7;
}

.invite__summary {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.invite__location {
  color: var(--muted);
  font-size: 0.98rem;
}

.invite__location a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.invite__contact {
  color: var(--accent);
  font-size: 0.96rem;
}

.signup {
  display: grid;
  gap: 28px;
}

.signup__intro {
  max-width: 34rem;
}

.signup__form-column {
  display: grid;
  gap: 18px;
  order: 1;
}

.section-tag {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  line-height: 0.98;
}

.form-card {
  display: grid;
  gap: 12px;
}

.form-card--narrow {
  max-width: 28rem;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 4px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span,
.checkbox span {
  font-size: 0.92rem;
  line-height: 1.45;
}

.field span,
.checkbox span,
.bullet-list,
.footer__nav a {
  color: var(--brand-blue);
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  background: var(--field);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 142px;
}

.field input:focus,
.field textarea:focus {
  outline: 1px solid var(--brand-blue);
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.checkbox input {
  margin-top: 4px;
}

.field__error {
  color: #a52d1f;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 0;
  padding: 12px 18px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.form-card .button--primary {
  width: 100%;
}

.button--primary {
  background: var(--accent);
  color: #fff6e9;
}

.button--secondary,
.button--ghost {
  background: #f4ead8;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 1px solid var(--brand-blue);
  outline-offset: 2px;
}

.signup__aside {
  max-width: 31rem;
  order: 2;
  display: grid;
  align-content: start;
  gap: 0;
}

.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

.signup__donation {
  display: grid;
  gap: 12px;
  padding-top: 44px;
}

.hcaptcha-wrap {
  min-height: 78px;
}

.signup__divider {
  width: 100%;
  height: 8px;
  margin-top: 26px;
  background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.7px);
  background-position: left center;
  background-repeat: repeat-x;
  background-size: 12px 8px;
}

.content-stack {
  display: grid;
  gap: 30px;
}

.content-block {
  display: grid;
  gap: 14px;
}

.iban-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.iban-box__label {
  color: var(--brand-blue);
  font-size: 0.92rem;
}

.iban-box__label strong {
  font-weight: 700;
}

.iban-box__value {
  color: var(--accent);
  font-size: clamp(1.28rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.footer__logo {
  width: min(100%, 290px);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer__nav a {
  text-decoration: none;
}

.flash {
  padding: 12px 14px;
  line-height: 1.6;
}

.flash--success {
  background: rgba(82, 161, 98, 0.12);
}

.flash--error {
  background: rgba(190, 70, 55, 0.12);
}

.flash--warning {
  background: rgba(215, 154, 58, 0.12);
}

.success-card {
  display: grid;
  gap: 14px;
  padding: 20px 18px;
  background: var(--field);
}

.success-card__lead {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.35;
}

.success-card .button {
  width: 100%;
}

.success-card a:not(.button) {
  color: var(--brand-blue);
}

.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page__panel,
.admin-page__panel {
  display: grid;
  gap: 14px;
}

.legal-page__header {
  display: flex;
  align-items: flex-start;
}

.legal-page__brand {
  display: inline-flex;
}

.legal-page__logo {
  width: min(100%, 320px);
}

.legal-page__content {
  display: grid;
  gap: 16px;
  color: var(--brand-blue);
  line-height: 1.7;
}

.legal-page__content p {
  margin: 0;
}

.legal-page__content h2 {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.05;
}

.legal-page__content h3,
.legal-page__content h4 {
  margin: 8px 0 0;
  color: var(--brand-blue);
  line-height: 1.2;
}

.legal-page__content ul {
  margin: 0;
  padding-left: 20px;
}

.legal-page__content li,
.legal-page__content a {
  color: var(--brand-blue);
}

.admin-page__panel--wide {
  gap: 18px;
}

.admin-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(43, 37, 39, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--brand-blue);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .landing-page,
  .legal-page,
  .admin-page {
    width: min(1080px, calc(100% - 72px));
    padding-top: 30px;
  }

  .hero {
    grid-template-columns: minmax(280px, 440px) minmax(360px, 1fr);
    gap: 42px;
  }

  .signup {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    gap: 34px;
    align-items: stretch;
  }

  .signup__aside {
    grid-column: 1;
    grid-row: 1;
    order: 1;
    height: 100%;
  }

  .signup__form-column {
    grid-column: 2;
    grid-row: 1;
    order: 2;
  }

  .signup__donation {
    margin-top: auto;
    padding-top: 56px;
  }

  .signup__divider {
    width: calc(100% - 18px);
    margin-top: 30px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
  }

  .signup__intro {
    max-width: none;
  }

  .admin-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 760px) and (max-width: 920px) {
  .invite__date {
    font-size: clamp(2.55rem, 5.4vw, 3.1rem);
    line-height: 0.96;
    letter-spacing: -0.024em;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

@media (max-width: 759px) {
  .landing-page,
  .legal-page,
  .admin-page {
    width: min(100%, calc(100% - 28px));
    padding-top: 20px;
  }

  .hero {
    gap: 32px;
  }

  .hero__logo {
    gap: 24px;
  }

  .hero__motif {
    justify-content: flex-start;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .hero__more-image {
    width: min(100%, 180px);
    margin-top: 2px;
  }

  .hero__kicker {
    margin-top: 0;
  }

  .signup__divider {
    width: 100%;
    margin-top: 36px;
    margin-bottom: 36px;
  }

  .signup__donation {
    padding-top: 0;
  }

  .invite {
    justify-items: center;
    text-align: center;
    width: 100%;
  }

  .invite__date {
    font-size: 25px;
    line-height: 0.92;
    letter-spacing: -0.015em;
    text-wrap: wrap;
  }

  .content-stack {
    gap: 0;
  }

  .content-block {
    padding-top: 0;
  }

  .content-block + .content-block {
    margin-top: 40px;
    padding-top: 48px;
    position: relative;
  }

  .content-block + .content-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.7px);
    background-position: left center;
    background-repeat: repeat-x;
    background-size: 12px 8px;
  }

  .button,
  .button--primary,
  .button--secondary,
  .button--ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-divider,
  .signup__divider,
  .content-block + .content-block::before {
    animation: dottedFlow 24s linear infinite;
  }

  .hero__motif-image {
    animation: motifFloat 7.5s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@keyframes motifFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, 8px, 0) rotate(-1deg);
  }
}

@keyframes dottedFlow {
  from {
    background-position: 0 center;
  }

  to {
    background-position: 72px center;
  }
}
