/* jobfeed-eg: one column, phone first. The Verdict colours are the ones the
   Daily List cards use. */

:root {
  --ink: #1d2a33;
  --muted: #55636e;
  --paper: #f3f6f7;
  --line: #d3dce0;
  --apply: #2f7d5b;
  --maybe: #a86a12;
  --skip: #64737f;
  --focus: #2f6fb0;
  --field: #ffffff;
  --error: #b3261e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf0;
    --muted: #9fb0ba;
    --paper: #15202a;
    --line: #2e3d48;
    --apply: #5fbf8f;
    --maybe: #e0a54a;
    --skip: #93a4b0;
    --focus: #7fb2e8;
    --field: #1c2934;
    --error: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1, h2 { line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.125rem; margin-top: 2.25rem; }
p { margin: 0 0 1rem; }

.brand { font-weight: 700; letter-spacing: 0.01em; }
section > .brand { margin-bottom: 2rem; color: var(--muted); }

/* The one loud thing: the three Verdicts, stacked. */
.verdicts {
  font-size: clamp(3rem, 15vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.verdicts span { display: block; }
.apply { color: var(--apply); }
.maybe { color: var(--maybe); }
.skip { color: var(--skip); }

.lead { font-size: 1.1875rem; max-width: 30rem; }
.quiet { color: var(--muted); }

.privacy { margin: 0 0 2rem; padding-left: 1.2rem; }
.privacy li { margin-bottom: 0.5rem; }
#contact-email { color: inherit; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 0.2em; }
#in-app { margin-bottom: 1.25rem; }

button { font: inherit; cursor: pointer; }

.primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.primary:hover { background: transparent; color: var(--ink); }
.primary:disabled { opacity: 0.6; cursor: progress; }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, input[type="file"]:focus-visible::file-selector-button { outline: 3px solid var(--focus); outline-offset: 3px; }

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.who { color: var(--muted); }
.pages { display: flex; gap: 1.25rem; width: 100%; }
.pages a { color: var(--ink); text-underline-offset: 0.2em; }

/* The Profile form */
form { margin-top: 1.5rem; }
fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; }
legend, .field > label { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.field { margin-bottom: 1.75rem; }
.choice { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.35rem 0; }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--apply); flex: none; transform: translateY(0.15rem); }
input[type="text"], textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}
input[type="text"]:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }
.example { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.error { margin: 0.35rem 0 0; color: var(--error); font-weight: 700; }
.saved { margin-top: 0.75rem; color: var(--apply); font-weight: 700; }

/* Start from your resume */
.resume { margin: 1.5rem 0 0.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--field); }
.resume h2 { margin-top: 0; }
.resume input[type="file"] { width: 100%; font: inherit; color: var(--muted); }
.resume input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.resume input[type="file"]:disabled::file-selector-button { opacity: 0.6; cursor: progress; }
.status { margin: 0.75rem 0 0; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#seeker-name { color: var(--ink); }

.message {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--maybe);
  background: color-mix(in srgb, var(--maybe) 12%, transparent);
}

/* The Daily List */
.list-date { margin-top: -0.5rem; }
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.card {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--verdict);
  border-radius: 0.5rem;
  background: var(--field);
  overflow-wrap: anywhere;
}
.card-apply { --verdict: var(--apply); }
.card-maybe { --verdict: var(--maybe); }
.card h2 { margin: 0 0 0.2rem; font-size: 1.1875rem; }
.card p { margin: 0 0 0.6rem; }
.card .verdict { margin-bottom: 0.35rem; font-weight: 700; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; }
.card .where, .card .details { color: var(--muted); font-size: 0.9375rem; }
.card .stretch strong { color: var(--maybe); }
.card .open { display: inline-block; margin-top: 0.15rem; padding: 0.35rem 0; color: var(--ink); font-weight: 700; text-underline-offset: 0.2em; }
.skipped { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.skipped summary { padding: 0.9rem 0; color: var(--skip); font-weight: 700; cursor: pointer; }
.skipped ul { margin: 0; padding-left: 1.2rem; }
.skipped li { margin-bottom: 0.6rem; overflow-wrap: anywhere; }

[hidden] { display: none !important; }
.resume > :last-child { margin-bottom: 0; }
