/* My Will Account, coming soon page
   Built to the approved brand concept (Brand/brand-concept.png):
   ivory paper, large wordmark top left, serif headline, short oxblood rule,
   spaced COMING SOON, and the wax seal photograph filling the right side.
   Fonts match the concept: Libre Baskerville (serif) and Montserrat (sans),
   both SIL Open Font License, hosted with the site. Georgia and Arial are the fallbacks. */

@font-face {
  font-family: "Libre Baskerville";
  src: url("fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colour tokens */
  --mwa-ivory: #F5F0E9;   /* primary background */
  --mwa-ink: #202027;     /* main text, wordmark */
  --mwa-oxblood: #731B2A; /* punctuation, buttons, key accents */
  --mwa-stone: #D9D0C7;   /* dividers, hairlines */
  --mwa-muted: #555050;   /* secondary text */
  --mwa-white: #FFFFFF;   /* button text */
  --mwa-oxblood-deep: #5A1521; /* button hover, derived from oxblood */

  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: Montserrat, Arial, Helvetica, sans-serif;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mwa-ivory);
  color: var(--mwa-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
p, h1 { margin: 0; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--mwa-ink);
  color: var(--mwa-white);
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mwa-oxblood);
  outline-offset: 4px;
}

/* Page: one screen, copy on the left, photograph on the right */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 32px 28px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.wordmark {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.1rem + 2.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--mwa-ink);
  text-decoration: none;
}
.wordmark__stop { color: var(--mwa-oxblood); }

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro__title {
  max-width: 13.5em;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.125rem, 1.15rem + 3.2vw, 4.125rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--mwa-ink);
}

.intro__lede {
  margin-top: 26px;
  font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--mwa-ink);
}

.intro__rule {
  width: 60px;
  height: 3px;
  margin-top: 52px;
  background: var(--mwa-oxblood);
}

.intro__status {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mwa-oxblood);
}

/* Sign up: a quiet ruled line, in keeping with the stationery */
.signup {
  width: 100%;
  max-width: 30rem;
  margin-top: 36px;
}
.signup[hidden] { display: none; }

.signup__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--mwa-ink);
  transition: border-color 160ms ease;
}
.signup__row:focus-within { border-bottom-color: var(--mwa-oxblood); }

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mwa-ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.signup__input::placeholder { color: #6E6764; }
.signup__input:focus { outline: none; }

.signup__button {
  flex: none;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--mwa-oxblood);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease;
}
.signup__button:hover { color: var(--mwa-oxblood-deep); }
.signup__button:disabled { opacity: 0.6; cursor: default; }

/* Spam trap, never shown */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup__message {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--mwa-oxblood);
}
.signup__message:empty { display: none; }

.signup__done,
.signup__fail {
  display: none;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--mwa-ink);
}
.signup__fail { color: var(--mwa-oxblood); }
.signup__done.is-visible,
.signup__done:target,
.signup__fail:target { display: block; }
.signup:has(~ .signup__done:target) { display: none; }

.page__legal {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--mwa-muted);
}

/* Photograph */
.page__visual {
  margin: 0;
  height: 380px;
  order: 1;
}
.page__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
}

/* Desktop: the photograph fills the right side, edge to edge, and fades into the paper */
@media (min-width: 900px) {
  .page__copy {
    flex: 1 0 auto;
    justify-content: space-between;
    gap: 40px;
    width: 64%;
    padding-block: clamp(40px, 6vh, 72px) 32px;
    padding-left: max(clamp(40px, 7vw, 120px), env(safe-area-inset-left, 0px));
    padding-right: 0;
  }
  .page__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54%;
    height: auto;
    padding-right: env(safe-area-inset-right, 0px);
  }
  .page__visual picture { display: block; height: 100%; }
  .page__visual img {
    object-position: 35% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.6) 22%, #000 40%);
    mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.6) 22%, #000 40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}
