/* Member projects page. Club colors: navy, cyan, lime. Light theme follows the device setting. */
:root {
  color-scheme: dark;
  --bg: #0b1220; --surface: #111a2e; --surface-2: #18233d; --line: #243150; --line-strong: #35456b;
  --text: #e8eef8; --muted: #9fb0c9; --accent: #22d3ee; --accent-ink: #032029; --free: #a3e635;
  --radius: 14px; --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f7fb; --surface: #ffffff; --surface-2: #eef2f8; --line: #dde3ee; --line-strong: #c4cedd;
    --text: #0f172a; --muted: #4b5a70; --accent: #0e7490; --accent-ink: #ffffff; --free: #15803d;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.07);
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 1180px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  color: var(--text); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin-top: 36px; }

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 16px 0 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 50%; }
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 14px; }
.tabs a:hover { color: var(--text); }

.hero { padding: 28px 0 0; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.035em; }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font-weight: 650; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.students { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.student { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.student h3 { font-size: 19px; margin-bottom: 2px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.about { margin: 0 0 12px; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.project { padding: 12px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.project img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.project h4 { font-size: 16px; overflow-wrap: anywhere; }
.project p { margin: 4px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.code { font-size: 14px; }
.folder { margin: 12px 0 0; font-size: 14px; }

.empty { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); }
.empty p { color: var(--muted); max-width: 560px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile-title { font-weight: 750; }
.tile-body { color: var(--muted); font-size: 14px; }

.site-footer { color: var(--muted); font-size: 13px; text-align: center; padding: 40px 0 44px; }
.site-footer p:first-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 759px) {
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; }
  .students { grid-template-columns: 1fr; }
}
