/* Made to Fit Resume. One stylesheet, no framework. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f6f1;
  --sheet: #ffffff;
  --ink: #1f2e2a;
  --muted: #55625d;
  --rule: #d6dbd3;
  --rule-strong: #b9c1b8;
  --accent: #1c6645;
  --accent-hover: #144f35;
  --accent-ink: #ffffff;
  --mark: #d3e9da;
  --mark-ink: #12442d;
  --miss: #8a3a14;
  --focus: #b45309;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --max: 1160px;
  --radius: 6px;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 20; border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.lede { font-size: var(--step-1); color: var(--muted); max-width: 36em; }
.small { font-size: var(--step--1); color: var(--muted); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover { text-decoration: underline; }
.nav .nav-extra { display: none; }
@media (min-width: 760px) { .nav .nav-extra { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--sans);
  border-radius: var(--radius); border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, transform 80ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 112px 0; } }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 + p { margin-top: 16px; }
.band { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Hero */
.hero { padding: 48px 0 64px; }
@media (min-width: 900px) { .hero { padding: 88px 0 112px; } }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; }

/* Marked posting: the signature element */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.posting { margin: 0; padding: 24px; font-size: 0.9375rem; line-height: 1.75; }
@media (min-width: 720px) { .posting { padding: 32px; } }
.posting-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 16px; }
.posting-head .small { white-space: nowrap; }
.posting-head strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.posting ul { margin: 0; padding-left: 1.1em; }
.posting li { margin-bottom: 6px; }
.posting-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 12px; }

.hit, .miss { padding: 0; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hit {
  padding: 0 2px; margin: 0 -2px;
  color: var(--mark-ink);
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat; background-size: 100% 100%;
}
.miss { text-decoration: underline wavy var(--miss); text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.key { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.key .hit, .key .miss { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .posting .hit { animation: mark-in 700ms cubic-bezier(.2,.7,.2,1) both; background-size: 0% 100%; }
  .posting li:nth-child(2) .hit { animation-delay: 150ms; }
  .posting li:nth-child(3) .hit { animation-delay: 300ms; }
  .posting li:nth-child(4) .hit { animation-delay: 450ms; }
  @keyframes mark-in { to { background-size: 100% 100%; } }
}

/* Problem */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; } }
.prose { max-width: 34em; font-size: var(--step-1); margin-top: 24px; }
.prose p { color: var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.checklist li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.checklist b { font-weight: 600; }
.checklist span { color: var(--muted); }
@media (max-width: 480px) { .checklist li { grid-template-columns: 1fr; gap: 2px; } }

/* One line, annotated (how it works) */
.redline { border-top: 1px solid var(--ink); max-width: 60em; }
.rl-row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .rl-row { grid-template-columns: 12em 1fr; gap: 24px; padding: 18px 0; } }
.rl-label { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--muted); letter-spacing: 0.02em; padding-top: 0.2em; }
.rl-text { margin: 0; font-size: var(--step-1); line-height: 1.6; }
.rl-before { font-family: var(--serif); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; }
.rl-after { font-family: var(--serif); font-size: var(--step-2); line-height: 1.4; }
.rl-note { color: var(--muted); font-size: var(--step-0); }
.rl-foot { margin-top: 20px; max-width: 44em; }

/* ATS check tool */
.privacy-line {
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-top: 20px; max-width: 40em;
}
.privacy-line p { margin: 0; }
.tool { display: grid; gap: 24px; }
@media (min-width: 900px) { .tool { grid-template-columns: 1fr 1fr; gap: 32px; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .hint { font-size: var(--step--1); color: var(--muted); margin: 0 0 10px; }
textarea {
  width: 100%; min-height: 200px; resize: vertical;
  font: 0.9375rem/1.55 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 14px;
}
textarea:focus-visible { outline-offset: 0; }
@media (min-width: 900px) { textarea { min-height: 300px; } }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload input[type="file"]:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.field .upload label.btn { display: inline-flex; margin: 0; cursor: pointer; }
.file-status { font-size: var(--step--1); color: var(--muted); }
.file-status.error { color: var(--miss); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; }
.linkish { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.linkish:hover { color: var(--accent-hover); }
.form-error { color: var(--miss); font-weight: 600; margin-top: 12px; }

/* Results */
.results { margin-top: 48px; border-top: 1px solid var(--ink); padding-top: 32px; }
.results[hidden] { display: none; }
.results-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .results-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
.score { display: flex; align-items: baseline; gap: 10px; }
.score-num { font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 6vw, 7rem); line-height: 0.9; font-weight: 500; letter-spacing: -0.03em; }
.score-of { font-size: 1.25rem; color: var(--muted); }
.score-band { font-weight: 600; margin-top: 12px; }
.score-note { margin-top: 8px; }
.parts { list-style: none; padding: 0; margin: 28px 0 0; }
.parts li { padding: 12px 0; border-top: 1px solid var(--rule); }
.parts .row { display: flex; justify-content: space-between; gap: 12px; }
.parts .row span:last-child { color: var(--muted); white-space: nowrap; }
.meter { height: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); width: 0; }
.fixes { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: fix; }
.fixes li { counter-increment: fix; display: grid; grid-template-columns: 2rem 1fr; gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--rule); }
.fixes li::before { content: counter(fix); font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--accent); grid-row: span 2; }
.fixes .area { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.terms { margin-top: 28px; }
.terms h4 { font-size: 1rem; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { font-size: 0.875rem; padding: 2px 8px; border-radius: 3px; }
.chips .hit { padding: 2px 8px; }
.chips .miss { border: 1px dashed var(--rule-strong); text-decoration: none; }
.offer {
  margin-top: 40px; padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
}
.offer p { margin: 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; max-width: 22em; }

/* Pricing: plain comparison table */
.price-table-wrap { max-width: 52em; }
.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.price-table thead th, .price-table thead td { padding-top: 20px; padding-bottom: 18px; }
.price-table tbody th { font-weight: 400; }
.price-table tbody td { font-variant-numeric: tabular-nums; width: 24%; }
.price-table tfoot td { border-bottom: 0; padding-top: 24px; }
.pt-name { display: block; font-family: var(--serif); font-size: var(--step-2); font-weight: 500; }
.pt-price { display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1.05; font-weight: 500; margin-top: 4px; }
.pt-sub { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 400; margin-top: 4px; }
.price-table .btn { padding: 0 16px; }
.pt-alt { display: block; margin-top: 10px; font-size: var(--step--1); }
@media (max-width: 600px) {
  .price-table { font-size: 0.9375rem; }
  .price-table tbody td { width: 22%; }
  .pt-price { font-size: 2rem; }
  .price-table .btn { padding: 0 10px; min-height: 44px; white-space: nowrap; font-size: 0.9375rem; }
  .price-table th, .price-table td { padding-right: 8px; }
  .pt-long { display: none; }
}
.free-line { margin-top: 20px; max-width: 44em; }
.pricing-foot { margin-top: 12px; max-width: 44em; }

/* Before and after */
.compare { display: grid; gap: 24px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; gap: 32px; } }
.doc { padding: 24px; font-size: 0.9375rem; line-height: 1.6; }
@media (min-width: 720px) { .doc { padding: 32px 36px; } }
.doc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.doc-label strong { font-size: 1rem; }
.doc-label .tag { font-size: var(--step--1); color: var(--muted); }
.doc-label .tag b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.doc .name { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; margin: 0; }
.doc .contact { font-size: 0.8125rem; color: var(--muted); margin: 2px 0 16px; overflow-wrap: anywhere; }
.doc h4 { font-size: 0.8125rem; letter-spacing: 0.04em; margin: 16px 0 6px; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.doc ul { margin: 0; padding-left: 1.1em; }
.doc li { margin-bottom: 4px; }
.doc .role { font-weight: 600; margin: 0 0 4px; }
.doc-after .hit { padding: 0 2px; }
.compare-note { margin-top: 24px; max-width: 44em; }

/* Questions: plain pairs */
.qa { margin: 0; border-top: 1px solid var(--ink); max-width: 64em; }
.qa-item { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .qa-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }
.qa dt { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; }
.qa dd { margin: 0; max-width: 40em; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; background: var(--paper); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: end; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); }
.foot-small { margin-top: 24px; font-size: var(--step--1); color: var(--muted); }

/* Legal and thanks pages */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: var(--step-3); margin-bottom: 12px; }
.page h2 { font-size: var(--step-2); margin: 40px 0 12px; font-family: var(--serif); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 8px; }
.page .updated { color: var(--muted); font-size: var(--step--1); margin-bottom: 32px; }
.next-steps { list-style: none; padding: 0; margin: 32px 0; border-top: 1px solid var(--ink); counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2.25rem 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.next-steps li::before { content: counter(n); font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--accent); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
