:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-2: #4a5568;
  --muted: #6b7280;
  --line: #e3e6ec;
  --brand: #1d3f8f;
  --brand-ink: #ffffff;
  --brand-soft: #e8eefb;
  --accent: #f2a900;
  --intern: #e6f1ff;
  --intern-ink: #1c4f9c;
  --ft: #e5f6ec;
  --ft-ink: #17663a;
  --alum: #f1ebfa;
  --alum-ink: #5b3a96;
  --ok-bg: #e9f7ef;
  --ok-ink: #17663a;
  --err-bg: #fdecec;
  --err-ink: #9b1c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 4px 16px rgba(20, 33, 61, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #171e2d;
    --ink: #e8ecf4;
    --ink-2: #c3cad8;
    --muted: #9aa3b5;
    --line: #283245;
    --brand: #7aa2ff;
    --brand-ink: #0f1420;
    --brand-soft: #1d2840;
    --intern: #1b2b47;
    --intern-ink: #9cc2ff;
    --ft: #16301f;
    --ft-ink: #8fdcaa;
    --alum: #2a2140;
    --alum-ink: #c9b2f3;
    --ok-bg: #16301f;
    --ok-ink: #8fdcaa;
    --err-bg: #3a1a1a;
    --err-ink: #ffb4b4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; padding-top: 32px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; }
.brand-mark { background: var(--brand); color: var(--brand-ink); padding: 4px 8px; border-radius: 6px; font-size: 14px; letter-spacing: 0.06em; }
.header-nav { display: flex; gap: 18px; font-size: 15px; }
.header-nav a { color: var(--ink-2); text-decoration: none; }
.header-nav a:hover { color: var(--brand); }

/* Hero */
.hero { padding: 48px 0 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--brand); font-weight: 650; margin: 0 0 8px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); max-width: 18ch; }
.hero-link { margin: 14px 0 0; font-weight: 600; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 12px 0 0; }

/* Filters */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin: 8px 0 12px; }
.filters input, .filters select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
.filters input:focus, .filters select:focus, .form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.result-count { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .f-search { grid-column: 1 / -1; } }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding-bottom: 56px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20, 33, 61, 0.14); }
.card .avatar { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 0; }
.card .avatar-fallback { display: grid; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card h3 { font-size: 17px; margin: 0 0 2px; }
.card-meta { margin: 0; font-size: 14px; color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-intern { background: var(--intern); color: var(--intern-ink); }
.badge-ft { background: var(--ft); color: var(--ft-ink); }
.badge-alum { background: var(--alum); color: var(--alum-ink); }
.empty { color: var(--muted); padding: 32px 0; }

.avatar { background: var(--brand-soft); border-radius: 50%; object-fit: cover; }
.avatar-fallback {
  display: grid; place-items: center; color: var(--brand); font-weight: 700; font-size: 44px; letter-spacing: 0.04em;
  width: 100%; aspect-ratio: 1 / 1;
}

/* Profile */
.profile { padding-top: 24px; padding-bottom: 64px; }
.back { display: inline-block; margin-bottom: 18px; text-decoration: none; font-size: 15px; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.profile-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); position: sticky; top: 16px; text-align: center;
}
.avatar-lg { width: 180px; height: 180px; margin: 0 auto 14px; display: block; border-radius: 50%; aspect-ratio: auto; }
.avatar-fallback.avatar-lg { display: grid; font-size: 52px; }
.profile-side h1 { font-size: 26px; }
.profile-side .badges { justify-content: center; margin-bottom: 16px; }
.links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.link-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: 15px;
}
.link-btn:hover { border-color: var(--brand); color: var(--brand); }
.link-btn svg { width: 18px; height: 18px; }
.profile-main section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.profile-main h2 { font-size: 19px; margin-bottom: 12px; }
.bio { margin: 0; color: var(--ink-2); }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.details dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.details dd { margin: 2px 0 0; font-weight: 550; }
.resume-frame { width: 100%; height: 820px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.interest { scroll-margin-top: 16px; border-color: var(--brand) !important; }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .resume-frame { height: 560px; }
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400;
  background: var(--surface); color: var(--ink); width: 100%;
}
.form input[type=file] { padding: 8px; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.form legend { font-weight: 600; font-size: 15px; padding: 0 4px; }
.form label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 450; }
.form label.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 450; font-size: 14px; color: var(--ink-2); }
.form label.consent input { margin-top: 4px; }
.form label .muted { font-weight: 400; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px; }
.fineprint { font-size: 14px; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; padding: 12px 18px; border-radius: 10px;
  border: 0; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }
.form .btn { align-self: flex-start; }

.notice { padding: 12px 14px; border-radius: 10px; margin: 8px 0; }
.notice.success { background: var(--ok-bg); color: var(--ok-ink); }
.notice.error { background: var(--err-bg); color: var(--err-ink); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; padding: 20px 0; }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: 15px; }
  .card-meta { font-size: 13px; }
  .avatar-fallback { font-size: 32px; }
  .header-nav { gap: 12px; font-size: 14px; }
}
