:root {
  --bg: #0d0d0f;
  --bg-soft: #141418;
  --line: #26262c;
  --fg: #f2f2f2;
  --fg-dim: #a3a3ad;
  --accent: #e8e8ee;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); }
a:hover { color: #fff; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.94rem;
}

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

/* ---------- content ---------- */

main { padding: 3rem 0 4rem; }

h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.tagline {
  color: var(--fg-dim);
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

ul { margin: 0 0 1.1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.45rem; }

.lead { font-size: 1.08rem; }

.muted { color: var(--fg-dim); }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

dl { margin: 0; }
dt { color: var(--fg-dim); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1.1rem; }
dt:first-child { margin-top: 0; }
dd { margin: 0.15rem 0 0; }

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.cta:hover { border-color: #3a3a44; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--fg-dim);
  font-size: 0.88rem;
}

footer p { margin: 0 0 0.3rem; }

@media (prefers-color-scheme: light) {
  /* the site is intentionally single-theme; nothing to override */
}

/* ---------- role list ---------- */

.role {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin: 1.25rem 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.role:hover { border-color: #3f3f4a; background: #17171c; }

.role-title { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 0.3rem; }
.role-meta { display: block; color: var(--fg-dim); font-size: 0.88rem; margin-bottom: 0.7rem; }
.role-blurb { display: block; margin-bottom: 0.8rem; }
.role-go { display: block; font-size: 0.92rem; color: var(--fg-dim); }
.role:hover .role-go { color: var(--fg); }

/* ---------- posting body ---------- */

.posting h2 {
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.posting h2:first-of-type { border-top: none; padding-top: 0; }

.apply-bar {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  background: var(--fg);
  color: #0d0d0f;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--fg);
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { background: #fff; color: #0d0d0f; }
.btn:disabled { opacity: 0.5; cursor: default; }

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.back:hover { color: var(--fg); }

/* ---------- form ---------- */

.field { margin-bottom: 1.6rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.97rem;
  margin-bottom: 0.15rem;
}

.field .hint {
  display: block;
  color: var(--fg-dim);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.field .opt { color: var(--fg-dim); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #55555f;
}

input[type="file"] { padding: 0.55rem 0.6rem; font-size: 0.92rem; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%),
                    linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

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

.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.94rem;
  background: var(--bg-soft);
}

.note.error { border-color: #6b2b2b; background: #1c1214; }
.note.ok { border-color: #2f5236; background: #101a13; }

#status[hidden], #form-wrap[hidden] { display: none; }

/* ---------- locations disclosure ---------- */

.locations {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  margin: 0 0 1.75rem;
  overflow: hidden;
}

.locations summary {
  cursor: pointer;
  padding: 0.8rem 1.1rem;
  font-size: 0.94rem;
  color: var(--fg-dim);
  list-style: none;
  user-select: none;
}

.locations summary::-webkit-details-marker { display: none; }

.locations summary::after {
  content: " \25be";
  color: var(--fg-dim);
}

.locations[open] summary {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

.locations[open] summary::after { content: " \25b4"; }

.locations summary:hover { color: var(--fg); }

.loc-body { padding: 1.1rem 1.1rem 1.25rem; }

.loc-head {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.loc-head span {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.loc-head:not(:first-child) { margin-top: 1.4rem; }

.loc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.4rem 0.75rem;
}

.loc-grid li {
  margin: 0;
  padding: 0.34rem 0.7rem;
  background: #1b1b21;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
}

.loc-note {
  margin: 1.3rem 0 0;
  font-size: 0.88rem;
  color: var(--fg-dim);
}

@media (max-width: 420px) {
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .loc-grid li { font-size: 0.84rem; padding: 0.3rem 0.5rem; }
}
