@font-face {
  font-family: "Untitled Sans";
  src: url("./public/fonts/UntitledSansWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Untitled Sans";
  src: url("./public/fonts/UntitledSansWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0d0e10;
  --muted: #666866;
  --line: #d9d9d4;
  --paper: #f4f3ef;
  --form-surface: #e5e3dc;
  --white: #fff;
  --accent: #0a756a;
  --error: #a12424;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Untitled Sans", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(22px, 4vw, 72px);
  background: rgba(244, 243, 239, .94);
  border-bottom: 1px solid rgba(13, 14, 16, .14);
  backdrop-filter: blur(12px);
}

.brand,
.header-apply {
  font-weight: 700;
  text-decoration: none;
}

.brand {
  font-size: 23px;
}

.header-apply {
  font-size: 14px;
}

.header-apply:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - 64px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 10, 12, .92) 0%, rgba(9, 10, 12, .72) 43%, rgba(9, 10, 12, .08) 78%),
    linear-gradient(0deg, rgba(9, 10, 12, .62), transparent 48%);
}

.hero-content {
  position: relative;
  width: min(1360px, 100%);
  padding: clamp(84px, 10vh, 118px) clamp(22px, 5vw, 88px);
  color: var(--white);
}

.section-label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  font-size: clamp(58px, 7vw, 112px);
  line-height: .88;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.42;
}

.hero-cta,
.submit {
  min-height: 50px;
  border: 0;
  border-radius: 2px;
  padding: 14px 22px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.hero-cta:hover,
.submit:hover {
  transform: translateY(-2px);
}

.role-section,
.apply-section {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 8vw, 140px);
  padding: clamp(72px, 9vw, 128px) clamp(22px, 6vw, 104px);
}

.role-section {
  border-bottom: 1px solid var(--line);
}

.section-label {
  color: var(--muted);
}

h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: .98;
  letter-spacing: -.04em;
}

.role-details {
  max-width: 720px;
  padding-top: 31px;
}

.role-details > p {
  margin-bottom: 34px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.35;
}

.role-details ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.role-details li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: #343633;
  font-size: 17px;
  line-height: 1.4;
}

.apply-section {
  align-items: start;
  background: var(--form-surface);
  border-top: 1px solid #d1cfc7;
}

.apply-heading {
  position: sticky;
  top: 108px;
}

.application-form {
  display: grid;
  gap: 52px;
  max-width: 820px;
}

fieldset {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 19px;
  font-weight: 700;
}

legend span {
  display: inline-block;
  min-width: 42px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

label {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
}

.required {
  margin-left: 4px;
  color: var(--accent);
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  margin-top: 9px;
  border: 1px solid #c9cac5;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(10, 117, 106, .12);
}

input[type="file"] {
  padding: 11px;
  cursor: pointer;
}

.file-help {
  display: block;
  margin-top: 7px;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}

.submit {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--white);
}

.submit:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: var(--error);
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 6vw, 104px);
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .role-section,
  .apply-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .role-details {
    padding-top: 0;
  }

  .apply-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 58px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-media {
    object-position: 70% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 10, 12, .91) 0%, rgba(9, 10, 12, .7) 72%, rgba(9, 10, 12, .28)),
      linear-gradient(0deg, rgba(9, 10, 12, .78), rgba(9, 10, 12, .05) 58%);
  }

  .hero-content {
    padding-top: 104px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(56px, 17vw, 76px);
    line-height: .91;
  }

  .role-section,
  .apply-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .submit {
    width: 100%;
  }
}
