/* Moonchild Studios landing page — brand v1 tokens (MOO-21).
   See brand/identity/v1/system/tokens.css for the canonical values. */

:root {
  /* colour */
  --mc-ink: #16132a;
  --mc-glow: #f3b89f;
  --mc-glow-hi: #fbe0ce;
  --mc-paper: #f4f0e9;
  --mc-violet: #6e5ac7;
  --mc-slate: #34304a;

  /* type — Manrope is the OFL web fallback declared in tokens.css */
  --mc-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --mc-fs-display-xl: 48px;
  --mc-fs-display-l: 34px;
  --mc-fs-h1: 26px;
  --mc-fs-h2: 22px;
  --mc-fs-body-l: 18px;
  --mc-fs-body: 16px;
  --mc-fs-caption: 13px;

  /* layout */
  --mc-radius: 14px;
  --mc-radius-lg: 22px;
  --mc-gap: clamp(20px, 4vw, 56px);
  --mc-page-max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--mc-ink);
  color: var(--mc-paper);
}

body {
  margin: 0;
  font-family: var(--mc-font);
  font-size: var(--mc-fs-body);
  line-height: 1.55;
  background: var(--mc-ink);
  color: var(--mc-paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--mc-glow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
a:hover,
a:focus-visible {
  border-bottom-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--mc-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mc-paper);
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mc-glow);
  color: var(--mc-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(22, 19, 42, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(243, 184, 159, 0.12);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
  color: var(--mc-paper);
}
.nav__brand:hover {
  border-bottom: 0;
}

.nav__mark {
  width: 36px;
  height: 36px;
  display: block;
}

.nav__wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.nav__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mc-paper);
}

.nav__tag {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--mc-glow);
}

.nav__links {
  display: none;
  gap: 28px;
  align-items: center;
  font-size: var(--mc-fs-body);
  font-weight: 500;
}
.nav__links a {
  color: var(--mc-paper);
  opacity: 0.85;
}
.nav__links a:hover,
.nav__links a:focus-visible {
  border-bottom-color: var(--mc-glow);
  opacity: 1;
}

@media (min-width: 720px) {
  .nav__links {
    display: flex;
  }
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 4vw, 40px) clamp(48px, 8vw, 96px);
  max-width: var(--mc-page-max);
  margin: 0 auto;
  overflow: hidden;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(243, 184, 159, 0.08);
  color: var(--mc-glow);
  font-size: var(--mc-fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mc-glow);
  box-shadow: 0 0 0 4px rgba(243, 184, 159, 0.18);
}

.hero__headline {
  font-size: clamp(40px, 7vw, var(--mc-fs-display-xl));
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
}

.hero__sub {
  font-size: var(--mc-fs-body-l);
  line-height: 1.55;
  color: rgba(244, 240, 233, 0.78);
  max-width: 36ch;
  margin: 0 0 32px;
}

.hero__sub strong {
  color: var(--mc-glow);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero__note {
  font-size: var(--mc-fs-caption);
  color: rgba(244, 240, 233, 0.55);
  max-width: 40ch;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.hero__moon {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(110, 90, 199, 0.35));
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--mc-font);
  font-size: var(--mc-fs-body);
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease,
    border-color 160ms ease;
  border-bottom: 1px solid transparent;
}

.btn--primary {
  background: var(--mc-glow);
  color: var(--mc-ink);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--mc-glow-hi);
  transform: translateY(-1px);
  border-bottom-color: transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--mc-paper);
  border-color: rgba(244, 240, 233, 0.18);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--mc-glow);
  color: var(--mc-glow);
  border-bottom-color: var(--mc-glow);
}

/* --- shared section chrome ----------------------------------------- */

main > section {
  max-width: var(--mc-page-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

main h2 {
  font-size: var(--mc-fs-display-l);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
  max-width: 22ch;
}

main section p {
  font-size: var(--mc-fs-body-l);
  line-height: 1.6;
  color: rgba(244, 240, 233, 0.78);
  max-width: 60ch;
}

main section p strong {
  color: var(--mc-paper);
  font-weight: 600;
}

/* --- what ----------------------------------------------------------- */

.what {
  border-top: 1px solid rgba(243, 184, 159, 0.1);
}

/* --- how ------------------------------------------------------------ */

.how .steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .how .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--mc-radius-lg);
  background: linear-gradient(
    155deg,
    rgba(110, 90, 199, 0.18) 0%,
    rgba(22, 19, 42, 0) 70%
  );
  border: 1px solid rgba(243, 184, 159, 0.12);
}

.step__num {
  display: inline-block;
  font-size: var(--mc-fs-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mc-glow);
  margin-bottom: 18px;
}

.step h3 {
  font-size: var(--mc-fs-h1);
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: var(--mc-fs-body);
  line-height: 1.55;
  color: rgba(244, 240, 233, 0.72);
  margin: 0;
}

/* --- why ------------------------------------------------------------ */

.why .why__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.why .why__list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 0;
}

.why__bullet {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(243, 184, 159, 0.12);
  color: var(--mc-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.why__list h3 {
  font-size: var(--mc-fs-h2);
  font-weight: 600;
  margin: 0 0 6px;
}

.why__list p {
  font-size: var(--mc-fs-body);
  line-height: 1.55;
  color: rgba(244, 240, 233, 0.72);
  margin: 0;
  max-width: none;
}

.why__list em {
  color: var(--mc-paper);
  font-style: normal;
  font-weight: 600;
}

/* --- projects (MOO-53) ---------------------------------------------- */
/* Project cards link out from the parent brand to each project's own
   site. The landing page introduces and links; the project page
   owns the detail. */

.projects {
  border-top: 1px solid rgba(243, 184, 159, 0.1);
}

.projects__intro {
  margin-bottom: 32px;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .project-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.project-card {
  margin: 0;
}

.project-card a {
  display: block;
  padding: 28px 26px 24px;
  border-radius: var(--mc-radius-lg);
  background: linear-gradient(
    155deg,
    rgba(110, 90, 199, 0.18) 0%,
    rgba(22, 19, 42, 0) 70%
  );
  border: 1px solid rgba(243, 184, 159, 0.12);
  border-bottom: 1px solid rgba(243, 184, 159, 0.12);
  color: var(--mc-paper);
  transition: transform 160ms ease, border-color 160ms ease, background 200ms ease;
}

.project-card a:hover,
.project-card a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(243, 184, 159, 0.4);
  background: linear-gradient(
    155deg,
    rgba(110, 90, 199, 0.28) 0%,
    rgba(22, 19, 42, 0) 70%
  );
  color: var(--mc-paper);
}

.project-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-card__name {
  font-size: var(--mc-fs-h1);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mc-paper);
}

.project-card__host {
  font-size: var(--mc-fs-caption);
  color: var(--mc-glow);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.project-card__desc {
  font-size: var(--mc-fs-body);
  line-height: 1.55;
  color: rgba(244, 240, 233, 0.72);
  margin: 0 0 18px;
  max-width: none;
}

.project-card__desc em {
  color: var(--mc-paper);
  font-style: normal;
  font-weight: 600;
}

.project-card__cta {
  display: inline-block;
  font-size: var(--mc-fs-body);
  font-weight: 600;
  color: var(--mc-glow);
}

.project-card__badge {
  display: inline-block;
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 184, 159, 0.35);
  background: rgba(243, 184, 159, 0.08);
  color: var(--mc-glow);
  font-size: var(--mc-fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.project-list__error {
  padding: 22px 26px;
  border-radius: var(--mc-radius-lg);
  border: 1px dashed rgba(243, 184, 159, 0.3);
  color: rgba(244, 240, 233, 0.6);
  font-size: var(--mc-fs-body);
}

/* When the noscript fallback is shown, keep the same gap rhythm as the
   JS-rendered list — visitors with JS off get the same visual product. */
.project-list--noscript {
  margin-top: 0;
}

/* --- contact --------------------------------------------------------- */

.contact {
  border-top: 1px solid rgba(243, 184, 159, 0.1);
}

.contact a {
  color: var(--mc-glow);
  font-weight: 600;
  border-bottom-color: rgba(243, 184, 159, 0.35);
}
.contact a:hover {
  border-bottom-color: var(--mc-glow);
}

.contact__fine {
  margin-top: 18px;
  font-size: var(--mc-fs-caption);
  color: rgba(244, 240, 233, 0.45);
  max-width: 60ch;
}

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

.footer {
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid rgba(243, 184, 159, 0.1);
  padding: 36px clamp(20px, 4vw, 40px);
}

.footer__inner {
  max-width: var(--mc-page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--mc-fs-caption);
  color: rgba(244, 240, 233, 0.55);
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copy {
  font-weight: 600;
  color: rgba(244, 240, 233, 0.78);
}

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