/* Careers pages. Self-contained so the job layout can be restyled on its own. */
/* Inter Tight, latin, SIL OFL. License: /assets/fonts/OFL.txt */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --paper: #000;
  --ink: #fff;
  --muted: #9a9a9a;
  --line: #333;
  --error: #ff8d84;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 40rem;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 5;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.frame {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--gutter), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 2rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  font-size: 2rem;
}

.mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.4em;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.wordmark img {
  width: auto;
  height: 1.25em;
  display: block;
  transform: translateY(-0.08em);
}

.motto {
  margin-top: 0.7em;
  color: var(--muted);
  font-size: 0.36em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  padding-top: 0.35rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.page {
  width: min(100%, var(--measure));
  margin: 2.5rem auto 3rem;
}

.crumbs {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span[aria-hidden="true"] {
  margin-inline: 0.35rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  margin: 1.1rem 0 0;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.facts {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 1rem;
}

.facts dt {
  margin: 0;
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.notice {
  margin: 1.5rem 0 0;
  padding: 1rem 1.05rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.4;
}

.notice:focus-visible {
  outline-color: var(--paper);
}

h2 {
  margin: 2.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.work li::marker {
  color: var(--muted);
}

.roles {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.roles a {
  display: block;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.roles a:hover .role-title {
  text-decoration: underline;
}

.role-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.role-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.apply {
  margin-top: 0.4rem;
}

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

.form-error {
  margin: 1rem 0 0;
  font-weight: 600;
}

.hint,
.field-error,
.status,
.file-name {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-error {
  color: var(--error);
}

.field {
  margin-top: 1.15rem;
}

.field label,
.check-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 550;
}

input,
textarea {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.file-input {
  max-width: 100%;
  padding: 0.65rem 0.2rem;
  border: 0;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.check-row input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--ink);
  flex: none;
}

.check-row label {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.submit,
.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.4rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.submit:hover,
.book:hover {
  opacity: 0.82;
}

.submit:disabled {
  opacity: 0.55;
  cursor: progress;
}

.success {
  width: min(100%, var(--measure));
  margin: 4.5rem auto 3rem;
}

.success .kicker {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.success p {
  margin: 1rem 0 0;
  max-width: 32rem;
}

.site-footer {
  align-items: center;
  gap: 0.8rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.place {
  margin: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    padding-top: 0;
  }

  .wordmark {
    font-size: 1.7rem;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .submit,
  .book {
    width: 100%;
  }

  .page {
    margin-top: 2rem;
  }
}
