/* AssociFly public site. No JavaScript.
   The one bold element is the show badge in the hero: a member, their dues
   and their booth on one object. Everything around it stays quiet.
   The PromoEQP credit stays small and at the bottom: AssociFly is its own brand. */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/young-serif-latin-0282673f.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans-latin-wght-60c058fd.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3eee2;
  --paper-deep: #e9e2d1;
  --ink: #1b2420;
  --muted: #5b6259;
  --green: #1e3a2f;
  --green-ink: #f3eee2;
  --green-muted: #b9c6bb;
  --brass: #c08a2e;
  --brass-deep: #8a5f17;
  --line: #d6cdb8;
  --link: #1e5a43;
  --field: #fffdf7;
  --mark-hole: var(--paper);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131b17;
    --paper-deep: #19241f;
    --ink: #ece6d8;
    --muted: #a9b2a8;
    --green: #1a3329;
    --line: #2f3d36;
    --link: #8fd0b0;
    --brass: #d29c3c;
    --brass-deep: #e2b462;
    --field: #0f1612;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: inherit; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; border-radius: 2px; }
.small { font-size: 0.875rem; color: var(--muted); }

.skip-link { position: absolute; top: -100px; left: 1rem; padding: 0.75rem 1rem; background: var(--paper); color: var(--ink); z-index: 10; }
.skip-link:focus { top: 1rem; }

/* Header: on the homepage it sits on the green hero; elsewhere on paper. */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--green); text-decoration: none; }
.brand-mark { width: 1.5rem; height: 1.9rem; flex: none; color: var(--green); }
.wordmark { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 47.99rem) { .nav-optional { display: none; } }

.home .site-header { background: var(--green); color: var(--green-ink); }
.home .brand-mark { color: var(--paper); --mark-hole: var(--green); }
.home .wordmark { color: var(--green-ink); }
@media (prefers-color-scheme: dark) {
  .brand-mark { color: var(--ink); --mark-hole: var(--paper); }
  .home .brand-mark { color: #f3eee2; --mark-hole: var(--green); }
  .home .wordmark { color: #f3eee2; }
}

/* Hero */
.hero { background: var(--green); color: var(--green-ink); padding: 2.5rem 0 4.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) {
  .hero { padding: 3.5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}
.status {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgb(243 238 226 / 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--green-muted);
}
.hero h1 { color: #f3eee2; max-width: 14ch; }
.lede { margin-top: 1.5rem; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.5; max-width: 34rem; color: #f3eee2; }
.intro { max-width: 32rem; color: var(--green-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.text-link { color: #f3eee2; font-weight: 600; }

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--brass);
  color: #1b2420;
  font: 650 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.18);
}
.button:hover { background: #d29c3c; text-decoration: none; }
.button:active { box-shadow: none; transform: translateY(1px); }

/* The show badge */
.badge-scene { position: relative; margin: 0 auto; width: min(100%, 20rem); padding-top: 7.5rem; }
.lanyard {
  position: absolute; top: -3rem; left: 50%; width: 15rem; height: 11rem;
  transform: translateX(-50%); fill: var(--brass);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.clip { position: absolute; top: 7.4rem; left: 50%; width: 1.6rem; height: 1.9rem; transform: translateX(-50%); border: 3px solid #9aa39b; border-radius: 0.5rem 0.5rem 0.3rem 0.3rem; z-index: 1; }
@media (max-width: 55.99rem) { .badge-scene { margin-top: 1rem; } }
.lanyard path:last-child { fill: #a87822; }
.badge {
  position: relative;
  padding: 2.4rem 1.5rem 0;
  background: #fbf8f0;
  color: #1b2420;
  border-radius: 0.9rem;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 24px 40px -18px rgb(0 0 0 / 0.55), 0 3px 8px rgb(0 0 0 / 0.25);
  transform: rotate(-3deg);
  transform-origin: 50% -1rem;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .badge { animation: badge-settle 1.6s cubic-bezier(.3, .7, .3, 1) both 0.2s; }
}
@keyframes badge-settle {
  0% { transform: rotate(6deg); }
  45% { transform: rotate(-5deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(-3deg); }
}
.badge-slot { position: absolute; top: 0.9rem; left: 50%; width: 3.2rem; height: 0.6rem; transform: translateX(-50%); border-radius: 1rem; background: var(--green); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5); }
.badge-event { margin: 0 0 1.4rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; color: #1e3a2f; text-align: center; }
.badge-name { margin: 0; font: 400 2rem/1.05 var(--serif); text-align: center; }
.badge-company { margin: 0.5rem 0 1.4rem; text-align: center; color: #5b6259; }
.badge-facts { display: grid; grid-template-columns: 1fr auto; margin: 0; border-top: 1px dashed #c9bfa8; }
.badge-facts div { padding: 0.8rem 0; }
.badge-facts div + div { padding-left: 1.2rem; margin-left: 1.2rem; border-left: 1px dashed #c9bfa8; }
.badge-facts dt { font-size: 0.75rem; color: #5b6259; }
.badge-facts dd { margin: 0.1rem 0 0; font-weight: 650; }
.badge-ribbon { margin: 0 -1.5rem; padding: 0.7rem; background: var(--brass); color: #1b2420; font: 400 1.35rem/1 var(--serif); text-align: center; }
.badge-scene figcaption { margin-top: 1.5rem; font-size: 0.8rem; line-height: 1.45; text-align: center; color: var(--green-muted); }

/* Sections */
.section { padding: 4.5rem 0; scroll-margin-top: 1rem; }
@media (min-width: 56rem) { .section { padding: 6rem 0; } }
.section-alt { background: var(--paper-deep); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.15rem; color: var(--muted); }

.features { display: grid; gap: 0; margin: 0 0 2rem; border-top: 2px solid var(--ink); }
@media (min-width: 44rem) { .features { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.features > div { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.features dt { font: 400 1.35rem/1.25 var(--serif); }
.features dd { margin: 0.5rem 0 0; color: var(--muted); max-width: 30rem; }

.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }
.split > div { max-width: 38rem; }
details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 1.75rem; }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--brass-deep); }
details p { margin: 0.8rem 0 0; color: var(--muted); }

/* Sign-up */
.signup { display: grid; gap: 2.5rem; padding: 2rem 1.25rem; border-top: 4px solid var(--brass); background: var(--field); border-radius: 0 0 0.6rem 0.6rem; box-shadow: 0 1px 0 var(--line); }
@media (min-width: 48rem) { .signup { padding: 3rem; } }
@media (min-width: 56rem) { .signup { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.signup-intro h2 { margin-bottom: 1rem; }
.signup-intro p { color: var(--muted); }
.contact { font-size: 0.95rem; overflow-wrap: anywhere; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.field input {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #8c8f84;
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field input:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border: 2px solid #a33a2a; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.5rem 0 0.75rem; }
.consent input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--green); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup .button { margin-top: 0.5rem; }
@media (max-width: 30rem) { .signup .button { width: 100%; } }
.errors { border-left: 4px solid #a33a2a; background: var(--paper); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.errors ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }

/* Plain pages: privacy, confirmation */
.page { width: 100%; max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose .lede { color: var(--ink); }

/* Footer */
.by { padding: 2rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.by .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.by nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.by a { color: inherit; }
.by p { margin: 0; }
