:root {
  font-family: "DM Sans", sans-serif;
  color: #191816;
  background: #f5f3ee;
  --ink: #191816;
  --paper: #f5f3ee;
  --cream: #e9e5da;
  --lime: #d8ff48;
  --muted: #716e66;
  --line: #d8d4ca;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }

.site-header {
  min-height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #f8f6ef;
  background: var(--ink);
}
.brand { font: 700 1.05rem "Manrope", sans-serif; text-decoration: none; }
.brand span { color: var(--lime); font-size: .55rem; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.site-nav a { color: #b8b5ac; font-size: .8rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .sign-in { padding: 9px 14px; color: var(--ink); background: var(--lime); font-weight: 600; }

.hero, .page-hero { padding: clamp(68px, 10vw, 130px) clamp(20px, 7vw, 112px); }
.hero { color: #f8f6ef; background: var(--ink); }
.hero-inner, .page-inner, .explorer, .editorial, .site-footer-inner { max-width: 1180px; margin: 0 auto; }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.hero h1, .page-hero h1 { max-width: 920px; margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.3rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.hero p, .page-hero p { max-width: 720px; color: #aaa79d; font-size: 1.05rem; line-height: 1.7; }
.page-hero { padding-bottom: 60px; }
.page-hero p { color: var(--muted); }

.explorer { padding: clamp(48px, 8vw, 94px) 20px; }
.explorer-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 7vw, 92px); margin-bottom: 34px; }
.explorer-intro h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; line-height: 1.05; }
.explorer-intro p { color: var(--muted); line-height: 1.7; }
.match-form { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.resume-field { grid-column: 1 / -1; }
.field-note { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.match-button { margin-top: 18px; padding: 13px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.match-button span { margin-left: 24px; color: var(--lime); }
.match-button:disabled { opacity: .45; cursor: not-allowed; }

.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 52px 0 16px; }
.results-heading h2 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 500; }
.results-heading p { margin-bottom: 5px; color: var(--muted); font-size: .75rem; }
.job-list { display: grid; gap: 12px; }
.job-card { display: grid; grid-template-columns: 88px 1fr; border: 1px solid var(--line); background: #fff; }
.score { padding: 24px 8px; border-right: 1px solid var(--line); text-align: center; }
.score strong { display: block; font: 500 2rem "Manrope", sans-serif; }
.score small { color: var(--muted); font-size: .58rem; letter-spacing: .12em; }
.job-main { min-width: 0; padding: 22px 26px 25px; }
.job-top { display: flex; justify-content: space-between; gap: 20px; }
.job-top p { margin-bottom: 5px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.job-top h3 { margin-bottom: 0; font-size: 1.28rem; }
.job-age { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.job-meta, .job-explanation { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.job-meta { margin: 9px 0 16px; }
.job-explanation { max-width: 800px; color: #504e48; }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.keywords span { padding: 5px 8px; background: #eeece5; color: #56544e; font-size: .68rem; }
.apply-link { display: inline-block; margin-top: 19px; padding: 11px 15px; color: #fff; background: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.apply-link span { margin-left: 16px; color: var(--lime); }
.empty { padding: 54px 20px; border: 1px solid var(--line); color: var(--muted); background: #fff; text-align: center; }
.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.pagination[hidden] { display: none; }
.pagination button { padding: 10px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pagination button:hover:not(:disabled) { border-color: var(--ink); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination span { color: var(--muted); font-size: .78rem; }

.editorial { padding: 22px 20px 90px; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.editorial-grid article { padding: 28px; }
.editorial-grid article + article { border-left: 1px solid var(--line); }
.editorial-grid h2 { margin: 32px 0 12px; font-size: 1.25rem; }
.editorial-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.content { max-width: 780px; }
.content h2 { margin: 48px 0 12px; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 500; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 30px 0 10px; }
.content p, .content li { color: #504e48; line-height: 1.75; }
.content li + li { margin-top: 8px; }
.calculation { display: grid; gap: 1px; margin: 24px 0; background: var(--line); border: 1px solid var(--line); }
.calculation div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 15px; background: #fff; }
.callout { margin: 30px 0; padding: 22px; border-left: 4px solid var(--lime); background: #fff; }

.site-footer { padding: 38px clamp(20px, 5vw, 72px); color: #d8d6cf; background: #173238; }
.site-footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 60px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
.footer-links a { color: #fff; font-size: .78rem; }
.site-footer p { grid-column: 1 / -1; margin-bottom: 0; color: #aaa; font-size: .72rem; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding-top: 20px; padding-bottom: 20px; }
  .site-nav { justify-content: flex-end; flex-wrap: wrap; gap: 12px 18px; }
  .site-nav a:not(.sign-in) { display: none; }
  .explorer-intro, .form-grid, .editorial-grid { grid-template-columns: 1fr; }
  .resume-field { grid-column: auto; }
  .editorial-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .job-card { grid-template-columns: 64px 1fr; }
  .job-main { padding: 18px 16px 21px; }
  .job-top { display: block; }
  .job-age { display: block; margin-top: 8px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
