/* ==========================================================================
   Nillumbik Art Museum — front page

   These values are read from the live Squarespace site, so the petition
   section sits inside the existing design rather than next to it:

     Typeface     futura-pt, weight 300 throughout (Adobe Fonts)
     Headings     black, weight 300, letter-spacing -2%
     Body copy    rgb(128,128,131)
     Page         rgb(250,250,250)
     Buttons      black fill, rgb(245,245,243) text, square corners,
                  letter-spacing +2%, generous padding
     Inputs       white, 1px rgba(0,0,0,.12), square corners
     Nav          uppercase, letter-spacing +2%, black

   futura-pt is an Adobe Fonts (Typekit) face and can't be loaded here without
   the site's kit, so this page falls back to Jost — a free geometric sans cut
   from the same Futura lineage. Inside Squarespace the embed inherits the real
   futura-pt automatically, so the two match in production.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&display=swap');

:root {
  --ink:        #000;
  --body:       #808083;
  --body-dark:  #5f5f62;
  --paper:      #fafafa;
  --white:      #fff;
  --line:       rgba(0, 0, 0, .12);
  --line-soft:  rgba(0, 0, 0, .07);
  --dark:       #111;
  --dark-text:  #f5f5f3;
  --error:      #a8261e;

  --font: 'futura-pt', 'Jost', 'Century Gothic', 'Avenir Next', 'Futura', sans-serif;

  --wrap: 1100px;
  --gutter: clamp(1.5rem, 5vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.06rem, .3vw + 1rem, 1.24rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
}

a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--body); }

/* One shared measure. Everything on the page lines up against this — the hero
   included, which is why .hero-inner is a CHILD of .wrap and never the same
   element. Putting a narrower max-width on .wrap itself re-centres the box and
   pulls its left edge inward, which is exactly the misalignment this avoids. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: 60ch; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--dark-text); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Solid, not translucent-with-blur: backdrop-filter silently does nothing
     in some rendering contexts, and a 94%-opaque bar then lets the page bleed
     through behind the logo. Flat also suits the rest of the design. */
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 92px;
  flex-wrap: wrap;
}

.brand { flex: 0 0 auto; line-height: 0; }
.brand img { width: clamp(140px, 16vw, 190px); height: auto; }

.site-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav a {
  font-size: .8rem; font-weight: 300; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink); white-space: nowrap;
}
.site-nav a:hover { opacity: .55; }

.nav-cta {
  background: var(--ink); color: var(--dark-text) !important;
  padding: .85rem 1.5rem;
}
.nav-cta:hover { opacity: 1; background: #333; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 20px; height: 1px; background: var(--ink); content: '';
  }
  .nav-toggle-bar::before { transform: translateY(-6px); }
  .nav-toggle-bar::after  { transform: translateY(5px); }

  .site-nav {
    flex-basis: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    display: none; padding-bottom: 1rem;
  }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding: .95rem 0; border-top: 1px solid var(--line-soft); }
  .nav-cta { text-align: center; margin-top: .9rem; border-top: 0; }
}

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

.hero {
  padding-block: clamp(4rem, 10vw, 8.5rem);
  border-bottom: 1px solid var(--line-soft);
}

.hero-inner { max-width: 52rem; }

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: .78rem; font-weight: 300; letter-spacing: .18em;
  text-transform: uppercase; color: var(--body);
}

.hero h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  letter-spacing: -.025em;
  line-height: 1.06;
}

.hero-lede {
  margin: 0 0 2.5rem;
  font-size: clamp(1.12rem, .5vw + 1rem, 1.4rem);
  max-width: 44ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-count { margin: 2rem 0 0; font-size: .95rem; }
.hero-count .count-number { color: var(--ink); font-weight: 400; }

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

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 300;
  letter-spacing: .02em; text-decoration: none; text-align: center;
  padding: 1.15rem 2.15rem;
  border: 1px solid var(--ink); border-radius: 0;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.btn-primary { background: var(--ink); color: var(--dark-text); }
.btn-primary:hover { background: #333; border-color: #333; color: var(--dark-text); }
.btn-primary[disabled] { background: var(--body); border-color: var(--body); cursor: progress; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--dark-text); }

.btn-block { display: block; width: 100%; margin-top: 1.75rem; }
.btn-lg { padding: 1.3rem 2.75rem; }
.btn-sm { padding: .7rem 1.25rem; font-size: .88rem; }

/* -------------------------------------------------------------- petition */

.petition { padding-block: clamp(4rem, 9vw, 7rem); scroll-margin-top: 100px; }

.petition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 980px) { .petition-grid { grid-template-columns: minmax(0, 1fr); } }

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.questions { list-style: none; margin: 0 0 2.25rem; padding: 0; }
.questions li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.08rem;
  color: var(--body-dark);
}
.questions li:first-child { border-top: 1px solid var(--line-soft); }

.ask-intro { margin: 0 0 2rem; }

/* The wording reproduced verbatim on every page lodged with Council. */
.the-ask {
  margin: 0 0 1.5rem; padding: 2rem 2.25rem;
  background: var(--dark); color: var(--dark-text);
}
.the-ask p { margin: 0 0 1rem; font-size: 1.05rem; }

.ask-heading {
  font-size: .78rem !important; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(245, 245, 243, .55);
  padding-bottom: 1.1rem; margin-bottom: 1.4rem !important;
  border-bottom: 1px solid rgba(245, 245, 243, .18);
}
.ask-addressee { color: #fff; }
.ask-requests { margin: 0; padding-left: 1.3rem; }
.ask-requests li { margin-bottom: .7rem; }
.ask-requests li:last-child { margin-bottom: 0; }
.the-ask strong { font-weight: 400; color: #fff; }

.eligibility-note {
  margin: 0 0 3rem;
  font-size: .95rem; line-height: 1.6;
}
.eligibility-note strong { font-weight: 400; color: var(--ink); }

.petition-figure { margin: 0; }
.petition-figure figcaption,
.gallery figcaption {
  margin-top: .85rem;
  font-size: .88rem; line-height: 1.5;
}

/* ------------------------------------------------------------------ form */

.petition-form-wrap { position: sticky; top: 116px; }
@media (max-width: 980px) { .petition-form-wrap { position: static; } }

.petition-form,
.thanks {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.form-title { margin: 0 0 .5rem; font-size: 1.55rem; }
.form-sub { margin: 0 0 2rem; font-size: .92rem; }

.field-row { display: flex; gap: 1rem; }
@media (max-width: 480px) { .field-row { flex-wrap: wrap; gap: 0; } }

.field { flex: 1 1 0; margin: 0 0 1.35rem; display: flex; flex-direction: column; }
.field-grow { flex: 2 1 0; }
.field-narrow { flex: 0 0 7.5rem; }
@media (max-width: 480px) { .field-narrow { flex-basis: 100%; } }

.field label,
.check label {
  font-size: .74rem; font-weight: 300; letter-spacing: .14em;
  text-transform: uppercase; color: var(--body);
  margin-bottom: .55rem;
}

.field input {
  width: 100%;
  font-family: var(--font); font-weight: 300; font-size: 1.02rem;
  color: var(--ink);
  padding: .95rem 1rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 0;
  transition: border-color .15s ease;
}
.field input:hover { border-color: rgba(0, 0, 0, .3); }
.field input:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.hint { margin-top: .5rem; font-size: .84rem; }

.error { font-size: .84rem; color: var(--error); margin-top: .45rem; display: none; }
.error:not(:empty) { display: block; }

/* Off-screen rather than display:none — some bots skip hidden fields. */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  margin: -.35rem 0 1.35rem; padding: .9rem 1rem;
  background: var(--paper); border-left: 2px solid var(--ink);
  font-size: .88rem; line-height: 1.55; color: var(--body-dark);
}

.check {
  display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem;
  align-items: start; margin: 0 0 1.15rem;
}
.check input { margin-top: .35rem; width: 1rem; height: 1rem; accent-color: #000; }
.check label {
  text-transform: none; letter-spacing: 0;
  font-size: .93rem; line-height: 1.5; color: var(--body-dark); margin-bottom: 0;
}
.check .error { grid-column: 2; }

.form-status { margin: 1.15rem 0 0; font-size: .93rem; }
.form-status[data-tone="error"] { color: var(--error); }
.form-status[data-tone="ok"] { color: var(--ink); }

.privacy {
  margin: 1.6rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: .84rem; line-height: 1.55;
}

/* ---------------------------------------------------------------- thanks */

.thanks h3 { margin: 0 0 .75rem; font-size: 1.9rem; }
.thanks-count { font-size: .95rem; }
.thanks-count .count-number { color: var(--ink); font-weight: 400; }
.share { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.share p { margin: 0 0 1rem; font-size: .93rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ------------------------------------------------------------------ case */

.case { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line-soft); }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem; margin-bottom: 3.5rem;
}
.stat { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.stat-number {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 300; line-height: 1;
  color: var(--ink); letter-spacing: -.03em;
}
.stat-label { display: block; margin-top: .7rem; font-size: .95rem; line-height: 1.45; }

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.25rem; }

/* ------------------------------------------------------------ collection */

.collection { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line-soft); }

.gallery {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: #eee;
}

.gallery-note { margin-top: 2.5rem; font-size: .9rem; }

/* --------------------------------------------------------------- closing */

.closing {
  background: var(--dark); color: var(--dark-text);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.closing-inner { max-width: 42rem; }
.closing h2 { margin: 0 0 1.1rem; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--dark-text); }
.closing p { margin: 0 0 2.5rem; color: rgba(245, 245, 243, .7); }
.closing .btn-primary {
  background: var(--dark-text); color: var(--ink); border-color: var(--dark-text);
}
.closing .btn-primary:hover { background: #fff; border-color: #fff; }

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

.site-footer { border-top: 1px solid var(--line-soft); padding-block: 3.5rem 3rem; }
.footer-inner { display: grid; gap: 2rem; }

.wordmark { margin: 0; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.tagline { margin: .5rem 0 0; font-size: .9rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.footer-nav a {
  font-size: .78rem; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.footer-nav a:hover { opacity: .55; }

.acknowledgement {
  margin: 0; padding-top: 2rem; border-top: 1px solid var(--line-soft);
  font-size: .88rem; line-height: 1.6; max-width: 78ch;
}
