@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --secondary: #3a3a3a;
  --rule: #e4e4e4;
  --field: #dddddd;
  --lip: #cccccc;
  --media: #f0f0f0;
  --font: "Libre Franklin", "Verdana", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --measure: 72rem;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mast,
.desk,
.status,
.readout,
.results-bar,
.list,
.coverage,
footer {
  width: min(var(--measure), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.mast {
  padding-top: 30px;
  border-bottom: 1px solid var(--ink);
  box-shadow: rgba(0, 0, 0, 0.3) 0 8px 8px -5px inset;
}

.mast-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.wordmark,
h1 {
  font-family: var(--cond);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.wordmark { font-size: 1.35rem; letter-spacing: 0; }

h1 { font-size: 2.25rem; }

.mission {
  margin: 10px 0 16px;
  color: var(--secondary);
  font-size: 0.75rem;
  line-height: 1.6;
}

.desk { padding-top: 22px; }

.resume-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 11rem;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.55 var(--font);
  box-shadow: rgba(0, 0, 0, 0.05) 1px 1px 3px 1px inset;
  caret-color: var(--ink);
}

textarea::placeholder { color: var(--secondary); }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 12px;
}

.file {
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.file-name {
  margin: 0;
  color: var(--secondary);
  font-size: 0.75rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
}

fieldset label { display: flex; gap: 6px; align-items: center; }

input[type="checkbox"] { accent-color: var(--ink); width: 1rem; height: 1rem; }

button,
.file span {
  font-family: var(--font);
}

#go {
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

#go:disabled {
  background: var(--lip);
  color: var(--ink);
  cursor: progress;
}

.privacy,
.coverage,
footer p {
  color: var(--secondary);
  font-size: 0.75rem;
  line-height: 1.6;
}

.privacy { margin: 12px 0 0; }

.status {
  min-height: 1.5rem;
  margin-top: 22px;
  font-size: 0.875rem;
}

.status.error { color: var(--ink); font-weight: 700; }

.readout {
  margin-top: 8px;
  padding-bottom: 8px;
  font-size: 0.75rem;
  color: var(--secondary);
}

.readout strong { color: var(--ink); font-weight: 700; }

.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--lip);
}

h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.filters { display: flex; gap: 14px; }

.filters button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--secondary);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.filters button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
}

.list {
  list-style: none;
  margin: 8px auto 0;
  padding: 0;
}

.list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.list li.note {
  display: block;
  color: var(--secondary);
  font-size: 0.875rem;
}

.list li.best { position: relative; }

.score {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score span {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.625rem;
  color: var(--secondary);
  margin-top: 2px;
}

.role h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.meta,
.why {
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 0.75rem;
  line-height: 1.6;
}

.why { color: var(--ink); }

.apply {
  align-self: start;
  font-size: 0.875rem;
  white-space: nowrap;
}

.mark {
  position: absolute;
  top: 10px;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  padding: 3px 7px;
}

.list li.best .apply { margin-right: 3.2rem; }

.coverage { margin-top: 18px; max-width: 65ch; }

footer {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 5px solid var(--ink);
  padding-bottom: 30px;
}

@media (max-width: 720px) {
  .mast-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  h1 { font-size: 2rem; }
  #go { margin-left: 0; }
  .results-bar { flex-direction: column; align-items: flex-start; }
  .list li {
    grid-template-columns: 3.2rem 1fr;
  }
  .apply { grid-column: 2; }
  .list li.best .apply { margin-right: 0; }
  .mark { top: 8px; }
}
