/* Dope Developers — static rebuild of the Framer site */

:root {
  --bg: #000;
  --fg: #fff;
  --line: #fff;
  --muted: #bdbdbd;
  --display: "Jersey 25", "Courier New", monospace;
  --body: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- Header ---------- */

.site-header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-block; }

.logo img {
  width: 48px;
  height: 48px;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.logo:hover img,
.logo:focus-visible img { transform: rotate(10deg) scale(1.12); }

.site-nav { display: flex; gap: clamp(16px, 3vw, 32px); }

.site-nav a {
  font-size: 24px;
  white-space: nowrap;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

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

.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--line);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}

.btn:hover,
.btn:focus-visible { background: var(--fg); color: var(--bg); }

.btn:focus-visible,
.site-nav a:focus-visible,
.logo:focus-visible { outline: 2px dashed var(--fg); outline-offset: 4px; }

/* ---------- Page title ---------- */

.page-title {
  margin: clamp(32px, 6vw, 64px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1.2;
}

/* ---------- Home ---------- */

.hero {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 72px);
  line-height: 1.2;
}

/* Idle wave: each letter bobs in turn, then the heading rests before the next pass */
.wave span span {
  display: inline-block;
  animation: wave 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes wave {
  0%, 30%, 100% { transform: translateY(0); }
  15% { transform: translateY(-0.14em); }
}

.hero p {
  max-width: 34ch;
  margin: 20px 0 48px;
  font-size: 20px;
}

.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- About ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.member {
  border: 1px solid var(--line);
  padding: 32px 24px 40px;
  text-align: center;
}

.member img {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
}

.member h2,
.member .role {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.member .role { margin: 6px 0 14px; }

.member p { margin: 0 0 20px; font-size: 18px; }

.member .fav-label { margin-bottom: 2px; }

/* ---------- Projects ---------- */

.projects { display: flex; flex-direction: column; gap: 16px; }

.project {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.project .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.project .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 0;
}

.project h2 {
  margin: 0;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.project .event {
  margin: 4px 0 12px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--muted);
}

.project .desc {
  margin: 0 0 24px;
  max-width: 62ch;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

.project .btn { margin-top: auto; min-width: 142px; text-align: center; }

@media (max-width: 640px) {
  .logo img { width: 40px; height: 40px; }
  .site-nav a { font-size: 20px; }
  .project { grid-template-columns: 1fr; }
  .project .cover { aspect-ratio: 16 / 9; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px var(--gutter);
  text-align: center;
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
}

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