/* Frequency Of Love Foundation — splash page
   Design reference: Figma "victoriamonet" / home (1440 × 882) */

:root {
  --color-ink: #050505;
  --color-accent: #c6aa8d;
  --color-overlay: rgba(25, 21, 14, 0.75);
  --font-display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-ink);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8.2vw, 118px) clamp(20px, 4vw, 56px) clamp(48px, 7.6vw, 109px);
  gap: 0;
}

/* ---------- Type ---------- */

.title {
  margin: 0;
  max-width: 1217px;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 0.97;
  font-weight: 400;
  text-transform: uppercase;
}

.subtitle {
  margin: clamp(28px, 3.75vw, 54px) 0 0;
  max-width: 906px;
  font-size: clamp(24px, 2.78vw, 40px);
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
}

.body-copy {
  max-width: 866px;
  margin-top: clamp(18px, 1.9vw, 27px);
  font-size: clamp(16px, 1.6vw, 23px);
  line-height: 1.35;
}

.body-copy p {
  margin: 0;
}

.body-copy p + p {
  margin-top: 1.35em;
}

/* ---------- Actions ---------- */

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 1.3vw, 18px);
  width: min(100%, 360px);
  margin-top: clamp(30px, 2.7vw, 39px);
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 clamp(20px, 2vw, 28px);
  background: none;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-family: inherit;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-ink);
}

/* ---------- Social ---------- */

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: clamp(40px, 4.1vw, 59px);
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.social__link:hover,
.social__link:focus-visible {
  opacity: 0.7;
}

.social__link img {
  display: block;
  height: 26px;
  width: auto;
}

.social__link--x img {
  height: 24px;
}

.social__link--youtube img {
  height: 20px;
}

/* ---------- Donate lightbox ---------- */

body.is-modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.82);
}

.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: 100%;
  background-color: #fff;
  border: 1.5px solid var(--color-accent);
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 12px;
  padding-left: clamp(16px, 2vw, 24px);
  background-color: var(--color-ink);
  color: var(--color-accent);
}

.modal__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.modal__close {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1.5px solid var(--color-accent);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Two centred bars instead of a text glyph, so the cross is
   geometrically centred rather than dependent on font metrics. */
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  margin: -0.75px 0 0 -8.5px;
  background-color: var(--color-accent);
  transition: background-color 0.25s ease;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__close:hover,
.modal__close:focus-visible {
  background-color: var(--color-accent);
}

.modal__close:hover::before,
.modal__close:hover::after,
.modal__close:focus-visible::before,
.modal__close:focus-visible::after {
  background-color: var(--color-ink);
}

.modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal__body iframe {
  display: block;
  width: 100%;
  min-height: 1700px;
  border: 0;
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .body-copy p + p {
    margin-top: 1.1em;
  }

  .button {
    min-height: 48px;
  }

  .social {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
