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

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

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/Quicksand.woff2") format("woff2"),
       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: 6.5rem 1rem 4rem; /* room for the menu, which wraps to two rows on phones */
  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);
}

/* The gameplay trailer sits inside the opening screen so it shows without scrolling */

.hero__trailer {
  width: 100%;
  max-width: 34rem;
  margin-top: 1.125rem;
}

.hero__trailer .section__label {
  margin: 0;
}

.hero__trailer .video {
  margin-top: 0.5rem;
}

.hero__caption {
  margin: 0.625rem 0 0;
  color: var(--ink);
  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);
}

/* Landscape videos (the playthroughs); the default box is for vertical Shorts */

.video--wide {
  max-width: 52rem;
  aspect-ratio: 16 / 9;
}

.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 {
    padding-top: 3rem;
    background-image: url("../images/hero.webp?v=2");
  }

  .hero__tagline {
    font-size: 1.4rem;
  }

  .hero__trailer {
    max-width: 40rem;
  }

  .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);
}

/* Phones first: the lightbox fills the screen and the screenshot stays readable, so people swipe across it.
   From 48em up (below) it becomes a centered box that fits the picture. */
.lightbox {
  width: 100vw;
  max-width: 96vw;
  max-height: 100vh;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: var(--cream);
  overflow: auto;
}

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

.lightbox__img {
  display: block;
  width: auto;
  max-width: none;
  min-width: 56rem;
  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;
}

@media (min-width: 48em) {
  .lightbox {
    width: fit-content;
    max-height: 94vh;
    border-radius: 0.75rem;
  }

  .lightbox__img {
    max-width: 96vw;
    min-width: 0;
  }
}

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

/* ---------- devlog (added 2026-11-05) ---------- */

/* Latest posts on the home page, and the archive list on devlog/index.html */

.devlog-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.devlog-list li {
  display: flex;
  margin: 0;
}

.devlog-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(155 123 184 / 0.3);
  border-radius: 1.125rem;
  background-color: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.devlog-card:hover,
.devlog-card:focus-visible {
  border-color: var(--rose-deep);
  box-shadow: 0 0.5rem 1.5rem rgb(42 31 40 / 0.08);
}

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

.devlog-card__title {
  margin: 0 0 0.5rem;
  color: var(--rose-deep);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

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

.devlog-more {
  margin: 1.75rem 0 0;
}

.devlog-more a {
  font-family: var(--display);
  font-weight: 600;
}

/* Card thumbnail: the post's share image, or the site gradient when a post has none */

.devlog-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #fbe4ee 0%, #f3e6f7 55%, #e5e9f8 100%);
}

.devlog-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
}

/* The archive list: picture on top on phones, beside the text from 36em up */

@media (min-width: 36em) {
  .devlog-list--archive .devlog-card {
    flex-direction: row;
  }

  .devlog-list--archive .devlog-card__img {
    flex: 0 0 11rem;
    width: 11rem;
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* Quoted game lines and embedded video inside a post */

.post__body blockquote {
  margin: 1.125rem 0;
  padding: 0.75rem 1.125rem;
  border-left: 3px solid var(--rose);
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: rgb(201 106 138 / 0.06);
  font-style: italic;
}

.post__body blockquote p {
  margin: 0;
}

.post__body .video {
  margin: 1.5rem 0 0.75rem;
}

/* A single post */

.post-top {
  padding: 6.5rem 1rem 0;
  text-align: center;
}

.post-top__home img {
  width: min(16rem, 70vw);
  margin: 0 auto;
}

.post {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3.5rem;
}

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

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

.post__body > p {
  margin: 0 0 1.125rem;
}

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

.post__body ul {
  margin: 0 0 1.125rem;
  padding-left: 1.5rem;
}

.post__body li {
  margin: 0 0 0.375rem;
}

.post__body figure {
  margin: 1.5rem 0;
}

.post__body figure img {
  width: 100%;
  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);
}

.post__body figure.figure--narrow img {
  max-width: 24rem;
  margin: 0 auto;
}

.post__body figcaption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.post__credits {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(201 106 138 / 0.15);
  color: var(--muted);
  font-size: 0.875rem;
}

.post__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 2.5rem 0 0;
  font-family: var(--display);
  font-weight: 600;
}

.post__nav a {
  text-decoration: none;
}

.post__nav a:hover {
  text-decoration: underline;
}

.post__newsletter {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 3.5rem;
  text-align: center;
}

.post__newsletter p {
  max-width: 52ch;
  margin: 0 auto 1rem;
}

.post__newsletter .newsletter {
  display: flex;
  justify-content: center;
}

@media (min-width: 48em) {
  .devlog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .devlog-list--archive {
    grid-template-columns: 1fr;
  }

  .post__title {
    font-size: 2.6rem;
  }

  .post-top {
    padding-top: 1.5rem;
  }
}

/* The newsletter box under the social links (was an inline style on the div until 2026-11-06) */

.follow .newsletter {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- cast swatches (added 2026-11-05) ----------
   One class per character sets --c; the rules below read it. Reuse these classes anywhere a character's
   color is wanted (profile pages, the devlog, social cards): the color lives here and nowhere else. */

.card--china { --c: #7fd6b8; }
.card--rei { --c: #b9c8d6; }
.card--poppy { --c: #d9534f; }
.card--mimi { --c: #ff5fa2; }
.card--sakura { --c: #264a73; }
.card--erika { --c: #352838; }
.card--jax { --c: #7c3aed; }
.card--kenji { --c: #ff8c3a; }
.card--sylas { --c: #7fc8f5; }
.card--lucien { --c: #c4b0e6; }
.card--vesper { --c: #2bb3a6; }
.card--griffon { --c: #2ea86a; }

.card {
  border-top: 4px solid var(--c, rgb(155 123 184 / 0.3));
}

.card--art {
  border-top-width: 1px;
}

.card--art .card__body {
  border-top: 4px solid var(--c);
}

.card__swatch {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45rem;
  border-radius: 50%;
  background-color: var(--c);
  vertical-align: 0.05em;
}

@media (min-width: 48em) {
  .card--art .card__body {
    border-top: none;
    border-left: 4px solid var(--c);
  }
}

/* Griffon's bonus card takes the last row on its own, so the grid ends square */

@media (min-width: 48em) {
  .card--bonus {
    grid-column: 1 / -1;
  }

  .card--bonus .card__text {
    max-width: 62ch;
  }
}

/* ---------- text-only sections sit in a centered column (added 2026-11-05) ---------- */

.section.about > *,
.section.maker > * {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- devlog comments (added 2026-11-06; markup comes from comments/lib.php) ---------- */

.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(201 106 138 / 0.15);
}

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

.comment-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid rgb(155 123 184 / 0.2);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  align-items: baseline;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comment-name {
  color: var(--rose-deep);
}

.comment-author {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.comment-date {
  color: var(--lilac-deep);
}

.comment-body p {
  margin: 0 0 0.625rem;
}

.comment-body p:last-child {
  margin-bottom: 0;
}

.comment-body a {
  word-break: break-all;
}

.comment-notice {
  margin: 0 0 1.25rem;
  padding: 0.875rem 1.125rem;
  border-radius: 1rem;
}

.comment-notice-ok {
  background-color: rgb(127 214 184 / 0.18);
  border: 1px solid rgb(127 214 184 / 0.7);
}

.comment-notice-error {
  background-color: rgb(217 83 79 / 0.1);
  border: 1px solid rgb(217 83 79 / 0.5);
}

.comment-form label {
  display: block;
  margin-bottom: 1.125rem;
  color: var(--lilac-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgb(155 123 184 / 0.4);
  border-radius: 0.875rem;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--rose-deep);
  outline-offset: 1px;
  border-color: var(--rose-deep);
}

.comment-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.comment-row {
  display: grid;
  gap: 0 1.25rem;
}

.comment-req,
.comment-opt {
  margin-left: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.comment-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.375rem;
}

.comment-hint {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 36em) {
  .comment-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- cookie bar and privacy page (added 2026-11-06; markup comes from js/consent.js) ---------- */

.cookie-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 90;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.125rem 1.375rem;
  border: 1px solid rgb(155 123 184 / 0.35);
  border-radius: 1.25rem;
  background-color: #fff;
  color: var(--ink);
  box-shadow: 0 0.75rem 2.5rem rgb(42 31 40 / 0.18);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.625rem;
}

.cookie-actions .button {
  margin: 0;
  padding: 0.7rem 1.125rem;
}

.button--ghost {
  background-color: transparent;
  color: var(--rose-deep);
  border: 1px solid rgb(201 106 138 / 0.6);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background-color: rgb(201 106 138 / 0.1);
}

.post__body code {
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  background-color: var(--bg-alt);
  font-size: 0.9em;
}

/* Below 40em the bar stacks (the base rules); from 40em up it sits in one row. */

.cookie-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
}

.cookie-actions .button {
  flex: 1;
  text-align: center;
}

@media (min-width: 40em) {
  .cookie-bar {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .cookie-actions .button {
    flex: none;
  }
}

/* Small server-rendered pages (a bad moderation link, a missing post) use the post layout with no inline CSS. */

.page-plain {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* ---------- 404 page (added 2026-11-07) ---------- */

.not-found {
  text-align: center;
}

.not-found .post__title {
  font-size: 1.75rem;
}

.not-found .button-row {
  margin-top: 1.75rem;
}

@media (min-width: 48em) {
  .not-found .post__title {
    font-size: 2.4rem;
  }
}

/* ---------- press kit (added 2026-11-07) ---------- */

.press {
  max-width: 52rem;
}

.press__logline {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.5rem;
}

.facts dt {
  color: var(--lilac-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.press__cast {
  columns: 2;
  column-gap: 2rem;
  padding-left: 0;
  list-style: none;
}

.press__cast li {
  break-inside: avoid;
  padding-left: 0;
}

.press__cast .card__swatch {
  margin-right: 0.5rem;
}

.press__gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.press__gallery figure {
  margin: 0;
}

.press__gallery figcaption {
  font-size: 0.8rem;
}

@media (min-width: 40em) {
  .press__gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- alpha forms (bug report, survey; added 2026-11-07) ---------- */

.alpha-form {
  max-width: 44rem;
}

.alpha-form select {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgb(155 123 184 / 0.4);
  border-radius: 0.875rem;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.alpha-form input[type="file"] {
  display: block;
  margin-top: 0.5rem;
  font: inherit;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.alpha-form .field-hint {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.choice {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.alpha-form .choice legend {
  margin-bottom: 0.5rem;
  color: var(--lilac-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alpha-form .choice__opt {
  display: flex;
  margin-bottom: 0.45rem;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.alpha-form .choice__opt input,
.alpha-form .scale__opt input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--rose-deep);
}

.scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.alpha-form .scale__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.alpha-form .scale__end {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.alpha-form .scale__end:first-child {
  flex-basis: 100%;
}

@media (min-width: 36em) {
  .alpha-form .scale__end:first-child {
    flex-basis: auto;
  }
}

/* ---------- alpha forms: headings, notes, checkboxes (added 2026-11-10) ---------- */

.alpha-form .form-heading {
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(155 123 184 / 0.25);
  font-size: 1.25rem;
}

.alpha-form .form-note {
  margin: 1rem 0;
}

.alpha-form .form-note__label {
  margin: 0 0 0.5rem;
  color: var(--lilac-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alpha-form .form-note p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.alpha-form .form-note kbd {
  padding: 0 0.3em;
  border: 1px solid rgb(155 123 184 / 0.4);
  border-radius: 0.25em;
  font-family: inherit;
  font-size: 0.9em;
}

.alpha-form .choice__opt--check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

/* Wide screens: logo, tagline and buttons on the left, the trailer on the right */

@media (min-width: 64em) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-content: center;
    align-items: center;
    justify-items: center;
    column-gap: 3rem;
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .hero__title,
  .hero__tagline,
  .hero .button-row,
  .hero .status {
    grid-column: 1;
  }

  .hero__title {
    grid-row: 1;
  }

  .hero__tagline {
    grid-row: 2;
  }

  .hero .status {
    grid-row: 3;
  }

  .hero .button-row {
    grid-row: 4;
  }

  .hero__logo {
    width: 100%;
    max-width: 36rem;
  }

  .hero__trailer {
    grid-row: 1 / span 4;
    grid-column: 2;
    max-width: 46rem;
    margin-top: 0;
  }
}
