/* MSCCA coming-soon page.
   Built on the MSCCA Design System: every colour, size, radius and timing below is a
   token from tokens.css (copied unaltered from the system). Change the token, not this file. */

/* ── Composite type roles and base, as the design system's bundle.css sets them ── */
:root {
  color-scheme: light;
  --measure: 66ch;
  --type-display: var(--weight-regular) var(--size-display-1)/var(--leading-tight) var(--font-display);
  --type-display-2: var(--weight-regular) var(--size-display-2)/var(--leading-tight) var(--font-display);
  --type-h3: var(--weight-medium) var(--size-h3)/var(--leading-snug) var(--font-display);
  --type-body: var(--weight-regular) var(--size-body)/var(--leading-relaxed) var(--font-body);
  --type-body-sm: var(--weight-regular) var(--size-body-sm)/var(--leading-relaxed) var(--font-body);
  --type-lede: var(--weight-regular) var(--size-body-lg)/var(--leading-relaxed) var(--font-body);
  --type-ui: var(--weight-medium) var(--size-body-sm)/1.3 var(--font-ui);
  --type-eyebrow: var(--weight-semibold) var(--size-label)/1.2 var(--font-ui);
  --type-caption: var(--weight-regular) var(--size-caption)/1.4 var(--font-ui);
  --type-mono-meta: var(--weight-regular) var(--size-label)/1.4 var(--font-mono);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  text-wrap: balance;
}
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--text-link-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.wrap {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: max(var(--page-padding), env(safe-area-inset-left, 0px)) max(var(--page-padding), env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--wheat-700);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Wordmark: MSCCA in Spectral semibold over a wheat rule, motto beneath ── */
.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.wordmark { display: inline-flex; align-items: flex-start; gap: 14px; color: var(--green-700); }
.wordmark__stack { display: inline-flex; flex-direction: column; gap: 5px; }
.wordmark__name {
  font: var(--weight-semibold) 28px/1 var(--font-display);
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--rule-accent);
  padding-bottom: 4px;
}
.wordmark__motto {
  font: italic var(--weight-regular) 11px/1.2 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--wheat-700);
}
.wordmark__descriptor {
  max-width: 220px;
  padding-top: 4px;
  font: var(--weight-regular) 11px/1.35 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.wordmark--inverse { color: var(--parchment-100); }
.wordmark--inverse .wordmark__descriptor { color: rgba(255, 253, 248, .72); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface-card);
  border-bottom: var(--border-width) solid var(--border-hairline);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.site-header__meta { font: var(--type-mono-meta); color: var(--text-muted); white-space: nowrap; }

/* ── Hero: parchment ground, the crest large and faint behind it, and the one action on the page ── */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; padding-block: var(--space-10); }
.hero__content { position: relative; }
.hero__crest {
  position: absolute; top: 50%; right: -150px;
  width: 700px; max-width: none; height: auto;
  transform: translateY(-50%);
  opacity: .3;
  pointer-events: none;
  user-select: none;
}
.hero__title { font: var(--type-display); margin-top: var(--space-5); max-width: 22ch; }
.hero__motto {
  margin-top: var(--space-6);
  font: italic var(--weight-regular) 22px/1.3 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--wheat-700);
}
.hero__lede { margin-top: var(--space-6); font: var(--type-lede); color: var(--ink-700); max-width: 54ch; }

/* A thin, solid cream outline in the page's own ground colour, so hero text stays clear of the
   crest behind it. Built from stacked hard shadows rather than a text stroke, which would thin
   the letterforms; each ring is doubled so the edge reads solid, with no soft glow. */
.hero__content {
  --halo: var(--surface-page);
  --halo-w: 1px;
}
.hero__content :is(.eyebrow, .hero__title, .hero__motto, .hero__lede, .field__label, .field__hint, .field__error) {
  --w: var(--halo-w);
  --n: calc(var(--halo-w) * -1);
  --d: calc(var(--halo-w) * .7);
  --dn: calc(var(--halo-w) * -.7);
  text-shadow:
    var(--w) 0 0 var(--halo), var(--n) 0 0 var(--halo), 0 var(--w) 0 var(--halo), 0 var(--n) 0 var(--halo),
    var(--d) var(--d) 0 var(--halo), var(--dn) var(--dn) 0 var(--halo), var(--d) var(--dn) 0 var(--halo), var(--dn) var(--d) 0 var(--halo),
    var(--w) 0 0 var(--halo), var(--n) 0 0 var(--halo), 0 var(--w) 0 var(--halo), 0 var(--n) 0 var(--halo),
    var(--d) var(--d) 0 var(--halo), var(--dn) var(--dn) 0 var(--halo), var(--d) var(--dn) 0 var(--halo), var(--dn) var(--d) 0 var(--halo);
}
.hero__content .hero__title { --halo-w: 1.5px; }

/* ── Sign-up: Field, Input and Button from the system ── */
.signup-block { margin-top: var(--space-7); max-width: 560px; scroll-margin-top: calc(var(--header-h) + var(--space-6)); }
.field { display: flex; flex-direction: column; gap: var(--space-3); }
.field__label {
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-700);
}
.field__row { display: flex; gap: var(--space-4); }
.field__hint { font: var(--type-caption); color: var(--text-muted); max-width: none; }
.field__error { font: var(--type-caption); color: var(--status-danger); max-width: none; }

.input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  height: var(--control-h-lg);
  padding: 0 var(--space-4);
  font: var(--weight-regular) var(--size-body-sm)/1.3 var(--font-ui);
  color: var(--text-body);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-control);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--text-subtle); opacity: 1; }
.input:focus { border-color: var(--green-600); box-shadow: var(--ring-focus); }
.input[aria-invalid="true"] { border-color: var(--status-danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  flex: none;
  height: var(--control-h-lg);
  padding: 0 var(--space-7);
  font: var(--type-ui);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--parchment-100);
  background: var(--action-primary);
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-control);
}
.btn:hover { background: var(--action-primary-hover); }
.btn:active { background: var(--action-primary-active); }
.btn:disabled { opacity: .42; pointer-events: none; }

.notice {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: var(--border-width) solid var(--border-hairline);
  border-radius: var(--radius-md);
  font: var(--weight-regular) var(--size-body-sm)/1.5 var(--font-ui);
  animation: notice-in var(--dur-base) var(--ease-entrance);
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.notice strong { display: block; font-weight: var(--weight-semibold); }
.notice--success { background: var(--status-success-bg); color: var(--status-success); }
.notice--warning { margin-top: var(--space-4); background: var(--status-warning-bg); color: var(--status-warning); }
.notice--danger { margin-top: var(--space-4); background: var(--status-danger-bg); color: var(--status-danger); }
@keyframes notice-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Who we are: the one green band, prose beside a photograph ── */
.about {
  position: relative; overflow: hidden;
  background-color: var(--surface-inverse);
  background-image: var(--texture-paper);
  color: var(--text-inverse);
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: var(--space-9);
  align-items: center;
  padding-block: var(--section-gap);
}
/* Warm and slightly desaturated, as the system asks of photographs */
.about__photo {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 35% 20%;
  border-radius: var(--radius-md);
  filter: saturate(.82) sepia(.14);
}
.about .eyebrow { color: var(--wheat-200); }
.about__title { font: var(--type-display-2); color: var(--parchment-100); margin-top: var(--space-5); max-width: 26ch; }
.about__prose {
  display: flex; flex-direction: column; gap: var(--space-5);
  margin-top: var(--space-7);
  max-width: var(--container-prose);
  color: rgba(255, 253, 248, .86);
}
.about__prose .lede { font: var(--type-lede); color: var(--parchment-100); }

/* ── What the Society does ── */
.works__inner { padding-block: var(--section-gap); }
.works__title { font: var(--font-type-h2); margin-top: var(--space-4); }
.works__grid {
  list-style: none; margin: var(--space-7) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter);
}
.work {
  padding: var(--space-6);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-hairline);
  border-radius: var(--radius-md);
}
.work svg { width: 24px; height: 24px; color: var(--wheat-700); }
.work h3 { font: var(--type-h3); margin-top: var(--space-5); }
.work p { font: var(--type-body-sm); color: var(--ink-700); margin-top: var(--space-4); }
.works__closing { margin-top: var(--space-7); font: var(--type-body); color: var(--ink-700); }

/* ── Footer ── */
.site-footer { background: var(--surface-inverse-deep); color: var(--parchment-300); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.site-footer__note { font: var(--weight-regular) 14px/1.6 var(--font-ui); color: rgba(255, 253, 248, .6); max-width: 30ch; }
.site-footer__legal { border-top: var(--border-width) solid rgba(255, 253, 248, .14); }
.site-footer__legal p {
  padding-block: var(--space-5);
  max-width: none;
  font: var(--weight-regular) 12px/1.4 var(--font-ui);
  color: rgba(255, 253, 248, .5);
}

/* ── Narrower screens ── */
@media (max-width: 1040px) {
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --size-display-1: 48px; --size-display-2: 38px; --section-gap: 72px; }
  .hero__inner { padding-block: var(--space-9); }
  .hero__crest { top: -70px; right: -230px; width: 560px; transform: none; opacity: .13; }
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .about__photo { max-width: 480px; }
}
@media (max-width: 600px) {
  :root { --page-padding: 20px; --size-display-1: 40px; --size-display-2: 32px; --section-gap: 64px; --header-h: 68px; }
  .site-header__meta, .site-header .wordmark__descriptor { display: none; }
  .site-header .lockup img { width: 44px; height: 44px; }
  .hero__motto { font-size: 20px; }
  .field__row { flex-direction: column; }
  .input { font-size: 16px; } /* keeps iOS from zooming the page on focus */
  .btn { width: 100%; }
  .works__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wordmark__descriptor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
