:root {
  --ink: #111111;
  --paper: #faf9f6;
  --muted: #ebe8e1;
  --gold: #d0a800;
  --blue: #075bd8;
  --blue-dark: #0048ad;
  --red: #a31916;
  --green: #087039;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.member-header {
  background: var(--gold);
  border-bottom: 3px solid var(--ink);
}

.member-header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark,
.member-header span {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wordmark {
  text-decoration: none;
}

.member-header span {
  text-align: right;
}

.member-intro {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 5px solid var(--gold);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: clamp(2rem, 7vw, 5.5rem);
  align-items: end;
}

.intro-copy,
.member-progress,
.form-explainer,
.member-form {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.intro-copy .eyebrow {
  color: var(--gold);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
legend {
  letter-spacing: -.025em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3.1rem, 7.8vw, 5.7rem);
  font-weight: 950;
  line-height: .93;
  text-transform: uppercase;
}

.intro-lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: rgba(250, 249, 246, .82);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.meeting-meaning {
  max-width: 38rem;
  margin-top: 1.2rem;
  border-left: 6px solid var(--blue);
  background: rgba(250, 249, 246, .09);
  padding: .85rem 1rem;
}

.meeting-meaning strong {
  display: block;
  color: var(--paper);
  font-size: .92rem;
  text-transform: uppercase;
}

.meeting-meaning p {
  margin: .25rem 0 0;
  color: rgba(250, 249, 246, .78);
  font-size: .88rem;
  line-height: 1.45;
}

.member-progress {
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 7px 7px 0 rgba(250, 249, 246, .2);
  padding: clamp(1.1rem, 3vw, 1.45rem);
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .7rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.progress-heading strong {
  text-align: right;
}

.progress-primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: 1rem 0 .7rem;
}

.progress-primary > strong {
  font-size: clamp(2.65rem, 7vw, 4rem);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .85;
}

.progress-primary small {
  font-size: .4em;
  letter-spacing: -.02em;
}

.progress-primary > span {
  max-width: 16rem;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.25;
}

.progress-member-count {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .4rem;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.25;
}

.progress-member-count strong {
  flex: none;
  font-size: .9rem;
  font-weight: 950;
}

.progress-track {
  height: 1rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--blue);
  transition: width .35s ease;
}

.progress-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: .8rem;
}

.progress-breakdown p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .5rem;
  align-items: center;
  margin: 0;
  border: 2px solid var(--ink);
  background: rgba(250, 249, 246, .62);
  padding: .6rem;
}

.progress-breakdown strong {
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
}

.progress-breakdown span {
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.2;
}

.progress-needed {
  margin: .85rem 0 0;
  font-size: .8rem;
  line-height: 1.4;
}

.progress-needed strong {
  display: block;
  font-size: .92rem;
}

.submission-instruction {
  margin: .8rem 0 0;
  border-top: 2px solid var(--ink);
  padding-top: .75rem;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.4;
}

.form-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(15rem, .65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.form-explainer {
  position: sticky;
  top: 1.25rem;
}

.form-explainer h2,
.success-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 950;
  line-height: .96;
  text-transform: uppercase;
}

.form-explainer > p:not(.eyebrow) {
  max-width: 30rem;
  font-size: 1.04rem;
}

.privacy-note {
  margin-top: 1.5rem;
  border-left: 6px solid var(--blue);
  background: #e7effc;
  padding: 1rem;
}

.attendance-note {
  margin-top: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--gold);
  padding: 1rem;
}

.attendance-note > strong {
  display: block;
  text-transform: uppercase;
}

.attendance-note p {
  margin: .3rem 0 .65rem;
  font-size: .92rem;
  line-height: 1.45;
}

.attendance-note small {
  display: block;
  border-top: 1px solid rgba(17, 17, 17, .5);
  padding-top: .65rem;
  font-size: .76rem;
  line-height: 1.4;
}

.privacy-note strong {
  text-transform: uppercase;
}

.privacy-note p {
  margin: .25rem 0 0;
  font-size: .9rem;
}

.member-form {
  border: 3px solid var(--ink);
  background: #ffffff;
  box-shadow: 9px 9px 0 var(--ink);
  padding: clamp(1.15rem, 3.5vw, 2rem);
}

.form-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.form-group + .form-group {
  margin-top: 1.8rem;
  border-top: 3px solid var(--ink);
  padding-top: 1.8rem;
}

.form-group legend {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 950;
  line-height: 1.2;
}

.form-group legend small,
.member-confirm small {
  color: #57534c;
  font-size: .72em;
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  min-width: 0;
  display: grid;
  gap: .4rem;
}

.field > span,
.week-label {
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field small {
  display: block;
  color: #57534c;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: .7rem .8rem;
}

.field input:focus-visible,
.choice input:focus-visible,
.date-grid input:focus-visible,
.time-options input:focus-visible,
.member-confirm input:focus-visible,
.submit-button:focus-visible {
  outline: 4px solid #6aa1ee;
  outline-offset: 3px;
}

.choice,
.member-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: .95rem;
  cursor: pointer;
}

.choice + .choice {
  margin-top: .7rem;
}

.choice:has(input:checked),
.member-confirm:has(input:checked) {
  border-color: var(--blue);
  background: #e7effc;
  box-shadow: inset 6px 0 0 var(--blue);
}

.choice input,
.date-grid input,
.time-options input,
.member-confirm input {
  width: 1.25rem;
  height: 1.25rem;
  margin: .12rem 0 0;
  accent-color: var(--blue);
}

.choice span {
  line-height: 1.45;
}

.choice strong {
  display: block;
}

.group-help {
  margin: -.55rem 0 1rem;
  color: #57534c;
}

.week-block + .week-block {
  margin-top: 1.3rem;
}

.week-label {
  display: block;
  margin-bottom: .55rem;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.date-grid label,
.time-options label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: center;
  min-height: 3.4rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: .65rem;
  cursor: pointer;
}

.date-grid label:has(input:checked),
.time-options label:has(input:checked) {
  border-color: var(--blue);
  background: #e7effc;
  box-shadow: inset 5px 0 0 var(--blue);
}

.date-grid span {
  display: grid;
  font-size: .75rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.date-grid strong {
  font-size: .92rem;
}

.unsure-choice {
  margin-top: 1rem;
}

.field-error {
  margin: .75rem 0 0;
  border-left: 5px solid var(--red);
  background: #ffe7e5;
  color: #74100e;
  padding: .65rem .8rem;
  font-weight: 800;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.time-options span {
  font-weight: 800;
}

.member-confirm {
  margin-top: 1.8rem;
  background: var(--gold);
  font-weight: 800;
}

.submit-block {
  margin-top: 1.2rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
}

.submit-block > p:first-child {
  margin-bottom: .8rem;
}

.submit-button {
  width: 100%;
  min-height: 3.75rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 6px 6px 0 var(--ink);
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--blue-dark);
}

.submit-button:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-status {
  margin: 1rem 0 0;
  border: 2px solid var(--red);
  background: #ffe7e5;
  color: #74100e;
  padding: .8rem;
  font-weight: 800;
}

.success-panel {
  border: 3px solid var(--ink);
  border-top: 12px solid var(--green);
  background: #ffffff;
  box-shadow: 9px 9px 0 var(--ink);
  padding: clamp(1.3rem, 4vw, 2.5rem);
}

.success-panel .eyebrow {
  color: var(--green);
}

.success-panel h2 span {
  color: var(--green);
}

.success-big {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 900;
}

.success-next {
  margin-top: 1.5rem;
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 1rem;
}

.success-next strong {
  text-transform: uppercase;
}

.success-next p {
  margin: .25rem 0 0;
}

.member-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem 0;
}

.member-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.member-footer p {
  max-width: 42rem;
  margin: 0;
  font-size: .85rem;
}

.member-footer a {
  flex: none;
  font-size: .85rem;
  font-weight: 850;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .intro-grid,
  .form-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-intro {
    padding: 3rem 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 3.7rem);
    line-height: .96;
  }

  .member-progress {
    box-shadow: 5px 5px 0 rgba(250, 249, 246, .2);
  }

  .form-explainer {
    position: static;
  }

  .form-explainer h2 {
    font-size: 2.25rem;
  }

  .member-form,
  .success-panel {
    box-shadow: 6px 6px 0 var(--ink);
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 1.5rem, 68rem);
  }

  .member-header-inner {
    min-height: 3.6rem;
  }

  .member-header span {
    font-size: .66rem;
  }

  .member-intro {
    padding: 2.5rem 0 2.8rem;
  }

  h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.15rem);
  }

  .intro-lede {
    font-size: 1rem;
  }

  .progress-heading {
    display: grid;
    gap: .15rem;
  }

  .progress-heading strong {
    text-align: left;
  }

  .form-section {
    padding: 2.8rem 0 3.5rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .date-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-options {
    grid-template-columns: 1fr;
  }

  .member-form {
    padding: 1rem;
  }

  .choice,
  .member-confirm {
    padding: .85rem;
  }

  .member-footer .shell {
    display: grid;
  }
}

@media (max-width: 390px) {
  .progress-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .date-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
