/* Alum -- white and quiet, in the spirit of Airbnb: one ink colour, hairline
 * borders, soft shadows only where something lifts, pill controls, big tap
 * targets. Icons are Lucide (stroke 1.75). Phones first; the grid widens to
 * three or four columns on bigger screens. */

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #222222;
  --muted: #6a6a6a;
  --faint: #b0b0b0;
  --line: #ebebeb;
  --soft: #f7f7f7;
  --hover: #f2f2f2;
  --accent: #222222;
  --good: #008a05;
  --badge: #f5f0e6;
  --badge-ink: #6b5418;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }

/* Top bar ------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px max(20px, calc((100vw - var(--page)) / 2));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; justify-self: start; }
.brand img { width: 26px; height: 27px; }
.brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.top-right { justify-self: end; font-size: 13px; color: var(--muted); }

/* The sliding switch: a light track with a white pill that glides between
 * the two buttons. */
.switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.switch button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  transition: color 200ms ease;
}
.switch button[aria-selected="true"] { color: var(--ink); }
.switch-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 320ms var(--ease);
}
.switch[data-on="profile"] .switch-pill { transform: translateX(100%); }

.view { max-width: var(--page); margin: 0 auto; padding: 24px 20px 64px; }

/* Search ------------------------------------------------------------ */

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 8px auto 0;
  padding: 8px 8px 8px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.search > .lucide { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font-size: 16px; }
.search input::placeholder { color: var(--muted); }

.round {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.round:hover { box-shadow: var(--shadow); }
.round.dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.round .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 999px; background: #ff385c; border: 2px solid #fff; }

/* Category row: icon over label, underline on the active one. */
.cats {
  display: flex;
  gap: 28px;
  margin: 24px -20px 0;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.cat .lucide { width: 22px; height: 22px; }
.cat:hover { color: var(--ink); border-bottom-color: var(--line); }
.cat[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 16px; }
.bar p { margin: 0; color: var(--muted); font-size: 14px; }
.bar p b { color: var(--ink); }
.sort { display: flex; gap: 4px; }
.sort button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sort button:hover { background: var(--hover); }
.sort button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Cards -------------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.job {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.job:hover { box-shadow: var(--shadow-lift); }
.job-top { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.job-co { min-width: 0; }
.job-co b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-co span { font-size: 13px; color: var(--muted); }
.job h3 { font-size: 16px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta .lucide { width: 14px; height: 14px; }
.job-meta .new { color: var(--good); font-weight: 700; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; min-height: 26px; }
.pay { font-size: 14px; font-weight: 700; }

.save {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 160ms ease, transform 160ms ease;
}
.save:hover { background: var(--hover); }
.save:active { transform: scale(0.9); }
.save.on .lucide { fill: #ff385c; stroke: #ff385c; }

.logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; opacity: 0; transition: opacity 200ms ease; }
.logo.has-img img { opacity: 1; }
.logo.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 19px; }

.hokie {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--badge-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hokie .lucide { width: 14px; height: 14px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 64px 16px; color: var(--muted); }
.empty .lucide { width: 32px; height: 32px; }
.empty p { margin: 0; }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* Buttons ---------------------------------------------------------- */

.primary, .ghost, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: background 160ms ease, transform 120ms ease;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #000; }
.primary:active, .secondary:active { transform: scale(0.98); }
.ghost { border: 1px solid var(--ink); background: #fff; }
.ghost:hover { background: var(--soft); }
.secondary { border: 1px solid var(--line); background: #fff; }
.secondary:hover { background: var(--soft); }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Modals: a centred sheet on desktop, a sheet from the bottom on phones. */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  animation: fade 200ms ease both;
}
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: rise 280ms var(--ease) both;
}
.sheet-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 16px; text-align: center; }
.sheet-head .round { border: 0; }
.sheet-body { overflow-y: auto; padding: 24px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--line); }
.close { position: absolute; top: 14px; right: 14px; z-index: 1; border: 0; background: var(--soft); }

/* Detail ------------------------------------------------------------- */

.d-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.d-head p { margin: 2px 0 0; color: var(--muted); }
.d-title { margin: 18px 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.d-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.d-actions .secondary { width: 48px; padding: 0; }
.d-actions .secondary.on .lucide { fill: #ff385c; stroke: #ff385c; }

.section { padding: 22px 0; border-top: 1px solid var(--line); }
.section:first-of-type { margin-top: 22px; }
.section h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 6px; }
.section > p { margin: 0 0 12px; color: var(--muted); }
.section .lucide { width: 20px; height: 20px; }
.stat { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.pill b { margin-left: 4px; color: var(--muted); font-weight: 600; }
.titles { margin: 0; padding: 0; list-style: none; }
.titles li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.titles li:last-child { border-bottom: 0; }
.titles b { color: var(--muted); font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions .secondary { height: 44px; padding: 0 16px; font-size: 14px; }
.fine { margin: 18px 0 0; font-size: 12px; color: var(--faint); }
.fine a { text-decoration: underline; }

/* Filters ------------------------------------------------------------ */

.f-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.f-group:first-child { padding-top: 0; }
.f-group:last-child { border-bottom: 0; }
.f-group h3 { font-size: 17px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease;
}
.chip .lucide { width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; cursor: pointer; }
.toggle small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.toggle input { appearance: none; flex: none; width: 48px; height: 30px; border-radius: 999px; background: var(--faint); position: relative; cursor: pointer; transition: background 200ms ease; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 200ms var(--ease); }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(18px); }

/* Profile ------------------------------------------------------------ */

#profile { max-width: 760px; }
.card { padding: 28px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 20px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 22px; }
.card h3 { margin: 24px 0 12px; font-size: 15px; }
.sub { margin: 6px 0 20px; color: var(--muted); }
.saved-note { font-size: 13px; color: var(--good); font-weight: 600; transition: opacity 400ms ease; }
.count { color: var(--muted); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 14px; border: 1px solid var(--faint); border-radius: var(--radius); }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select { width: 100%; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font-size: 16px; }

.saved { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saved:last-child { border-bottom: 0; }
.saved-text { flex: 1; min-width: 0; cursor: pointer; }
.saved-text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-text span { font-size: 13px; color: var(--muted); }
.status { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.status[data-v="Applied"] { border-color: #b7d7ff; background: #f0f7ff; }
.status[data-v="Interviewing"] { border-color: #ffd9a8; background: #fff6eb; }
.status[data-v="Offer"] { border-color: #a7e3ad; background: #effaf0; }
.status[data-v="Rejected"] { color: var(--muted); }
.remove { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: var(--muted); }
.remove:hover { background: var(--hover); color: var(--ink); }
.none { display: grid; justify-items: center; gap: 8px; padding: 28px 0 8px; color: var(--muted); text-align: center; }
.none .lucide { width: 28px; height: 28px; }
.none p { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: rise 240ms var(--ease) both;
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.toast { animation-name: toastIn; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Phones ------------------------------------------------------------- */

@media (max-width: 720px) {
  .top { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .top-right { display: none; }
  .switch { justify-self: end; }
  .switch button { padding: 0 14px; height: 34px; font-size: 14px; }
  .view { padding: 16px 16px 48px; }
  .search { padding-left: 16px; }
  .cats { margin: 18px -16px 0; padding: 0 16px; gap: 22px; }
  .grid { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end stretch; }
  .sheet { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; animation-name: up; }
  @keyframes up { from { transform: translateY(100%); } }
  .sheet-body { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
@media (max-width: 420px) {
  .switch button .lucide { display: none; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
