:root {
  --bg: #f6f8fb;
  --bg-alt: #edf2f8;
  --card: #ffffff;
  --ink: #0f1d2e;
  --muted: #55657a;
  --line: #dbe3ed;
  --brand: #0f2a44;
  --accent: #ffb020;
  --accent-ink: #1b1300;
  --shadow: 0 1px 2px rgba(15, 29, 46, .05), 0 8px 24px rgba(15, 29, 46, .06);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1520;
    --bg-alt: #0f1c2a;
    --card: #132334;
    --ink: #e8eef5;
    --muted: #9aabbf;
    --line: #22364b;
    --brand: #e8eef5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; color: var(--brand); }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; }
.lede { max-width: 620px; margin: 22px 0 0; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.section-head p { margin: 8px 0 0; color: var(--muted); }

.grid { display: grid; gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Projects */
.projects { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.project { display: flex; flex-direction: column; overflow: hidden; }
.project-art { display: grid; place-items: center; height: 140px; }
.project-art svg { width: 64px; height: 64px; }
.art-karpul { background: linear-gradient(135deg, #1f9d55, #15803d); color: #fff; }
.art-iris   { background: linear-gradient(135deg, #6d4aff, #4c2fd6); color: #fff; }
.art-gamgee { background: linear-gradient(135deg, #e5484d, #c62a2f); color: #fff; }
.art-flora  { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.project-body { padding: 22px 22px 8px; flex: 1; }
.project-body h3 { font-size: 22px; font-weight: 700; }
.tagline { margin: 4px 0 12px; font-weight: 600; color: var(--muted); font-size: 15px; }
.project-body p:not(.tagline) { margin: 0; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li {
  padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
}
.project-link {
  display: block; margin: 14px 22px 22px; padding-top: 14px;
  border-top: 1px solid var(--line);
  text-decoration: none; font-weight: 600;
}
.project-link:hover { text-decoration: underline; }

/* Team */
.team { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; padding: 0; margin: 0; }
.member { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; text-align: center; }
.avatar {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: hsl(var(--hue) 70% 88%); color: hsl(var(--hue) 55% 28%);
  font-weight: 800; font-size: 24px; letter-spacing: .02em;
}
@media (prefers-color-scheme: dark) {
  .avatar { background: hsl(var(--hue) 40% 26%); color: hsl(var(--hue) 80% 88%); }
}
.member-name { font-weight: 600; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: 34px; font-weight: 800; }
.contact p { color: var(--muted); margin: 10px 0 24px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 560px) {
  .hero { padding: 64px 0 48px; }
  .nav { gap: 14px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
