/* ============================================================
   pack12tx.org — single stylesheet
   Tokens, base, layout, components.
   Mobile-first. No frameworks.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color — paper, ink, scout red. Deliberately small palette. */
  --c-paper:      #FAF7F2;     /* warm cream page background */
  --c-paper-2:    #F2EDE3;     /* slightly deeper, for sections */
  --c-card:       #FFFFFF;
  --c-ink:        #16181C;     /* near-black, warm navy undertone */
  --c-ink-2:      #3B3F46;     /* secondary text */
  --c-ink-3:      #6B6F77;     /* muted */
  --c-rule:       #DCD5C7;     /* hairline rules on cream */
  --c-rule-2:     #E7E1D4;
  --c-red:        #CE1126;     /* BSA scout red */
  --c-red-deep:   #A60D1E;
  --c-khaki:      #8C7A5B;
  --c-canvas:     #2B2F36;     /* deep ink for footer */
  --c-canvas-2:   #1B1E22;

  /* Type scale — modular, conservative */
  --f-display: "Roboto Slab", "Georgia", "Times New Roman", serif;
  --f-body:    "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --fs-xs:   0.75rem;    /* 12 */
  --fs-sm:   0.875rem;   /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md:   1.125rem;   /* 18 */
  --fs-lg:   1.375rem;   /* 22 */
  --fs-xl:   1.75rem;    /* 28 */
  --fs-2xl:  2.25rem;    /* 36 */
  --fs-3xl:  3rem;       /* 48 */
  --fs-4xl:  3.75rem;    /* 60 */

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;

  /* Misc */
  --radius:     6px;
  --radius-sm:  3px;
  --shadow-sm:  0 1px 2px rgba(22,24,28,.05);
  --shadow-md:  0 4px 14px rgba(22,24,28,.08);
  --container:  1140px;
  --container-narrow: 720px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--c-red-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-red); }
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0 0 var(--s-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--s-4); text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--c-rule); margin: var(--s-6) 0; }

/* ---------- Containers ---------- */
.container        { max-width: var(--container);        margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

/* ---------- Eyebrow / micro labels ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-ink-3);
  margin: 0 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--c-red);
}
.eyebrow.no-rule::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn { white-space: nowrap; }
.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited {
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red-deep);
  text-decoration: none;
}
a.btn-primary:hover,
.btn-primary:hover { background: var(--c-red-deep); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
  text-decoration: none;
}
a.btn-secondary:link, a.btn-secondary:visited { color: var(--c-ink); text-decoration: none; }
.btn-secondary:hover, a.btn-secondary:hover { background: var(--c-ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-rule);
  text-decoration: none;
}
a.btn-ghost:link, a.btn-ghost:visited { color: var(--c-ink); text-decoration: none; }
.btn-ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: var(--fs-md); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-rule);
  position: relative;
  z-index: 10;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--c-ink);
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--c-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  border-radius: var(--radius-sm);
  letter-spacing: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-3);
  margin-top: 2px;
}

.nav {
  display: none;
}
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
}
.nav a:not(.btn) {
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.nav a:not(.btn):hover { border-bottom-color: var(--c-red); }
.nav a:not(.btn).is-active {
  border-bottom-color: var(--c-red);
  color: var(--c-ink);
}
.nav__cta {
  margin-left: var(--s-3);
}

/* mobile menu button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border: 1px solid var(--c-rule);
  background: transparent;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink);
  cursor: pointer;
}
.nav-toggle__bars {
  display: inline-block;
  width: 16px; height: 10px;
  position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--c-ink);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 4px; }
.nav-toggle__bars::after { bottom: 0; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-rule);
  background: var(--c-paper);
  padding: var(--s-4) 0 var(--s-5);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
}
.mobile-menu__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-rule-2);
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-md);
  font-family: var(--f-display);
}
.mobile-menu__list a::after {
  content: "›";
  color: var(--c-ink-3);
  font-size: 1.4em;
}

@media (min-width: 880px) {
  .nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-8);
  background: var(--c-paper);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
.hero__title {
  font-size: var(--fs-3xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}
.hero__title em {
  font-style: normal;
  color: var(--c-red);
}
.hero__lede {
  font-size: var(--fs-md);
  color: var(--c-ink-2);
  max-width: 38ch;
  margin-bottom: var(--s-5);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.hero__ctas .meta {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-3);
  padding-left: var(--s-3);
  border-left: 1px solid var(--c-rule);
}
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-paper-2);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink);
}
.hero__factbar {
  margin-top: var(--s-6);
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  padding: var(--s-4) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.hero__fact {
  display: flex;
  flex-direction: column;
}
.hero__fact-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-3);
  margin-bottom: 4px;
}
.hero__fact-value {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 880px) {
  .hero { padding: var(--s-8) 0 var(--s-9); }
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-7);
    align-items: center;
  }
  .hero__title { font-size: var(--fs-4xl); }
  .hero__factbar { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Section header ---------- */
.section { padding: var(--s-8) 0; }
.section--alt { background: var(--c-paper-2); }
.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.section__head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.section__head h2 { margin: 0; }
.section__head a { font-size: var(--fs-sm); }

/* ---------- Two-column home grid: events + announcement ---------- */
.home-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .home-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); }
}

/* Events list */
.event-list { list-style: none; margin: 0; padding: 0; }
.event {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-rule);
  align-items: start;
}
.event:last-child { border-bottom: 1px solid var(--c-rule); }
.event__date {
  text-align: center;
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  background: var(--c-card);
}
.event__date-mo {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-red);
  font-weight: 600;
}
.event__date-day {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.event__body h3 {
  font-size: var(--fs-md);
  margin: 0 0 6px;
}
.event__body h3 a { color: var(--c-ink); text-decoration: none; }
.event__body h3 a:hover { color: var(--c-red); text-decoration: underline; }
.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
}
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__cta {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-red-deep);
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
  padding-top: 4px;
}
.event__cta:hover { color: var(--c-red); }

/* Announcement card */
.announce {
  background: var(--c-card);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  padding: var(--s-5);
  position: relative;
}
.announce__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-rule-2);
}
.announce__pin {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-red);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.announce__date {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink-3);
}
.announce__title {
  font-size: var(--fs-lg);
  margin: 0 0 var(--s-3);
}
.announce__body {
  font-size: var(--fs-base);
  color: var(--c-ink-2);
}
.announce__body p:last-child { margin-bottom: 0; }
.announce__sig {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-rule-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  font-style: italic;
}

/* ---------- Quick links ---------- */
.quicklinks {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) { .quicklinks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .quicklinks { grid-template-columns: repeat(6, 1fr); } }
.quicklink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-ink);
  transition: border-color .15s ease, transform .1s ease;
  min-height: 110px;
}
.quicklink:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
  transform: translateY(-1px);
}
.quicklink__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-ink-3);
}
.quicklink__title {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.2;
}
.quicklink__sub {
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  margin-top: auto;
}

/* ---------- Inner page (Den) ---------- */
.page-hero {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-rule);
  padding: var(--s-7) 0 var(--s-6);
}
.crumb {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-ink-3);
  margin-bottom: var(--s-4);
}
.crumb a { color: var(--c-ink-3); text-decoration: none; }
.crumb a:hover { color: var(--c-ink); }
.crumb__sep { margin: 0 8px; opacity: .5; }

.page-hero__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 720px) {
  .page-hero__row { grid-template-columns: 1fr auto; gap: var(--s-6); }
}
.page-hero__title { font-size: var(--fs-3xl); margin: 0 0 var(--s-2); }
.page-hero__sub {
  font-size: var(--fs-md);
  color: var(--c-ink-2);
  margin: 0;
}
.rank-badge {
  width: 110px;
  height: 110px;
  background: var(--c-card);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: grid;
  place-items: center;
}
.rank-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Den info block */
.info-block {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  background: var(--c-card);
  margin: var(--s-6) 0 var(--s-7);
  overflow: hidden;
}
@media (min-width: 720px) {
  .info-block { grid-template-columns: repeat(3, 1fr); }
}
.info-block__cell {
  padding: var(--s-5);
  border-bottom: 1px solid var(--c-rule-2);
}
@media (min-width: 720px) {
  .info-block__cell { border-bottom: 0; border-right: 1px solid var(--c-rule-2); }
  .info-block__cell:last-child { border-right: 0; }
}
.info-block__cell:last-child { border-bottom: 0; }
.info-block__label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-ink-3);
  margin-bottom: var(--s-2);
}
.info-block__value {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
}
.info-block__value a { color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-rule); }
.info-block__value a:hover { color: var(--c-red); border-bottom-color: var(--c-red); }
.info-block__sub {
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  margin-top: 4px;
  font-family: var(--f-body);
  font-weight: 400;
}

/* Prose (markdown body) */
.prose {
  max-width: 68ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-ink);
}
.prose h1 { font-size: var(--fs-3xl); margin-top: var(--s-7); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p  { margin-bottom: var(--s-4); }
.prose ul, .prose ol { margin: 0 0 var(--s-4) 0; padding-left: 1.4em; }
.prose li { margin-bottom: var(--s-2); }
.prose strong { color: var(--c-ink); }
.prose blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--c-red);
  background: var(--c-paper-2);
  font-size: var(--fs-md);
  color: var(--c-ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { margin: var(--s-6) 0; }

/* page sidebar */
.page-layout {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  padding: var(--s-7) 0;
}
@media (min-width: 960px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-8); }
}
.sidebar { display: flex; flex-direction: column; gap: var(--s-5); }
.sidebar-card {
  border: 1px solid var(--c-rule);
  background: var(--c-card);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.sidebar-card h4 {
  font-size: var(--fs-md);
  margin: 0 0 var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-rule-2);
}
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li {
  padding: 8px 0;
  font-size: var(--fs-sm);
  border-bottom: 1px dotted var(--c-rule-2);
}
.sidebar-card li:last-child { border-bottom: 0; }
.sidebar-card li a { color: var(--c-ink); text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.sidebar-card li a:hover { color: var(--c-red); }
.sidebar-card li.is-current a { color: var(--c-red); font-weight: 600; }
.sidebar-card li .grade {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-ink-3);
}

/* ---------- Form (Join) ---------- */
.join-layout {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  padding: var(--s-7) 0 var(--s-8);
}
@media (min-width: 960px) {
  .join-layout { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; }
}

.join-intro h1 { font-size: var(--fs-2xl); }
.join-intro p { font-size: var(--fs-md); color: var(--c-ink-2); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-5) 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--s-4);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-sm);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-ink);
  background: var(--c-paper);
}
.steps strong {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-md);
  margin-bottom: 2px;
}
.steps p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-sm); }

.form-card {
  background: var(--c-card);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  padding: var(--s-6);
  position: relative;
}
.form-card::before {
  content: "FORM 1A";
  position: absolute;
  top: -10px;
  left: var(--s-5);
  background: var(--c-paper);
  padding: 0 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--c-ink-3);
}
.form-card h2 { font-size: var(--fs-xl); margin-top: 0; }
.form-card__sub {
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  margin-bottom: var(--s-5);
}

.field { margin-bottom: var(--s-4); }
.field--row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; } }

.field label, .field__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-2);
  margin-bottom: 6px;
  font-weight: 600;
}
.field__label .req { color: var(--c-red); }
.field__hint { color: var(--c-ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: var(--fs-xs); }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  background: #fff;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2316181C' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.privacy {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--c-paper);
  border: 1px dashed var(--c-rule);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.5;
}
.privacy strong { color: var(--c-ink); display: block; font-family: var(--f-display); font-size: var(--fs-sm); margin-bottom: 4px; }

.form-actions {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: stretch;
}
.form-actions .skip {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
}
.form-actions .skip a { color: var(--c-ink-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-canvas);
  color: #D9D5CB;
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
  font-size: var(--fs-sm);
}
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-footer a:hover { border-bottom-color: var(--c-red); color: #fff; }
.footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-7); }
}
.footer__brand .brand__mark { background: var(--c-red); }
.footer__brand .brand__name, .footer__brand .brand__sub { color: #fff; }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); }
.footer__about {
  margin-top: var(--s-4);
  color: rgba(255,255,255,.7);
  max-width: 38ch;
  line-height: 1.55;
}
.footer__h {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.5);
  margin: 0 0 var(--s-3);
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { padding: 6px 0; }
.footer__list a { border-bottom: 0; opacity: .85; }
.footer__list a:hover { opacity: 1; }
.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.footer__copy {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  letter-spacing: 0.04em;
}
.footer__disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  max-width: 88ch;
}
.footer__disclaimer strong { color: rgba(255,255,255,.8); font-weight: 600; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--c-ink-3); }
.divider-mark {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-6) 0;
}
.divider-mark::before, .divider-mark::after {
  content: ""; flex: 1; height: 1px; background: var(--c-rule);
}
.divider-mark span {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-ink-3);
}
