@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #888888;
  --border: #111111;
  --mono: 'IBM Plex Mono', monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  color: var(--white);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--white);
  color: var(--black);
}

a {
  color: inherit;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 56px);
}

.panel {
  width: min(100%, 940px);
  min-height: min(720px, calc(100svh - clamp(36px, 10vw, 112px)));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(48px, 8vw, 96px);
  padding: clamp(22px, 5vw, 56px);
  border: 1px solid var(--border);
  background: var(--black);
}

.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.kicker,
.context,
.apply-link,
.email {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.brand {
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}

.context,
.kicker,
.email {
  margin: 0;
  color: var(--grey);
  font-size: 11px;
  line-height: 1.6;
}

.content {
  align-self: center;
  max-width: 760px;
}

.kicker {
  margin-bottom: 22px;
}

h1 {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--white);
  font-family: var(--mono);
  font-size: clamp(58px, 13vw, 132px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.body-copy {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.body-copy + .body-copy {
  margin-top: 22px;
  color: var(--grey);
}

.apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--border);
  background: var(--border);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.apply-link:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.apply-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page {
    width: 100vw;
    max-width: 100vw;
    place-items: stretch;
    padding: 14px;
    overflow: hidden;
  }

  .panel {
    width: min(360px, calc(100vw - 28px));
    max-width: min(360px, calc(100vw - 28px));
    justify-self: start;
    min-height: calc(100svh - 28px);
    gap: 44px;
    padding: 22px;
    overflow: hidden;
  }

  .header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .context {
    max-width: 240px;
  }

  h1 {
    font-size: clamp(54px, 21vw, 86px);
  }

  .body-copy {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.62;
    letter-spacing: -0.018em;
    overflow-wrap: anywhere;
  }

  .apply-link {
    width: 100%;
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .page {
    place-items: start center;
  }

  .panel {
    min-height: auto;
  }
}
