/* Read-receipt theme: deep green bands, blue "replied" ticks, grey "seen" ticks,
   monospace clocks for every deadline. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #10201a;
  --muted: #5c6b64;
  --line: #dde3df;
  --green: #0f3d2e;
  --green-2: #17543f;
  --on-green: #f3efe4;
  --on-green-muted: #a9c2b6;
  --tick: #1d9bf0;
  --seen: #9aa3a0;
  --warn: #b4531a;
  --low: #b3261e;
  --great-bg: #e6f2ec;
  --chip: #edf0ee;
  --bubble-me: #dcf3e4;
  --bubble-them: #ffffff;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1512; --surface: #15201c; --text: #e8eee9; --muted: #98a8a0; --line: #26342e;
    --green: #0a2a20; --green-2: #12392c; --on-green: #f3efe4; --on-green-muted: #8fb0a2;
    --tick: #53b6ff; --seen: #6f7b77; --warn: #e39a62; --low: #f08a80; --great-bg: #15302a;
    --chip: #1d2a25; --bubble-me: #1d4434; --bubble-them: #1b2823;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1512; --surface: #15201c; --text: #e8eee9; --muted: #98a8a0; --line: #26342e;
  --green: #0a2a20; --green-2: #12392c; --on-green: #f3efe4; --on-green-muted: #8fb0a2;
  --tick: #53b6ff; --seen: #6f7b77; --warn: #e39a62; --low: #f08a80; --great-bg: #15302a;
  --chip: #1d2a25; --bubble-me: #1d4434; --bubble-them: #1b2823;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Archivo, system-ui, sans-serif;
}
a { color: var(--green-2); }
h1, h2, h3 { font-weight: 800; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .9rem; }

/* Full-bleed green: paint the band edge to edge without widening the page. */
.top, .band {
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 0 0 100vmax var(--green);
  clip-path: inset(0 -100vmax);
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: .9rem 16px;
}
.brand { display: flex; gap: .6rem; align-items: center; color: var(--on-green); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.15rem; line-height: 1.1; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.brand > span { display: flex; flex-direction: column; }
.tagline { font-weight: 400; font-stretch: 100%; font-size: .78rem; color: var(--on-green-muted); }
nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; font-size: .95rem; }
nav a { color: var(--on-green-muted); text-decoration: none; }
nav a:hover, nav a.on { color: var(--on-green); }
.dot { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 1em; background: var(--tick); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }

main { max-width: 1040px; margin: 0 auto; padding: 1.5rem 16px 4rem; }

/* ---------- ticks ---------- */
.ticks { width: 1.1em; height: .75em; vertical-align: -.02em; flex: none; }
.ticks.read { color: var(--tick); }
.ticks.seen { color: var(--seen); }

/* ---------- home hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
  margin-top: calc(-1.5rem - 1px); padding: 2.5rem 0 3rem;
}
.kicker { display: inline-flex; gap: .45rem; align-items: center; margin: 0 0 1rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-green-muted); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-stretch: 118%; margin-bottom: 1rem; }
.hero h1 s { white-space: nowrap; text-decoration-thickness: .08em; text-decoration-color: var(--tick); color: var(--on-green-muted); }
.lede { font-size: 1.15rem; color: var(--on-green); opacity: .9; max-width: 34ch; margin: 0 0 1.5rem; }

.chat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem;
}
.chat-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-green-muted); }
.chat-label.here { margin-top: .75rem; padding-top: .9rem; border-top: 1px dashed rgba(255,255,255,.2); }
.bubble {
  max-width: 85%; padding: .55rem .75rem .4rem; border-radius: 12px; font-size: .95rem; line-height: 1.35;
  color: var(--text); box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.bubble.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--bubble-them); border-bottom-left-radius: 4px; }
.bubble.ghosted { opacity: .6; }
.meta { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; margin-top: .15rem; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.chip { align-self: center; font-family: var(--mono); font-size: .75rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(0,0,0,.25); color: var(--on-green); }
.chip b { color: #fff; }
.ghost-chip { color: var(--on-green-muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }

.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 1.75rem; overflow: hidden;
}
.flow > div { padding: 1rem 1.1rem; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.flow > div + div { border-left: 1px solid var(--line); }
.clockface { display: block; font-family: var(--mono); font-weight: 700; font-size: 1.6rem; color: var(--text); margin-bottom: .15rem; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.15rem; margin-bottom: .7rem;
}
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green-2); transform: translateY(-1px); }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.title { font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.card.job { display: flex; gap: 1.1rem; align-items: center; }
.card.job.great { background: var(--great-bg); border-color: transparent; }
.reply { flex: none; width: 8.5rem; display: flex; flex-direction: column; }
.reply b { display: flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: 1.45rem; line-height: 1.1; }
.reply span { color: var(--muted); font-size: .74rem; line-height: 1.25; }
.job.low .reply b { color: var(--low); }
.job.new .reply b { font-family: inherit; font-weight: 800; font-size: 1.1rem; color: var(--muted); }
.job-main { min-width: 0; padding-left: 1.1rem; border-left: 1px solid var(--line); }
.job.great .job-main { border-left-color: rgba(15,61,46,.15); }

.badge { display: inline-flex; gap: .35em; align-items: center; padding: .2em .65em; border-radius: 999px; background: var(--chip); font-size: .82rem; white-space: nowrap; color: var(--text); }
.badge.great { background: var(--great-bg); color: var(--green-2); }
.badge.low { color: var(--low); }
.badge.warn { color: var(--warn); }
.badge.clock b { font-family: var(--mono); font-weight: 700; font-size: .8rem; }

/* ---------- forms & buttons ---------- */
form { display: grid; gap: .9rem; max-width: 540px; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
input, textarea, select {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--tick); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 7rem; resize: vertical; }
button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--green);
  background: var(--green); color: var(--on-green); border-radius: 10px; padding: .6rem 1.05rem;
  text-decoration: none; display: inline-block; line-height: 1.3;
}
button:hover, .btn:hover { background: var(--green-2); }
button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: transparent; color: var(--low); border-color: var(--low); }
.btn.light { background: var(--on-green); color: var(--green); border-color: var(--on-green); }
.btn.outline { background: transparent; color: var(--on-green); border-color: rgba(255,255,255,.35); }
.btn.outline:hover { border-color: var(--on-green); }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 180px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; background: var(--surface); cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--green-2); background: var(--great-bg); }
.seg input { width: auto; accent-color: var(--green-2); }
.linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.linkedin:hover { background: #004182; }
.or { margin: 0; }

.error { color: var(--low); }
.notice { background: var(--chip); border-left: 3px solid var(--tick); border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.desc { white-space: pre-wrap; }

/* ---------- application history: read-receipt timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 1.1rem 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--seen); }
.timeline li.ok::before { background: var(--tick); }
.timeline li.late::before { background: var(--low); }
.quote { background: var(--bubble-me); border-radius: 12px 12px 12px 4px; padding: .5rem .75rem; margin: .4rem 0 0; color: var(--text); white-space: pre-wrap; max-width: 60ch; }

.templates { display: flex; flex-wrap: wrap; gap: .4rem; }
.templates button { font-weight: 400; font-size: .82rem; padding: .3rem .65rem; background: var(--chip); color: var(--text); border-color: var(--line); }

.notif { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.notif.unread { font-weight: 600; }

/* ---------- recruiter card ---------- */
.hr-head { display: flex; gap: .9rem; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: var(--on-green); font-weight: 700; font-size: 1.1rem; }
.hr .badge { margin-top: .35rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--mono); font-size: 1.3rem; }
.stats span { color: var(--muted); font-size: .8rem; }

/* ---------- legal pages & footer ---------- */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal li { margin-bottom: .4rem; }
.site-foot { max-width: 1040px; margin: 0 auto; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem 0 2rem; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow > div:nth-child(3) { border-left: 0; }
  .flow > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card.job { align-items: flex-start; }
  .reply { width: 5.5rem; }
  .job-main { padding-left: .9rem; }
}
