@layer layout,components,print;

@layer layout {
  body[data-route="biography"] .biography-intro-card {
    position: relative;
    width: min(100%, 1040px);
    margin: clamp(1.75rem, 4vw, 4rem) auto 0;
    padding: clamp(2rem, 5vw, 4.25rem) clamp(1.25rem, 5vw, 4rem);
    overflow: hidden;
    border: 1px solid var(--border-standard);
    background: color-mix(in srgb, var(--surface-raised) 72%, var(--surface-base));
    box-shadow: none;
    text-align: center;
  }

  body[data-route="biography"] .biography-intro-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--accent-fill);
  }

  body[data-route="biography"] .biography-intro-card .migration-kicker {
    margin: 0 auto 1.15rem;
  }

  body[data-route="biography"] .biography-intro-title {
    max-width: none;
    margin: 0;
    font-size: clamp(3.35rem, 7vw, 6rem);
    line-height: .92;
    letter-spacing: -.052em;
    white-space: nowrap;
  }

  body[data-route="biography"] .biography-intro-name {
    margin: .75rem 0 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: clamp(.68rem, 1vw, .84rem);
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  body[data-route="biography"] .biography-intro-card .data-page-deck {
    max-width: 720px;
    margin: clamp(1.35rem, 2.5vw, 1.8rem) auto 0;
  }

  body[data-route="biography"] .biography-intro-action {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.5rem, 3vw, 2rem);
  }

  body[data-route="biography"] .biography-intro-action .button {
    min-width: min(100%, 250px);
  }

  @media (max-width: 560px) {
    body[data-route="biography"] .biography-intro-card {
      padding: 1.75rem 1rem 2rem;
    }

    body[data-route="biography"] .biography-intro-title {
      font-size: clamp(3rem, 18vw, 4.4rem);
      letter-spacing: -.045em;
    }

    body[data-route="biography"] .biography-intro-name {
      letter-spacing: .11em;
    }

    body[data-route="biography"] .biography-intro-action,
    body[data-route="biography"] .biography-intro-action .button {
      width: 100%;
    }
  }
}

@layer components {
  body[data-route="biography"] .biography-intro-action .button {
    justify-content: center;
    text-align: center;
  }
}

@layer print {
  @media print {
    body[data-route="biography"] .biography-intro-card {
      border: 0;
      padding: 0;
    }

    body[data-route="biography"] .biography-intro-card::before,
    body[data-route="biography"] .biography-intro-action {
      display: none;
    }
  }
}
