/* MooshFest — Why MooshFest? (field guide style) */

:root {
  --purple: #8B2AA8;
  --plum: #2B1546;
  --plum-2: #3D2160;
  --cream: #F5EEDF;
  --paper: #FFFBF0;
  --green: #45E33A;
  --yellow: #FFDE1A;
  --orange: #FF6B1A;
  --pink: #FF2E86;

  --font-caps: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;

  --shadow: 8px 8px 0 rgba(43, 21, 70, 0.28);
}

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

body {
  margin: 0;
  background: var(--plum);
  color: var(--plum);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.wy-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.wy-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.wy-display,
.wy-caps {
  font-family: var(--font-caps);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
}

.wy-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wy-h2 {
  margin: 0 0 28px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
}

.wy-h2.wy-caps {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.9;
}

.wy-h2--green { color: var(--green); }

/* Highlighted phrases, echoing the yellow highlights on the original page */
mark {
  padding: 0 0.15em;
  background: var(--yellow);
  color: var(--plum);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wy-section--plum mark,
.wy-section--purple mark {
  background: transparent;
  color: var(--yellow);
  padding: 0;
}

.wy-tilt-l { transform: rotate(-1.5deg); }
.wy-tilt-r { transform: rotate(1.5deg); }

/* ---------- Buttons & links ---------- */

.wy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.wy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border: 3px solid var(--plum);
  color: var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--plum);
  transition: transform 0.1s, box-shadow 0.1s;
}

.wy-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--plum);
}

.wy-btn--green { background: var(--green); }
.wy-btn--yellow { background: var(--yellow); }

.wy-btn--small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  box-shadow: 4px 4px 0 var(--plum);
}

.wy-link {
  padding: 10px 0;
  color: var(--yellow);
  font-weight: 700;
}

.wy-link:hover { color: var(--green); }

/* ---------- Top bar ---------- */

.wy-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 24px;
  background: var(--plum);
}

.wy-top__home img {
  display: block;
  width: 120px;
  height: auto;
}

.wy-top__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wy-top__nav a:not(.wy-btn) {
  padding: 12px 0;
  color: var(--cream);
  text-decoration: none;
}

.wy-top__nav a:not(.wy-btn):hover,
.wy-top__nav a[aria-current="page"] {
  color: var(--yellow);
}

/* ---------- Hero ---------- */

.wy-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background: var(--purple);
  color: var(--cream);
}

.wy-swooshes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wy-swooshes path {
  fill: none;
  stroke: #FFFFFF;
  stroke-opacity: 0.1;
  stroke-width: 64;
}

.wy-hero__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.wy-hero__copy {
  flex: 1 1 520px;
  min-width: 0;
}

.wy-display {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 10.5vw, 5.8rem);
  color: var(--green);
  overflow-wrap: anywhere;
}

.wy-hero__lede {
  margin: 0 0 16px;
  max-width: 24ch;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.wy-hero__lede mark {
  background: transparent;
  color: var(--yellow);
  padding: 0;
}

/* "With a purpose" line, typed onto a strip of masking tape.
   The outer element carries the tilt and shadow; the inner span is the tape,
   cut with torn ends (a clip-path would otherwise clip the shadow too). */
.wy-masking {
  display: inline-block;
  max-width: 34rem;
  margin: 8px 0 0 -6px;
  transform: rotate(-1.5deg);
  filter: drop-shadow(4px 5px 0 rgba(43, 21, 70, 0.35));
}

.wy-masking span {
  display: block;
  padding: 14px 28px;
  text-align: center;
  color: var(--plum);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.4;
  background:
    repeating-linear-gradient(90deg, rgba(120, 95, 40, 0.06) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #F6EBC2 0%, #EEDFA8 100%);
  clip-path: polygon(
    1.6% 0%, 98.4% 0%,
    99.6% 9%, 98.2% 20%, 99.5% 32%, 98% 44%, 99.6% 56%, 98.2% 68%, 99.4% 80%, 98% 91%, 99% 100%,
    1% 100%,
    0% 91%, 1.6% 80%, 0.4% 68%, 1.8% 56%, 0.4% 44%, 1.8% 32%, 0.5% 20%, 1.8% 9%
  );
}

/* The neon Moosh sits on a dark "specimen plate" so its glow reads */
.wy-specimen {
  position: relative;
  flex: 0 1 440px;
  min-width: 260px;
  margin: 0 auto;
  padding: 36px 28px 54px;
  background: var(--plum);
  transform: rotate(2.5deg);
  box-shadow: 10px 10px 0 rgba(43, 21, 70, 0.35);
}


.wy-specimen img {
  display: block;
  width: 100%;
  height: auto;
  animation: wy-glow 4s ease-in-out infinite;
}

.wy-specimen figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--cream);
  font-size: 14px;
}

@keyframes wy-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 222, 26, 0.35)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 222, 26, 0.75)); }
}

/* ---------- Ticker ---------- */

.wy-ticker-wrap {
  overflow: hidden;
  background: var(--yellow);
}

.wy-ticker {
  display: flex;
  width: max-content;
  padding: 12px 0;
  color: var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: wy-ticker 135s linear infinite; /* 6 copies, slides 3: slow enough to read */
}

@keyframes wy-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.wy-section {
  position: relative;
  padding: 48px 0 112px;
}

.wy-section--cream { background: var(--cream); color: var(--plum); }
.wy-section--plum { background: var(--plum); color: var(--cream); }
.wy-section--purple { background: var(--purple); color: var(--cream); }
.wy-section--orange { background: var(--orange); color: var(--plum); }
.wy-section--yellow { background: var(--yellow); color: var(--plum); }

.wy-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 72px;
}

.wy-split--reverse {
  flex-direction: row-reverse;
}

.wy-split__copy {
  flex: 1 1 480px;
  min-width: 0;
}

.wy-split__copy > p {
  max-width: 38rem;
  margin: 0 0 18px;
}

/* Purpose */
.wy-purpose {
  margin: 0;
}

.wy-purpose p {
  margin: 0;
  max-width: 22em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Field notes card */
.wy-notes {
  flex: 0 1 380px;
  min-width: 260px;
  margin: 0 auto;
  padding: 26px 28px 30px;
  background: var(--paper);
  color: var(--plum);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.wy-notes__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.wy-notes dl,
.wy-dossier {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wy-notes dl div,
.wy-dossier div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 12px;
}

.wy-notes dt,
.wy-dossier dt {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  padding-top: 2px;
}

.wy-notes dd,
.wy-dossier dd {
  margin: 0;
  font-weight: 700;
}

/* Nine arms, the sixth fading */
.wy-arms {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  height: 90px;
  align-items: end;
}

.wy-arms li {
  position: relative;
  height: 100%;
  border-radius: 999px 999px 4px 4px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 222, 26, 0.6);
}

.wy-arms li.is-sixth {
  height: 62%;
  background: linear-gradient(180deg, #F4F1D8 0%, #CFC48C 45%, #9A968A 100%);
  box-shadow: none;
}

.wy-arms li.is-sixth span {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 16px;
  color: var(--orange);
}

/* Fading color scale */
.wy-fade {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
  box-shadow: 6px 6px 0 rgba(43, 21, 70, 0.35);
}

.wy-fade__chip {
  flex: 1 1 140px;
  padding: 16px 14px;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--plum);
}

.wy-fade__chip--white { background: #FFFFFF; }
.wy-fade__chip--yellow { background: #E6D98A; }
.wy-fade__chip--gray { background: #9E9A92; }

/* Earth: transparent glow image, no frame */
.wy-earth {
  flex: 0 1 460px;
  min-width: 260px;
  margin: 0 auto;
  text-align: center;
}

.wy-earth img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.55) brightness(0.9);
  animation: wy-dim 6s ease-in-out infinite;
}

.wy-earth figcaption {
  margin-top: 12px;
  font-size: 14px;
}

@keyframes wy-dim {
  0%, 100% { filter: saturate(0.55) brightness(0.9); }
  50% { filter: saturate(0.35) brightness(0.75); }
}

/* Reptoid warning */
.wy-warning__body {
  max-width: 44rem;
  margin: 0;
  font-size: 19px;
}

.wy-h2--big {
  color: var(--plum);
}

.wy-tape {
  display: inline-block;
  margin: 0 0 24px;
  padding: 10px 20px;
  background: var(--yellow);
  color: var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--plum);
}

.wy-tape--plum {
  background: var(--plum);
  color: var(--yellow);
  box-shadow: 6px 6px 0 rgba(43, 21, 70, 0.35);
}

/* Polaroids */
.wy-polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 46px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.wy-polaroid::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 28px;
  margin-left: -52px;
  background: #F3E9B5;
  transform: rotate(-3deg);
}

.wy-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.wy-polaroid figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--plum);
  font-size: 14px;
}

.wy-polaroid--tall {
  flex: 0 1 380px;
  min-width: 260px;
  margin: 0 auto;
}

.wy-polaroid--tall img { aspect-ratio: 2046 / 2646; }

.wy-polaroid--wide {
  flex: 1 1 520px;
  min-width: 0;
}

.wy-polaroid--wide img { aspect-ratio: 1608 / 1234; }

.wy-section--plum .wy-polaroid { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4); }

/* Dossier */
.wy-dossier {
  max-width: 34rem;
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

/* Band */
.wy-band__lede {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
}

/* Gathering */
.wy-gathering__body {
  max-width: 42rem;
  margin: 0 0 40px;
  font-size: 19px;
}

.wy-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}

.wy-steps li {
  counter-increment: step;
  padding: 24px 26px 28px;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow);
}

.wy-steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--green);
}

/* Closing */
.wy-close {
  overflow: hidden;
  padding: 72px 0 96px;
}

.wy-close__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.wy-close__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  color: var(--green);
}

/* ---------- Footer ---------- */

.wy-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 24px;
  background: var(--plum);
  color: var(--cream);
  font-size: 14px;
}

.wy-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.wy-footer a {
  color: var(--yellow);
  padding: 8px 0;
}

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

@media (max-width: 760px) {
  .wy-hero { padding: 40px 0 72px; }

  .wy-split--reverse { flex-direction: column; }

  .wy-specimen { padding-bottom: 72px; }

  .wy-notes dl div,
  .wy-dossier div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wy-tilt-l,
  .wy-tilt-r {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wy-ticker,
  .wy-specimen img,
  .wy-earth img,
  .wy-btn {
    animation: none;
    transition: none;
  }
}


/* =====================================================================
   DARK "DEEP SPACE" THEME
   Turned on by class="wy-dark" on <body>. Remove that class to go back
   to the light field-guide colors; nothing else needs to change.
   ===================================================================== */

.wy-dark {
  --space: #0B0619;
  --night: #130B2B;
  --indigo: #1B1040;
  --violet: #2A1760;
  background: var(--space);
}

/* Scattered stars, layered so the pattern doesn't look tiled */
.wy-dark .wy-hero,
.wy-dark .wy-close,
.wy-dark .wy-section--plum {
  background-color: var(--space);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 27% 62%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 33%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 58% 78%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 69% 12%, rgba(255, 222, 26, 0.8), transparent 60%),
    radial-gradient(1px 1px at 83% 47%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 85%, rgba(69, 227, 58, 0.7), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 35% 8%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 76% 30%, rgba(255, 46, 134, 0.6), transparent 60%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 610px 610px,
                   350px 350px, 570px 570px, 440px 440px, 300px 300px, 650px 650px;
}

/* Soft nebula glows behind the hero and closing sections */
.wy-dark .wy-hero::before,
.wy-dark .wy-close::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 82% 40%, rgba(139, 42, 168, 0.45), transparent 70%),
    radial-gradient(ellipse 35% 45% at 10% 85%, rgba(255, 46, 134, 0.14), transparent 70%);
}

.wy-dark .wy-close::before {
  background:
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(69, 227, 58, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 20%, rgba(139, 42, 168, 0.45), transparent 70%);
}

.wy-dark .wy-swooshes path {
  stroke: #8B2AA8;
  stroke-opacity: 0.18;
}

/* Section backgrounds: alternating deep tones instead of color blocks */
.wy-dark .wy-section--cream { background: var(--night); color: var(--cream); }
.wy-dark .wy-section--purple { background: var(--indigo); color: var(--cream); }
.wy-dark .wy-section--orange {
  background: linear-gradient(180deg, #1E0A1C 0%, #2A0D1F 100%);
  color: var(--cream);
}
.wy-dark .wy-section--yellow { background: var(--violet); color: var(--cream); }

/* Highlights: neon text instead of yellow marker blocks */
.wy-dark mark {
  background: transparent;
  color: var(--yellow);
  padding: 0;
}

.wy-dark .wy-purpose mark {
  color: var(--green);
}

/* Ticker in green so it doesn't echo the homepage's yellow */
.wy-dark .wy-ticker-wrap { background: var(--green); }

/* Moosh plate: glow on a slightly lifted panel */
.wy-dark .wy-specimen {
  background: var(--indigo);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 222, 26, 0.12);
}

/* Earth keeps its color a little more in the dark */
.wy-dark .wy-earth img {
  filter: saturate(0.7) brightness(0.95);
}

/* Reptoid warning: orange on dark red */
.wy-dark .wy-h2--big { color: var(--orange); }

.wy-dark .wy-tape--plum {
  background: var(--orange);
  color: var(--plum);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.wy-dark .wy-warning__body strong { color: var(--orange); }

/* Field notes, dossier, polaroids, tape: same paper, deeper shadows */
.wy-dark .wy-notes,
.wy-dark .wy-dossier,
.wy-dark .wy-polaroid {
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);
}

/* Yellow dossier card keeps dark text */
.wy-dark .wy-dossier { color: var(--plum); }

.wy-dark .wy-masking {
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.55));
}

/* The three "Come with..." cards become bright paper on the dark */
.wy-dark .wy-steps li { color: var(--plum); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5); }
.wy-dark .wy-steps li:nth-child(1) { background: var(--yellow); }
.wy-dark .wy-steps li:nth-child(2) { background: var(--green); }
.wy-dark .wy-steps li:nth-child(3) { background: var(--pink); }
.wy-dark .wy-steps li::before { color: var(--plum); opacity: 0.7; }

/* Buttons and tape: shadows in purple so they still read on near-black */
.wy-dark .wy-btn { box-shadow: 5px 5px 0 var(--purple); }
.wy-dark .wy-btn:hover { box-shadow: 3px 3px 0 var(--purple); }
.wy-dark .wy-tape { box-shadow: 6px 6px 0 var(--purple); }

/* Shared menu bar matches the page */
.wy-dark .snav-bar {
  background: var(--space);
  border-bottom: 1px solid rgba(245, 238, 223, 0.08);
}

.wy-dark .wy-footer {
  background: var(--space);
  border-top: 1px solid rgba(245, 238, 223, 0.08);
}

/* Yellow emphasis, e.g. "Raise the frequency." in the closing line */
.wy-c-yellow {
  color: var(--yellow);
}
