:root {
  --bg: #f3efe6;
  --bg-raise: #fffcf7;
  --ink: #1c1915;
  --muted: #5e574c;
  --line: #e2dacb;
  --accent: #0e6b4d;
  --accent-deep: #0a533c;
  --accent-soft: #e5f4ee;
  --salary: #8a4514;
  --chip: #efe8db;
  --danger: #8d2f22;
  --shadow: 0 16px 40px rgba(48, 36, 18, 0.06);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 90% -10%, rgba(14, 107, 77, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 18px 0 14px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.brand-mark span,
.brand-mark span:before,
.brand-mark span:after {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #f4f0e6;
  content: "";
}
.brand-mark span { width: 14px; }
.brand-mark span:before { width: 10px; margin-bottom: 3px; }
.brand-mark span:after { width: 12px; margin-top: 3px; }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }

.hero { padding: 18px 0 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 12px; }
.hero h1 { max-width: 11em; }
.lede { font-size: 1.18rem; max-width: 46rem; color: var(--muted); margin: 0 0 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.stats li {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.panel {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 18px;
}
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
.salary-toggle { display: flex; align-items: center; gap: 8px; min-height: 46px; font-weight: 700; }
.salary-toggle input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 8px 0 0; color: var(--muted); }
.toolbar strong { color: var(--ink); }

.jobs { margin: 8px 0 28px; }
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.job:first-child { border-top: 1px solid var(--line); }
.job:hover .job-title { color: var(--accent-deep); }
.job-title { font-weight: 700; font-size: 1.12rem; }
.job-meta { color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span, .chip {
  background: var(--chip);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.job-salary { color: var(--salary); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.empty {
  padding: 28px 8px 36px;
  color: var(--muted);
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #f6f3ea;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--accent-deep); }
.button.secondary, button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.job-hero { padding: 12px 0 8px; }
.crumbs { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.crumbs a { color: var(--accent-deep); }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; padding-bottom: 40px; }
.prose p { margin: 0 0 14px; }
.prose { max-width: 68ch; }
.apply-card {
  position: sticky;
  top: 16px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.apply-card p { margin: 8px 0; color: var(--muted); }
.salary-lg { color: var(--salary); font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.related { margin: 10px 0 36px; }
.related a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related a:hover { color: var(--accent-deep); }

.page { padding-bottom: 36px; }
.page h1 { max-width: 18ch; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.price {
  font-family: var(--serif);
  font-size: 3rem;
  margin: 0;
}
.price span { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 600; }
.form-grid { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note {
  background: #f8efe2;
  border: 1px solid #eadcc4;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--danger);
  font-weight: 700;
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.checklist { padding-left: 18px; }
.checklist li { margin: 8px 0; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr; gap: 24px; }
.footer h2 { font-size: 1.35rem; margin: 0 0 8px; }
.footer p { color: var(--muted); margin: 0 0 10px; }
.footer a { color: var(--accent-deep); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.fine { font-size: 0.9rem; }

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

@media (max-width: 900px) {
  .filters, .job-layout, .split, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .job-salary { text-align: left; }
  .apply-card { position: static; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .nav { width: 100%; }
  h1 { font-size: 2.25rem; }
}
