/* ==========================================================================
   Australian Crafts Alliance — Design System
   Palette sampled directly from the ACA brand marks.
   ========================================================================== */

:root {
  /* Brand core */
  --green:        #3E773E;
  --green-dark:   #2E5A2E;
  --green-deep:   #1F3E1F;
  --cream:        #EEE6D9;
  --cream-light:  #F6F1E7;
  --cream-deep:   #E2D8C6;
  --orchid:       #E38EE2;
  --orchid-deep:  #C96BC8;
  --red:          #FF3131;
  --red-rule:     #ED3832;
  --ink:          #14180F;
  --ink-soft:     #3A4034;
  --ink-mute:     #6B7264;
  --line:         #D6CCB8;

  /* Type */
  --display: 'Outfit', 'Century Gothic', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap: 1180px;
  --narrow: 760px;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(3.5rem, 9vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-rule);
  margin: 0 0 0.9rem;
  display: block;
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--red-rule);
  border: 0;
  margin: 0 0 1.9rem;
}

.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.tagline {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.tagline .dot { color: var(--orchid); margin: 0 0.45em; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--narrow); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: var(--section); }

.band-cream { background: var(--cream-light); }
.band-sand  { background: var(--cream); }
.band-white { background: #fff; }

.band-green {
  background: var(--green);
  color: var(--cream-light);
  border-block: 4px solid var(--red-rule);
}
.band-green .eyebrow { color: var(--orchid); }
.band-green .rule { background: var(--orchid); }
.band-green .lead { color: #E4EDE0; }

.band-ink {
  background: var(--ink);
  color: var(--cream);
  border-block: 4px solid var(--red-rule);
}
.band-ink .eyebrow { color: var(--orchid); }
.band-ink .rule { background: var(--red-rule); }
.band-ink .lead { color: #C9CFC2; }

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

.btn {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 0.95rem 1.7rem;
  border: 2px solid var(--red-rule);
  background: var(--red-rule);
  color: #fff;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { background: #C92B26; border-color: #C92B26; transform: translateY(-2px); }

.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream-light); border-color: var(--ink); }

.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  border-bottom: 4px solid var(--red-rule);
}

.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--cream-light);
}
.brand-sub {
  font-family: var(--display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orchid);
  margin-top: 0.22rem;
}

.nav-links { display: flex; align-items: center; gap: 1.05rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cream-light);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover { border-bottom-color: var(--orchid); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--red-rule); color: #fff; font-weight: 600; }

.nav-cta {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  background: var(--red-rule);
  color: #fff;
  border: 2px solid var(--red-rule);
  white-space: nowrap;
  transition: background .16s ease;
}
.nav-cta:hover { background: #C92B26; border-color: #C92B26; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--cream-light);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0.5rem var(--pad) 1.5rem;
    background: var(--green-dark);
  }
  .site-nav.open .nav-links li { width: 100%; }
  .site-nav.open .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    font-size: 0.95rem;
  }
  .site-nav.open .nav-cta {
    display: block;
    margin: 1.2rem var(--pad) 1.5rem;
    text-align: center;
  }
  .brand img { width: 44px; height: 44px; }
}

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

.hero {
  background: var(--green);
  color: var(--cream-light);
  border-bottom: 4px solid var(--red-rule);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orchid);
  opacity: .30;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--orchid); }
.hero .rule { background: var(--red); width: 72px; }
.hero p { max-width: 60ch; color: #E4EDE0; }

.hero-compact { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero-compact h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red-rule);
  padding: 2rem 1.85rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card-green { border-top-color: var(--green); }
.card-orchid { border-top-color: var(--orchid-deep); }

.band-green .card, .band-ink .card { background: var(--cream-light); color: var(--ink); }

/* Numbered list of work areas */
.numbered { border-top: 1px solid var(--line); }
.numbered > li {
  list-style: none;
  border-bottom: 1px solid var(--line);
  padding: 1.9rem 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.5rem;
}
.numbered { margin: 0; padding: 0; }
.num {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orchid-deep);
}
.band-green .numbered, .band-ink .numbered { border-top-color: rgba(255,255,255,.22); }
.band-green .numbered > li, .band-ink .numbered > li { border-bottom-color: rgba(255,255,255,.22); }
.band-green .num, .band-ink .num { color: var(--orchid); }
.numbered h3 { margin-bottom: 0.45rem; }
.numbered p { font-size: 0.99rem; }

@media (max-width: 620px) {
  .numbered > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .num { font-size: 1.5rem; }
}

/* Pillars (Supporting / Protecting / Connecting) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.pillar-key {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pillar-key::before {
  content: "";
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--orchid);
  flex: none;
}

/* Statistic callouts */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat { border-left: 4px solid var(--red-rule); padding-left: 1.25rem; }
.stat .figure {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 0.4rem;
}
.band-green .stat, .band-ink .stat { border-left-color: var(--orchid); }
.band-green .stat .figure, .band-ink .stat .figure { color: #fff; }
.stat p { font-size: 0.93rem; color: var(--ink-soft); }
.band-green .stat p, .band-ink .stat p { color: #DCE5D8; }

/* Pull quote */
.pullquote {
  border-left: 4px solid var(--orchid);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2.5rem 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-rule);
}
.band-green .pullquote cite, .band-ink .pullquote cite { color: var(--orchid); }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.75rem;
  border-left: 2px solid var(--line);
  margin-left: 1.1rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -1.15rem;
  top: -0.2rem;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: 0.99rem; color: var(--ink-soft); }

/* Manifesto body */
.manifesto-body { max-width: 68ch; margin-inline: auto; }
.manifesto-body p { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); line-height: 1.85; margin-bottom: 1.6em; }
.manifesto-body p.opening::first-letter {
  font-family: var(--display);
  font-size: 3.6em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  color: var(--red-rule);
}
.manifesto-epigraph {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.manifesto-epigraph blockquote {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--green);
}
.manifesto-epigraph cite {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.manifesto-close {
  font-family: var(--display) !important;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem) !important;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  color: var(--green);
  border-top: 4px solid var(--red-rule);
  padding-top: 2.5rem;
  margin-top: 3rem;
}

/* Definition rows */
.deflist { border-top: 1px solid var(--line); margin: 2rem 0 0; }
.deflist > div {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: minmax(180px, 26%) 1fr;
  gap: 0.4rem 2rem;
}
.deflist dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.deflist dd { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }
@media (max-width: 680px) { .deflist > div { grid-template-columns: 1fr; } }

/* Notice box */
.notice {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orchid-deep);
  padding: 1.6rem 1.75rem;
  margin: 2rem 0;
}
.notice p { font-size: 0.97rem; color: var(--ink-soft); }
.notice strong { color: var(--ink); }

/* Logo showcase */
.mark-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.mark-row img { width: clamp(150px, 22vw, 230px); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--orchid);
  outline-offset: 1px;
  border-color: var(--green);
}
.field textarea { min-height: 150px; resize: vertical; }
.checkline { display: flex; gap: 0.75rem; align-items: flex-start; grid-column: 1 / -1; }
.checkline input { margin-top: 0.35rem; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.checkline label { font-family: var(--body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 4px solid var(--red-rule);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-brand img { width: 96px; border-radius: 50%; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.93rem; color: #B9C0B2; max-width: 40ch; }
.footer-col h4 {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orchid);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.93rem; color: var(--cream); text-decoration: none; opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8D9487;
}
.footer-bottom .tagline { color: var(--cream); }

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-rule);
  color: #fff;
  padding: 0.85rem 1.4rem;
  font-family: var(--display);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orchid); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
