/* ---------------------------------------------------------------------------
 * The landing page — "Landing — three doors".
 *
 * A port of the Susanna Bekker Design System's templates/landing to plain CSS:
 * the template's inline styles become classes, and every value that the system
 * names as a token is referenced as one. Flat matte plum, no gradients, no
 * shadows, no lifts — colour flips only, per the system's brand-surface rule.
 * ------------------------------------------------------------------------- */

body {
  /* The plum field runs edge to edge; overrides base.css's paper page. */
  background: var(--brand-field);
  color: var(--cream);
}

/* --- The field ----------------------------------------------------------- */

.field {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 44px) clamp(22px, 4vw, 56px) clamp(28px, 4vw, 52px);
  background: var(--brand-field);
  font-family: var(--font-sans);
  color: var(--cream);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url('/assets/img/texture-grain.png');
  background-repeat: repeat;
  background-size: 256px 256px;
}

.field > header,
.field > main,
.field > nav {
  position: relative;
  z-index: 1;
}

/* --- Profile links ------------------------------------------------------- */

.profile-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: var(--border-width) solid rgba(255, 213, 121, .4);
  color: var(--gold-300);
  text-decoration: none;
  /* 130ms linear on background and colour, and nothing else — measured off the
     design system's landing template. Deliberately not the --dur-fast token
     (120ms) or the eased curve: the template hard-codes this. Border colour is
     not in the list, so it snaps, exactly as the template does. */
  transition: background 130ms linear, color 130ms linear;
}

/* Hover only — keyboard focus keeps the resting surface so the design system's
   gold focus ring stays visible against it. */
.icon:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--plum-800);
}

.icon:active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--plum-800);
}

/* Pointer and keyboard can land on the same element: a gold ring on the gold
   hover fill would disappear, so darken it there. */
.icon:hover:focus-visible,
.icon:active:focus-visible,
.door:hover:focus-visible,
.door:active:focus-visible {
  outline-color: var(--plum-800);
}

/* --- Wordmark ------------------------------------------------------------ */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(30px, 7vh, 80px) 0;
}

.wordmark {
  margin: 0;
  font: var(--fw-regular) clamp(36px, 6.4vw, 98px)/1 var(--font-display);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--gold-300);
}

.role {
  margin: clamp(16px, 2.6vh, 28px) 0 0;
  font: var(--fw-medium) clamp(14px, 1.35vw, 19px)/1.4 var(--font-sans);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--cream);
}

/* --- The three doors ----------------------------------------------------- */

.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: clamp(24px, 2.6vw, 34px) var(--space-5);
  border-radius: 20px;
  background: var(--plum-700);
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  /* Same 130ms linear colour flip as the template: no lift, no shadow. The
     plum field is flat and matte — the flip itself is the whole interaction. */
  transition: background 130ms linear, color 130ms linear;
}

.door:hover {
  background: var(--gold-300);
  color: var(--plum-800);
}

.door:active {
  background: var(--gold-500);
  color: var(--plum-800);
}

.door-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2em;
  font: var(--fw-semibold) clamp(18px, 1.7vw, 24px)/1.2 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
}

.door-text {
  font: var(--fw-regular) 15px/1.5 var(--font-sans);
  color: inherit;
  opacity: .85;
}

/* --- Not found ----------------------------------------------------------- */

.notfound .wordmark {
  font-size: clamp(28px, 4.4vw, 64px);
}

.notfound .doors {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

/* Nothing moves anywhere on this page, so there is no prefers-reduced-motion
   block: the only transition is a colour flip, which is not motion. */

/* --- Narrow viewports ---------------------------------------------------- */

@media (max-width: 760px) {
  .field {
    padding: 26px 18px 30px;
  }

  .stage {
    padding: 40px 0 44px;
  }

  .wordmark {
    font-size: clamp(32px, 10.5vw, 54px);
    line-height: 1.02;
  }

  .role {
    font-size: 13px;
    letter-spacing: .16em;
  }

  .doors {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .door {
    padding: 22px 20px;
  }

  .door-title {
    min-height: 0;
    font-size: 20px;
  }
}
