:root {
  --black: #000;
  --ink: #0a0a0a;
  --panel: #141414;
  --line: #2a2a2a;
  --text: #f5f5f0;
  --muted: #b8b8b0;
  --yellow: #ffc400;
  --yellow-soft: #ffe07a;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* type */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.dot { color: var(--yellow); }
.on-yellow .dot { color: var(--black); }

/* header */
.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; text-decoration: none; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--text); background: transparent; color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); color: var(--black); }
.btn-black { background: var(--black); border-color: var(--black); color: #fff; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; }
.btn-black:hover { background: #222; border-color: #222; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* hero */
.hero { padding: 48px 0 56px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.tag { background: var(--yellow); color: var(--black); padding: 5px 9px; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(64px, 12vw, 150px); line-height: .9; letter-spacing: -.02em; margin: 0 0 28px; }
.hero p { max-width: 460px; font-size: 17px; color: #d6d6d0; margin: 0; }

/* forms */
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 64px; }
.card { padding: 28px; }
.card-dark { background: var(--panel); border: 1px solid #222; }
.card-yellow { background: var(--yellow); color: var(--black); }
.card h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; line-height: 1; margin: 8px 0 10px; }
.card .lede { margin: 0 0 22px; font-size: 15px; }
.card-dark .lede { color: #d6d6d0; }
.eyebrow { color: var(--yellow); }
.card-yellow .eyebrow { color: var(--black); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.card-dark .field label { color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font-family: var(--sans); font-size: 15px; border-radius: 0;
}
.card-dark input, .card-dark select { background: #000; border: 1px solid #333; color: var(--text); }
.card-yellow input, .card-yellow select, .card-yellow textarea { background: #fff; border: 1px solid #000; color: #000; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.card-yellow input:focus, .card-yellow select:focus, .card-yellow textarea:focus { outline-color: #000; }
.field.invalid input, .field.invalid select { border-color: #ff6b4a; }
.card-yellow .field.invalid input { border-color: #b00020; border-width: 2px; }
.error { font-size: 13px; min-height: 0; }
.card-dark .error { color: #ff8c73; }
.card-yellow .error { color: #8a0018; font-weight: 600; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 18px; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #000; }

.file-drop {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; border: 1px dashed #000; background: var(--yellow-soft); cursor: pointer; font-size: 14px; text-align: center; padding: 8px;
}
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* points */
.points { border-top: 1px dashed #333; padding: 32px 0 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.points h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; margin: 6px 0 6px; }
.points p { margin: 0; color: var(--muted); font-size: 14px; }
.points .num { color: var(--yellow); font-size: 11px; }

/* footer */
.site-footer { border-top: 1px solid #222; padding: 24px 0 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer .mono { font-size: 11px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

/* thanks */
.thanks { background: var(--yellow); color: var(--black); min-height: 100vh; display: flex; flex-direction: column; }
.thanks main { flex: 1; display: flex; align-items: center; }
.thanks .inner { max-width: 620px; padding: 40px 0 64px; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: #000; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.thanks h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 9vw, 96px); line-height: .95; margin: 12px 0 18px; }
.thanks p { font-size: 17px; margin: 0 0 28px; }
.thanks .actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px dashed #000; padding-top: 22px; }
.btn-outline-black { border-color: #000; color: #000; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; }
.btn-outline-black:hover { border-color: #000; color: #000; background: rgba(0,0,0,.06); }

/* prose */
.prose { max-width: 720px; margin: 48px auto 80px; color: #d6d6d0; font-size: 17px; line-height: 1.7; }
.prose h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 9vw, 88px); line-height: 1; color: var(--text); margin: 10px 0 24px; }
.prose h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; color: var(--text); margin: 36px 0 8px; }
.prose a { color: var(--yellow); }

/* jobs */
.jobs-hero { padding: 32px 0 32px; }
.jobs-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 9vw, 104px); line-height: .95; margin: 10px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filters input, .filters select { background: var(--panel); border: 1px solid #333; color: var(--text); min-height: 48px; }
.filters input { flex: 2 1 260px; }
.filters select { flex: 1 1 160px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 72px; }
.job {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none;
  background: var(--panel); border: 1px solid #222; transition: border-color .15s;
}
.job:hover { border-color: var(--yellow); }
.job .meta { color: var(--yellow); font-size: 11px; }
.job h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1; margin: 0; }
.job .where { color: var(--muted); font-size: 15px; }
.job .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #333; padding-top: 14px; margin-top: auto; }
.job .pay { font-family: var(--mono); font-size: 13px; }
.job .view { font-family: var(--mono); font-size: 12px; color: var(--yellow); }
.job.featured { background: var(--yellow); color: #000; border-color: var(--yellow); }
.job.featured .meta, .job.featured .where, .job.featured .view { color: #000; }
.job.featured .foot { border-color: #000; }
.job.featured:hover { border-color: #fff; }
.job-cta { border: 1px dashed #444; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.job-cta h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0; }
.job-cta p { margin: 0; color: var(--muted); }
.job-cta a { color: var(--yellow); }
.empty { color: var(--muted); padding: 24px 0; }

/* job detail */
.detail { display: flex; flex-wrap: wrap; gap: 40px; padding: 24px 0 80px; }
.detail .main { flex: 999 1 520px; min-width: 0; }
.detail aside { flex: 1 1 340px; min-width: 0; }
.detail h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 9vw, 96px); line-height: .95; margin: 10px 0 24px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #333; border: 1px solid #333; margin-bottom: 12px; }
.facts div { background: #000; padding: 16px; }
.facts .mono { color: var(--muted); font-size: 11px; display: block; margin-bottom: 6px; }
.detail .main h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; margin: 28px 0 8px; }
.detail .main p { color: #d6d6d0; font-size: 17px; margin: 0; }
.back { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-decoration: none; }
.back:hover { color: var(--yellow); }

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

@media (max-width: 820px) {
  .forms, .grid2, .points { grid-template-columns: minmax(0, 1fr); }
  .points { gap: 18px; }
  .card { padding: 22px; }
  .card h2 { font-size: 38px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
