/* Söhne (licensed) — drop the .woff2 files in /assets/fonts/; until then, Geist. */
@font-face { font-family: 'Söhne'; src: url('/assets/fonts/soehne-leicht.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Söhne'; src: url('/assets/fonts/soehne-buch.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Söhne'; src: url('/assets/fonts/soehne-kraftig.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Söhne'; src: url('/assets/fonts/soehne-halbfett.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #0B0D10;                    /* page background (dark, matches landing) */
  --ink: #FFFFFF;                      /* primary text / inverted fills */
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.12);
  --accent: #E8A33D;
  --font-main: 'Söhne', 'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.page {
  min-height: 100vh;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 clamp(3rem, 9vw, 6.5rem);
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo {
  display: block;
  width: clamp(108px, 12vw, 148px);
  height: auto;
  filter: brightness(0) invert(1);     /* black wordmark → white on dark */
}

.back-link {
  white-space: nowrap;
  text-decoration: none;
}

.kicker {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.05rem;
}

h1 {
  max-width: 680px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.lede {
  max-width: 660px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: clamp(2.25rem, 6vw, 4rem);
}

.article {
  border-top: 0.5px solid var(--faint);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.section {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 0.5px solid var(--faint);
}

.section-label {
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 1.45rem 0 0.45rem;
}

p {
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.64;
  color: rgba(255, 255, 255, 0.64);
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  margin: 1.15rem 0 0;
}

li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.72rem;
  font-size: clamp(1.04rem, 2.1vw, 1.16rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.64);
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--accent);
  font-style: italic;
  color: rgba(255, 255, 255, 0.64);
}

.apply-panel {
  margin-top: 1.55rem;
}

.apply-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.apply-cta:hover,
.apply-cta:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.apply-help {
  max-width: 520px;
  margin-top: 0.85rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--muted);
}

.footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--muted);
}

.footer a {
  text-decoration: none;
}

.footer .sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.55rem;
}

.careers-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.careers-lede {
  max-width: 760px;
}

.roles {
  border-top: 0.5px solid var(--faint);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.role-group {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.7rem, 4vw, 2.6rem) 0;
  border-bottom: 0.5px solid var(--faint);
}

.role-list {
  display: grid;
  gap: 0;
}

.role-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0;
  border: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.role-button:last-child {
  border-bottom: 0;
}

.role-button:hover .role-title,
.role-button:focus-visible .role-title {
  color: var(--accent);
}

.role-button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 8px;
}

.role-title {
  display: block;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  line-height: 1.08;
  transition: color 0.18s ease;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.65rem;
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--muted);
}

.role-arrow {
  align-self: center;
  font-family: var(--font-main);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.culture-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(840px, calc(100vh - 2rem));
  margin: auto;
  padding: 0;
  border: 0.5px solid var(--faint);
  background: #14171c;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.culture-dialog::backdrop {
  background: rgba(16, 16, 15, 0.52);
}

.culture-panel {
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.culture-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.1rem;
}

.culture-close:hover,
.culture-close:focus-visible {
  color: var(--ink);
}

.culture-dialog h2 {
  max-width: 610px;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  margin: 0 0 1.2rem;
}

.culture-dialog p {
  max-width: 620px;
}

.culture-block {
  border-top: 0.5px solid var(--faint);
  margin-top: 1.7rem;
  padding-top: 1.35rem;
}

.culture-block ul {
  margin-top: 0.9rem;
}

.culture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  align-items: center;
  border-top: 0.5px solid var(--faint);
  margin-top: 1.8rem;
  padding-top: 1.35rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.culture-primary {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
}

.culture-secondary {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.role-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: -0.75rem 0 clamp(2.25rem, 6vw, 4rem);
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page {
    padding: 1.2rem;
  }

  .masthead {
    align-items: flex-start;
    padding-bottom: 3rem;
  }

  .section {
    display: block;
    padding: 1.8rem 0;
  }

  .role-group {
    display: block;
  }

  .role-list {
    margin-top: 0.35rem;
  }

  .role-button {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-arrow {
    display: none;
  }

  .section-label {
    margin-bottom: 0.8rem;
  }

  .footer {
    line-height: 2.2;
  }

  .footer .sep {
    margin: 0 0.25rem;
  }
}
