/* Mistflower Crossing: site styles. Mobile first; wider layouts in the media queries at the bottom. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/Quicksand.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fdf6f9;
  --bg-alt: #f7eef4;
  --cream: #fff6e0;
  --ink: #2a1f28;
  --ink-soft: #4a3b52;
  --muted: #7a5a6a;
  --rose: #c96a8a;        /* decoration only: borders, shadows */
  --rose-deep: #a8506f;   /* text and buttons (passes 4.5:1) */
  --rose-deeper: #8f4560;
  --lilac-deep: #6f5594;  /* small labels (passes 4.5:1) */
  --lilac: #9b7bb8;       /* decoration only */
  --display: "Fredoka", "Quicksand", system-ui, sans-serif;
  --body: "Quicksand", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

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

a {
  color: var(--rose-deep);
}

a:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background-color: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem 1rem 4rem;
  background: var(--bg) url("../images/hero-small.webp?v=2") center / cover no-repeat;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7.5rem;
  background: linear-gradient(to bottom, rgb(253 246 249 / 0), var(--bg));
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: 0;
}

.hero__logo {
  width: min(45rem, 92vw);
  filter: drop-shadow(0 0.375rem 1.25rem rgb(201 106 138 / 0.18));
}

.hero__tagline {
  max-width: 30ch;
  margin: 1.125rem auto 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 0 0.75rem var(--cream), 0 0 0.25rem var(--cream);
}

.status {
  display: inline-block;
  margin-top: 1.125rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid rgb(201 106 138 / 0.4);
  border-radius: 999px;
  background-color: rgb(255 246 224 / 0.85);
  color: var(--rose-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- button ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1.625rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background-color: var(--rose-deep);
  box-shadow: 0 0.375rem 1.125rem rgb(168 80 111 / 0.3);
  color: #fff;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background-color: var(--rose-deeper);
  transform: translateY(-2px);
}

/* ---------- sections ---------- */

.section {
  max-width: 67.5rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.section + .section {
  border-top: 1px solid rgb(201 106 138 / 0.15);
}

.section__label {
  margin: 0 0 0.375rem;
  color: var(--lilac-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 1.125rem;
  color: var(--rose-deep);
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.15;
}

.about p {
  max-width: 62ch;
  margin: 0 0 1rem;
}

/* ---------- features ---------- */

.features {
  display: grid;
  gap: 3rem;
}

.feature {
  display: grid;
  gap: 1.125rem;
  margin: 0;
}

.feature__shot {
  overflow: hidden;
  border: 1px solid rgb(155 123 184 / 0.3);
  border-radius: 1.125rem;
  background-color: var(--cream);
  box-shadow: 0 0.625rem 1.875rem rgb(42 31 40 / 0.08);
}

.feature__shot img {
  width: 100%;
}

.feature__title {
  margin: 0 0 0.625rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
}

.feature__text {
  margin: 0;
  color: var(--ink-soft);
}

.feature__credit {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- phone shot (tall) ---------- */

.feature--phone .feature__shot {
  justify-self: center;
  width: 100%;
  max-width: 20rem;
}

/* ---------- small gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  margin: 0;
}

.gallery a {
  overflow: hidden;
  border: 1px solid rgb(155 123 184 / 0.3);
  border-radius: 0.875rem;
  background-color: var(--cream);
  box-shadow: 0 0.5rem 1.5rem rgb(42 31 40 / 0.08);
}

.gallery img {
  width: 100%;
}

.gallery p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- watch ---------- */
.video {
  width: 100%;
  max-width: 22rem;
  margin: 1.5rem auto 0;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgb(168 80 111 / 0.18);
  background-color: var(--ink);
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__more {
  margin-top: 1rem;
  text-align: center;
}

.video__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
}

.video__more svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- follow ---------- */

.follow {
  text-align: center;
}

.follow p {
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 2.25rem 1rem 3rem;
  background-color: var(--bg-alt);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- icon sprite ---------- */

.icon-sprite {
  display: none;
}

/* ---------- section nav ---------- */

.site-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  padding: 0.75rem 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--rose-deep);
}

/* ---------- hero buttons ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.875rem;
}

.button--ghost {
  border: 2px solid var(--rose-deep);
  background-color: rgb(255 246 224 / 0.85);
  box-shadow: none;
  color: var(--rose-deep);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background-color: var(--cream);
  color: var(--rose-deeper);
}

/* ---------- cast ---------- */

.cast__intro {
  max-width: 62ch;
  margin: 0 0 2rem;
}

.cast__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.375rem;
  border: 1px solid rgb(155 123 184 / 0.3);
  border-radius: 1.125rem;
  background-color: #fff;
}

.card__name {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.card__role {
  margin: 0.125rem 0 0.75rem;
  color: var(--lilac-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.card__badge {
  align-self: flex-start;
  margin: 1rem 0 0;
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  background-color: var(--rose-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card--art {
  padding: 0;
  overflow: hidden;
}

.card__art {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: top;
  background: linear-gradient(160deg, #fbe3ec, #fff6e0 55%, #e6dff6);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.375rem;
}

.card--bonus {
  border-style: dashed;
  border-color: var(--lilac);
  background-color: var(--bg-alt);
}

/* ---------- status checklist ---------- */

.checklist {
  display: grid;
  gap: 0.625rem;
  max-width: 62ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "✿";
  position: absolute;
  left: 0;
  color: var(--rose);
}

/* ---------- maker ---------- */

.maker p {
  max-width: 62ch;
  margin: 0 0 1rem;
}

/* ---------- socials ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(155 123 184 / 0.4);
  border-radius: 999px;
  background-color: #fff;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.socials a:hover,
.socials a:focus-visible {
  border-color: var(--rose-deep);
  color: var(--rose-deep);
}

.socials svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---------- wider screens ---------- */

@media (min-width: 48em) {
  body {
    font-size: 1.125rem;
  }

  .hero {
    background-image: url("../images/hero.webp?v=2");
  }

  .hero__tagline {
    font-size: 1.4rem;
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

  .section__title {
    font-size: 2.4rem;
  }

  .features {
    gap: 3.5rem;
  }

  .feature {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.25rem;
    align-items: center;
  }

  .feature--flip {
    grid-template-columns: 1fr 1.4fr;
  }

  .feature--flip .feature__shot {
    order: 2;
  }

  .feature--wide {
    grid-template-columns: 1fr;
    gap: 1.125rem;
  }

  .feature--phone {
    grid-template-columns: 20rem 1fr;
  }

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

  .card--art {
    flex-direction: row;
    grid-column: span 2;
  }

  .card__art {
    width: 42%;
    height: auto;
    min-height: 100%;
  }

  .site-nav ul {
    justify-content: flex-end;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}

/* ---------- click to enlarge ---------- */

.zoom {
  display: block;
  cursor: zoom-in;
}

.zoom:focus-visible {
  outline-offset: -3px;
}

.feature__shot:has(.zoom:hover) {
  box-shadow: 0 0.75rem 2.25rem rgb(42 31 40 / 0.16);
}

.lightbox {
  width: fit-content;
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background-color: var(--cream);
  overflow: auto;
}

.lightbox::backdrop {
  background-color: rgb(42 31 40 / 0.75);
}

.lightbox__img {
  display: block;
  width: auto;
  max-width: 96vw;
  height: auto;
  max-height: 94vh;
}

.lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background-color: var(--rose-deep);
  box-shadow: 0 0.25rem 0.75rem rgb(42 31 40 / 0.3);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* phones: show screenshots at a readable size and let people swipe across */
@media (max-width: 48em) {
  .lightbox {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .lightbox__img {
    width: auto;
    max-width: none;
    min-width: 56rem;
  }
}

.lightbox__close:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 2px;
}
