/* ==========================================================================
   Altered Re:Union — Adopt a Woollyback
   Design direction (from the Figma brief): warm pastoral palette — creams,
   soft greens, wool whites, gentle ambers. No corporate blue, nothing that
   reads as a generic charity/fundraiser site.
   ========================================================================== */

:root {
  --cream: #faf3e6;
  --cream-dark: #f1e4cd;
  --wool-white: #fffdf8;
  --sage: #7a9478;
  --sage-dark: #52705a;
  --amber: #c97c3d;
  --amber-dark: #a5622a;
  --amber-light: #e9b47a;
  --ink: #3a2e22;
  --ink-soft: #6b5c4a;
  --border-soft: #e3d6bd;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;
  --shadow-soft: 0 12px 30px -12px rgba(58, 46, 34, 0.25);
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden; /* the floating creatures/hoof trail drift near the edges */
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--sage-dark);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--wool-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--alt {
  background: var(--cream-dark);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
}

.section-hook {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--amber);
  color: var(--wool-white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--amber-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}

.btn--secondary:hover {
  background: var(--sage-dark);
  color: var(--wool-white);
}

.btn--tertiary {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  padding: 0.9rem 0.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 243, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before {
  top: 32%;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle::after {
  bottom: 32%;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--amber-dark);
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-indicator svg {
  width: 1.5rem;
  height: 1.5rem;
  animation: bob 1.6s ease-in-out infinite;
  color: var(--wool-white);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wool-white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
    transition: max-height 0.25s ease;
  }

  .nav-menu.is-open {
    max-height: 26rem;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-soft);
  }
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  color: var(--wool-white);
  background: linear-gradient(180deg, rgba(58, 46, 34, 0.55), rgba(58, 46, 34, 0.72)),
    radial-gradient(ellipse at top, #b98a53, #7a9478 55%, #52705a);
  overflow: hidden;
}

.hero-content {
  max-width: 46rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-light);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--wool-white);
  margin-top: 0.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--cream);
  max-width: 38rem;
  margin: 1rem auto 2rem;
}

.hero .cta-group {
  margin-bottom: 1rem;
}

.hero-motif {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  object-fit: cover;
  z-index: 1;
}

/* ---------------------------------------------------------------------- */
/* Hoof print trail (scroll-triggered divider between sections)           */
/* ---------------------------------------------------------------------- */

.hoof-trail {
  position: relative;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  pointer-events: none;
}

.hoof-trail .hoofprint {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--amber-dark);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.hoof-trail .hoofprint:nth-child(odd) {
  transform: translateY(-0.6rem) scale(0.8);
}

.hoof-trail .hoofprint:nth-child(even) {
  transform: translateY(0.6rem) scale(0.8);
}

.hoof-trail.is-visible .hoofprint {
  opacity: 0.7;
}

.hoof-trail.is-visible .hoofprint:nth-child(odd) {
  transform: translateY(-0.6rem) scale(1);
}

.hoof-trail.is-visible .hoofprint:nth-child(even) {
  transform: translateY(0.6rem) scale(1);
}

.hoof-trail.is-visible .hoofprint:nth-child(1) {
  transition-delay: 0ms;
}
.hoof-trail.is-visible .hoofprint:nth-child(2) {
  transition-delay: 90ms;
}
.hoof-trail.is-visible .hoofprint:nth-child(3) {
  transition-delay: 180ms;
}
.hoof-trail.is-visible .hoofprint:nth-child(4) {
  transition-delay: 270ms;
}
.hoof-trail.is-visible .hoofprint:nth-child(5) {
  transition-delay: 360ms;
}

@media (max-width: 720px) {
  .hoof-trail {
    gap: 1.4rem;
    height: 3rem;
  }

  .hoof-trail .hoofprint {
    width: 0.8rem;
    height: 0.8rem;
  }

  .hoof-trail .hoofprint:nth-child(4),
  .hoof-trail .hoofprint:nth-child(5) {
    display: none; /* fewer, smaller prints on narrow viewports per brief */
  }
}

/* ---------------------------------------------------------------------- */
/* Floating Woollyback creatures                                          */
/* ---------------------------------------------------------------------- */

.floating-woolly {
  position: absolute;
  width: 16vw;
  min-width: 5.5rem;
  max-width: 9rem;
  z-index: 3;
  opacity: 0;
  filter: drop-shadow(0 10px 14px rgba(58, 46, 34, 0.25));
  transition: transform 0.8s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.6s ease;
  cursor: default;
}

.floating-woolly[data-enter="top"] {
  top: -2rem;
  right: 8%;
  transform: translateY(-120%) rotate(-8deg);
}

.floating-woolly[data-enter="left"] {
  top: 10%;
  left: -2rem;
  transform: translateX(-120%) rotate(-8deg);
}

.floating-woolly[data-enter="right"] {
  top: 15%;
  right: -2rem;
  transform: translateX(120%) rotate(8deg);
}

.floating-woolly[data-enter="diagonal"] {
  bottom: -1rem;
  left: 6%;
  transform: translate(-60%, 60%) rotate(-12deg);
}

.floating-woolly.is-landed {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}

.floating-woolly.is-landed:hover {
  animation: wiggle 0.5s ease-in-out;
}

@media (max-width: 720px) {
  .floating-woolly {
    width: 27vw;
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-woolly,
  .hoof-trail .hoofprint,
  .scroll-indicator svg {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Story                                                                   */
/* ---------------------------------------------------------------------- */

.story-body {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

blockquote.lore {
  max-width: 34rem;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--amber);
  background: var(--wool-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

blockquote.lore cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amber-dark);
}

/* ---------------------------------------------------------------------- */
/* Cards grid (adoption kit)                                              */
/* ---------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.item-card {
  background: var(--wool-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.item-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.item-card .item-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ---------------------------------------------------------------------- */
/* Artist carousel                                                         */
/* ---------------------------------------------------------------------- */

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 22rem);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
}

@media (min-width: 900px) {
  .carousel-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
}

.artist-card {
  scroll-snap-align: start;
  background: var(--wool-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.artist-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--cream-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-dark);
  border: 2px solid var(--amber-light);
}

.artist-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.artist-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.artist-bio {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.carousel-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.carousel-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--wool-white);
  cursor: pointer;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .carousel-nav {
    display: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Community contest                                                       */
/* ---------------------------------------------------------------------- */

.contest-sub {
  text-align: center;
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contest-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.contest-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2.5rem;
}

.contest-card {
  background: var(--wool-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
}

.contest-card .item-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.75rem 0 1.25rem;
}

/* ---------------------------------------------------------------------- */
/* Tiers / Store                                                           */
/* ---------------------------------------------------------------------- */

.store-subtext {
  text-align: center;
  max-width: 34rem;
  margin: -1.5rem auto 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tier-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.tier-card {
  background: var(--wool-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.tier-card--deluxe {
  border: 2px solid var(--amber);
  transform: translateY(-0.5rem);
}

.tier-name {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-dark);
  margin-bottom: 1rem;
}

.tier-perks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex-grow: 1;
}

.tier-perks li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.92rem;
}

.tier-perks li:first-child {
  border-top: none;
}

.tier-availability {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}

.ha-embed {
  margin-top: 1rem;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--cream);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.ha-embed iframe {
  width: 100%;
  min-height: 30rem;
  border: 0;
  border-radius: var(--radius-sm);
}

.ha-embed--pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 124, 61, 0.4); }
  100% { box-shadow: 0 0 0 12px rgba(201, 124, 61, 0); }
}

.todo-note {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

.addons-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}

.addon-card {
  background: var(--wool-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.addon-price {
  font-weight: 700;
  color: var(--amber-dark);
}

.addon-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

/* ---------------------------------------------------------------------- */
/* Pillars (what this funds)                                              */
/* ---------------------------------------------------------------------- */

.pillar-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  text-align: center;
}

.pillar-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--amber);
}

.pillar h3 {
  font-size: 1.15rem;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Origin / lore body                                                     */
/* ---------------------------------------------------------------------- */

.origin-body {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.02rem;
}

.stat-callout {
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--amber-dark);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

/* ---------------------------------------------------------------------- */
/* Contributors / FAQ placeholders                                        */
/* ---------------------------------------------------------------------- */

.placeholder-shell {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  background: var(--wool-white);
}

.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item summary {
  padding: 1rem 0;
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  padding-bottom: 1rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Closing CTA                                                            */
/* ---------------------------------------------------------------------- */

.closing {
  text-align: center;
  background: linear-gradient(180deg, var(--sage-dark), var(--ink));
  color: var(--wool-white);
}

.closing h2 {
  color: var(--wool-white);
}

.closing p {
  color: var(--cream);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.closing .btn--secondary {
  border-color: var(--wool-white);
  color: var(--wool-white);
}

.closing .btn--secondary:hover {
  background: var(--wool-white);
  color: var(--ink);
}

.closing .btn--tertiary {
  color: var(--cream);
}

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

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

/* ---------------------------------------------------------------------- */
/* Decorative card art figures                                            */
/* ---------------------------------------------------------------------- */

.art-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.art-figure figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--wool-white);
  text-align: center;
}

.motif-strip {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
  opacity: 0.9;
}

.motif-strip img {
  max-height: 12rem;
  border-radius: var(--radius-md);
}
