/* ═══════════════════════════════════════════════════════════════════════
   Artists Camp — WordPress theme design system (assets/css/main.css)

   Layer 1 — ported 1:1 from artists-camp-3.0/src/styles.css:
     fonts, ground, links, focus ring, selection, motion.js static rules,
     hv-* hover utilities, lnk-light, .in, acc-wrap/chev/pulse-low/
     icon-pop/u-grow/tilt-in, skip-link — utility names kept verbatim.

   Layer 2 — the ac-* vocabulary: the recurring inline-style idioms of the
     3.0 pages (Home/Camp/Pricing/Faq/Apply et al.) extracted into reusable
     classes with the EXACT source values. Page patterns compose these.

   Layer 3 — WordPress compatibility: core-block passthroughs for buttons,
     gentle gap neutralization inside ac- shells, editor parity.

   This file is enqueued on the front end AND loaded in the editor via
   add_editor_style(). No #root / SPA dependencies.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── fonts (variable files shipped in assets/fonts/) ─────────────────── */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── ground (helmet globals) ─────────────────────────────────────────── */

html,
body {
  margin: 0;
  padding: 0;
  background: #fff8ef;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* The design sets Space Grotesk on every heading inline; in WP that
   becomes the theme default so pattern headings inherit it. */
h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

a {
  color: #2447c6;
  text-decoration: none;
}

a:hover {
  color: #d7374f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #00789e;
  outline-offset: 2px;
}

::selection {
  background: #ffe6e7;
}

input,
textarea,
button {
  font-family: "Inter", Arial, sans-serif;
}

/* ── motion.js, static ─────────────────────────────────────────────── */

.acm-hidden {
  opacity: 0;
  transform: translateY(16px);
}

.acm-ready {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.acm-in {
  opacity: 1;
  transform: none;
}

a,
button {
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

a:active,
button:active {
  transform: scale(0.975);
}

img[src*="horizon-trails"] {
  animation: acmDrift 26s ease-in-out infinite alternate;
}

@keyframes acmDrift {
  from {
    transform: scale(1.08) translateX(0);
  }

  to {
    transform: scale(1.08) translateX(-34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acm-hidden {
    opacity: 1;
    transform: none;
  }

  img[src*="horizon-trails"] {
    animation: none;
  }

  a,
  button {
    transition: none;
  }

  a:active,
  button:active {
    transform: none;
  }
}

/* ── the prototypes' style-hover / style-focus states ───────────────── */

.hv-coral:hover {
  background: #d7374f !important;
  color: #ffffff !important;
}

.hv-cobalt:hover {
  background: #111827 !important;
  color: #ffffff !important;
}

.hv-outline:hover {
  border-color: #111827 !important;
  color: #111827 !important;
}

.hv-white-dim:hover {
  background: #cdd4df !important;
  color: #111827 !important;
}

.hv-border-ink:hover {
  border-color: #111827 !important;
}

.hv-card:hover {
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.09) !important;
  transform: translateY(-2px);
}

.hv-row:hover {
  background: #f5f7fa !important;
}

.hv-photo {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hv-photo:hover {
  transform: scale(1.03);
}

.hv-navlink:hover {
  color: #d7374f !important;
}

.lnk-light:hover {
  color: #ffffff !important;
}

.in:focus {
  border-color: #00789e !important;
}

/* ── micro-interaction utilities (shared; reduced-motion safe) ─────────── */

/* Animated disclosure: wrap collapsible content in .acc-wrap > .acc-inner
   and toggle .open on the wrap. */
.acc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-wrap.open {
  grid-template-rows: 1fr;
}

.acc-inner {
  overflow: hidden;
  min-height: 0;
}

/* Chevron that rotates as its disclosure opens. */
.chev {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.chev.open {
  transform: rotate(45deg);
}

/* Low-seats pill: a soft attention pulse. */
@keyframes seatPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(154, 98, 0, 0.35);
  }

  55% {
    box-shadow: 0 0 0 5px rgba(154, 98, 0, 0);
  }
}

.pulse-low {
  animation: seatPulse 2.4s ease-out infinite;
}

/* Icon nudge on hover of the surrounding card/link. */
.icon-pop {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover > .icon-pop,
button:hover > .icon-pop,
.hv-card:hover .icon-pop,
.hv-row:hover .icon-pop {
  transform: scale(1.12) rotate(-4deg);
}

/* Growing-underline link affordance (footer + inline text links). */
.u-grow {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 2px;
}

.u-grow:hover {
  background-size: 100% 1.5px;
}

/* Subtle lift for photo figures beyond the scale hover. */
.tilt-in {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tilt-in:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .acc-wrap,
  .chev,
  .icon-pop,
  .u-grow,
  .tilt-in {
    transition: none;
  }

  .pulse-low {
    animation: none;
  }

  a:hover > .icon-pop,
  button:hover > .icon-pop,
  .hv-card:hover .icon-pop,
  .hv-row:hover .icon-pop,
  .tilt-in:hover {
    transform: none;
  }
}

/* ── A11y: skip link + keyboard focus (coordinator-owned) ── */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  background: #111827;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-64px);
  opacity: 0;
  pointer-events: none;
  transition: transform 160ms ease, opacity 160ms ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #d7374f;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00789e;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Layer 2 — the ac-* vocabulary
   Values are extracted verbatim from the 3.0 page components.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── containers ──────────────────────────────────────────────────────── */

/* The standard page column: maxWidth 1140, margin "0 auto". */
/* The 3.0 originals are plain divs carrying BOTH max-width and the section
 * padding, so the max-width applies to the content box. WordPress block styles
 * force border-box globally, which would shrink every section by the 64px of
 * horizontal padding — content-box restores the original measure exactly. */
.ac-container {
  box-sizing: content-box;
  max-width: 1140px;
  margin: 0 auto;
}

/* Forms/enroll column (Apply): maxWidth 920. */
.ac-container--narrow {
  box-sizing: content-box;
  max-width: 920px;
}

/* Reading column (FAQ, Legal): maxWidth 860. */
.ac-container--text {
  box-sizing: content-box;
  max-width: 860px;
}

/* ── section paddings (the recurring clamp() rhythms) ────────────────── */

/* Primary section rhythm — the most used content-section padding. */
.ac-section {
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 32px);
}

/* Band rhythm — white/editorial bands and feature splits. */
.ac-section--band {
  padding: clamp(52px, 7vw, 80px) clamp(16px, 4vw, 32px);
}

/* Hero rhythm — page headers. */
.ac-section--hero {
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 32px) clamp(48px, 7vw, 80px);
}

/* Short rhythm — dates strips, figure sections. */
.ac-section--short {
  padding: clamp(48px, 7vw, 72px) clamp(16px, 4vw, 32px);
}

/* Ribbon rhythm — slim logistics bands. */
.ac-section--ribbon {
  padding: clamp(24px, 4vw, 36px) clamp(16px, 4vw, 32px);
}

/* Kill one edge when a section hands off to the next (photo band → CTA). */
.ac-section--flush-bottom {
  padding-bottom: 0;
}

.ac-section--flush-top {
  padding-top: 0;
}

/* ── eyebrows (kicker lines above headings) ──────────────────────────── */

.ac-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
}

.ac-eyebrow--red    { color: #d7374f; }
.ac-eyebrow--teal   { color: #00789e; }
.ac-eyebrow--amber  { color: #9a6200; }
.ac-eyebrow--sky    { color: #33b5e5; }
.ac-eyebrow--green  { color: #0b7d58; }
.ac-eyebrow--gold   { color: #ffb000; } /* on ink bands */
.ac-eyebrow--violet { color: #7a4db5; } /* Master Mind */

/* ── badges (pill chips, e.g. the hero trio) ─────────────────────────── */

.ac-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0;
}

.ac-badge--green { color: #0b7d58; background: #ddf7ec; }
.ac-badge--teal  { color: #00789e; background: #ddf5fc; }
.ac-badge--amber { color: #9a6200; background: #fff1cc; }

/* ── headings ────────────────────────────────────────────────────────── */

.ac-h1 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}

/* Narrow-page hero title (FAQ/Apply/About scale). */
.ac-h1--sm {
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.02;
}

.ac-h2 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
}

/* Section header inside a page body (Camp "Two days…"). */
.ac-h2--md {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.08;
}

/* Editorial/split headings ("Real sessions…"). */
.ac-h2--sm {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Slim band headings ("Upcoming dates"). */
.ac-h2--xs {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Card titles (day cards, policy cards). */
.ac-h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}

.ac-h3--lg {
  font-size: 22px;
}

/* ── body text ───────────────────────────────────────────────────────── */

/* Section intro paragraph. */
.ac-lead {
  color: #516078;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* Hero subtitle scale. */
.ac-lead--hero {
  font-size: clamp(17px, 2.3vw, 19px);
  line-height: 1.5;
}

/* Card/caption copy. */
.ac-lead--sm {
  font-size: 14.5px;
  line-height: 1.6;
}

/* Text color helpers (the palette's four text tones). */
.ac-text-slate { color: #516078; } /* body on paper/white */
.ac-text-gray  { color: #8b97aa; } /* muted, incl. on ink */
.ac-text-cloud { color: #cdd4df; } /* readable body on ink */
.ac-text-navy  { color: #243047; } /* strong body on paper */
.ac-text-white { color: #ffffff; }

/* ── buttons ─────────────────────────────────────────────────────────── */

/* Base: the 3.0 CTA (padding 15px 28px, radius 8, 600/16).
   Works on a bare <a>/<button> or on a core button block. */
.ac-btn,
.wp-block-button.ac-btn .wp-block-button__link {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.ac-btn--sm,
.wp-block-button.ac-btn--sm .wp-block-button__link {
  padding: 12px 22px;
  font-size: 14px;
}

.ac-btn--xs,
.wp-block-button.ac-btn--xs .wp-block-button__link {
  padding: 10px 18px;
  font-size: 13.5px;
}

.ac-btn--coral,
.wp-block-button.ac-btn--coral .wp-block-button__link {
  background: #ff5a5f;
  color: #ffffff;
}

.ac-btn--cobalt,
.wp-block-button.ac-btn--cobalt .wp-block-button__link {
  background: #2447c6;
  color: #ffffff;
}

.ac-btn--ink,
.wp-block-button.ac-btn--ink .wp-block-button__link {
  background: #111827;
  color: #ffffff;
}

.ac-btn--amber,
.wp-block-button.ac-btn--amber .wp-block-button__link {
  background: #ffb000;
  color: #111827;
}

.ac-btn--sky,
.wp-block-button.ac-btn--sky .wp-block-button__link {
  background: #33b5e5;
  color: #ffffff;
}

/* White outlined (paper sections) — pair with hv-outline. */
.ac-btn--white-outline,
.wp-block-button.ac-btn--white-outline .wp-block-button__link {
  background: #ffffff;
  color: #111827;
  border: 1.5px solid #cdd4df;
}

/* Solid white (on ink bands) — pair with hv-white-dim. */
.ac-btn--white,
.wp-block-button.ac-btn--white .wp-block-button__link {
  background: #ffffff;
  color: #111827;
}

/* CTA row: display flex, gap 14, wrap. */
.ac-btns,
.wp-block-buttons.ac-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ac-btns--center,
.wp-block-buttons.ac-btns--center {
  justify-content: center;
}

/* ── cards ───────────────────────────────────────────────────────────── */

/* Paper card: white, hairline border, radius 16. Pair with hv-card. */
.ac-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Cream card used on white bands (Camp intro day cards). */
.ac-card--cream {
  background: #fff8ef;
}

/* Dark cohort/date card (on ink bands). */
.ac-card--navy {
  background: #243047;
  border: none;
  color: #ffffff;
}

/* Roomier padding (pricing tiers, form shells). */
.ac-card--pad-lg {
  padding: clamp(22px, 3vw, 30px);
}

/* 4px phase accents along the top edge. */
.ac-card--top-green { border-top: 4px solid #19a974; }
.ac-card--top-amber { border-top: 4px solid #ffb000; }
.ac-card--top-coral { border-top: 4px solid #ff5a5f; }
.ac-card--top-sky   { border-top: 4px solid #33b5e5; }

/* ── full-bleed bands ────────────────────────────────────────────────── */

/* Ink band: dark section wrapper (ribbon, dates, Master Mind, checkout). */
.ac-band {
  background: #111827;
  color: #ffffff;
}

.ac-band a {
  color: #cdd4df;
}

/* Navy panel tone (inner card surface of ink bands). */
.ac-band--navy {
  background: #243047;
}

/* White editorial band with hairline separators. */
.ac-band--white {
  background: #ffffff;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
}

/* Inset ink panel (rounded band inside a paper section). */
.ac-panel-ink {
  background: #111827;
  color: #ffffff;
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

/* ── photo figures ───────────────────────────────────────────────────── */

/* Rounded photo frame — pair with tilt-in for the lift hover. */
.ac-photo-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
}

/* Hero-scale shadow. */
.ac-photo-figure--shadow-lg {
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.14);
}

.ac-photo-figure--flat {
  box-shadow: none;
}

.ac-photo-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Neutralize core image-block wrappers inside the frame. */
.ac-photo-figure .wp-block-image {
  margin: 0;
}

.ac-photo-figure .wp-block-image img {
  border-radius: 0;
  vertical-align: bottom;
}

/* ── seat pills ──────────────────────────────────────────────────────── */

.ac-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.ac-pill--open { color: #0b7d58; background: #ddf7ec; }
.ac-pill--low  { color: #9a6200; background: #fff1cc; } /* add .pulse-low */
.ac-pill--wait { color: #d7374f; background: #ffe6e7; }

/* ── grids ───────────────────────────────────────────────────────────── */

/* Two-up feature split (text ⇄ photo), collapses at 300px tracks. */
.ac-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

/* Three-up card/editorial grid. */
.ac-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* Four-up tier/cohort grid. */
.ac-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Day-card rail: auto-fill so cards keep their width on any count. */
.ac-grid-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

/* ── section header stack (eyebrow + h2 + lead) ──────────────────────── */

.ac-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

/* ── closing CTA band with the path-grid backdrop ────────────────────── */

.ac-cta-band {
  position: relative;
  overflow: hidden;
}

.ac-cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}

.ac-cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   Layer 3 — WordPress compatibility
   ═══════════════════════════════════════════════════════════════════════ */

/* ac-btn classes land on the wp-block-button WRAPPER; the visual styles
   are re-applied to the inner link above, so strip them off the wrapper. */
.wp-block-button[class*="ac-btn"] {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* hv-* hover utilities pass through the core button wrapper to the link. */
.wp-block-button.hv-coral:hover .wp-block-button__link {
  background: #d7374f !important;
  color: #ffffff !important;
}

.wp-block-button.hv-cobalt:hover .wp-block-button__link {
  background: #111827 !important;
  color: #ffffff !important;
}

.wp-block-button.hv-outline:hover .wp-block-button__link {
  border-color: #111827 !important;
  color: #111827 !important;
}

.wp-block-button.hv-white-dim:hover .wp-block-button__link {
  background: #cdd4df !important;
  color: #111827 !important;
}

/* When hv-* sits on the wrapper, keep the wrapper itself untouched. */
.wp-block-button.hv-coral:hover,
.wp-block-button.hv-cobalt:hover,
.wp-block-button.hv-outline:hover,
.wp-block-button.hv-white-dim:hover {
  background: transparent !important;
}

/* Neutralize default block-gap margins ONLY inside ac- component shells —
   these shells carry their own gaps (use Stack/Row groups inside them). */
.ac-card > :where(h1, h2, h3, h4, p, ul, figure),
.ac-section-head > :where(h1, h2, h3, h4, p),
.ac-cta-band__inner > :where(h1, h2, h3, h4, p),
.ac-panel-ink > :where(h1, h2, h3, h4, p) {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Core columns/groups used as ac- grids must not double up gutters. */
.wp-block-columns.ac-grid-2,
.wp-block-columns.ac-grid-3,
.wp-block-columns.ac-grid-4 {
  display: grid;
}

/* ── editor parity (loaded via add_editor_style) ─────────────────────── */

.editor-styles-wrapper {
  background: #fff8ef;
  font-family: "Inter", Arial, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: "Space Grotesk", Arial, sans-serif;
}
