:root {
  --bg: #14161a;
  --bg-alt: #1b1e24;
  --text: #e8eaed;
  --muted: #a9afb8;
  --accent: #e0364b;
  --line: #2a2e36;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,22,26,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo img { height: 44px; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav a {
  text-decoration: none; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent;
}
nav a:hover, nav a:focus, nav a[aria-current="page"] { color: #fff; border-color: var(--accent); }

/* Banner (front page) */
.banner {
  min-height: 100vh;
  background: url("images/background_set_1920_logo.jpg") center bottom / cover no-repeat;
}

/* Hero (front page) */
.hero {
  position: relative; text-align: center;
  padding: 110px 20px 100px;
  background: var(--bg-alt);
}
.hero h1 { margin: 0 0 18px; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .02em; }
.hero p { max-width: 760px; margin: 0 auto; color: #d4d8de; font-size: 1.08rem; }

/* Page title (subpages) */
.page-title {
  padding: 56px 20px 40px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-title h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-title p { margin: 8px 0 0; color: var(--muted); }
.page-title.team {
  background:
    linear-gradient(rgba(20,22,26,.35), rgba(20,22,26,.55)),
    url("images/cropped-header_wingman.jpg") center / cover no-repeat;
}
.page-title.team p { color: #fff; }

section { padding: 70px 20px; }
section.alt { background: var(--bg-alt); }
.wrap { max-width: var(--max); margin: 0 auto; }
h2 { font-size: 1.9rem; margin: 0 0 32px; position: relative; padding-bottom: 12px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--accent); }
h3 { font-size: 1.25rem; margin: 18px 0 8px; }
.lead { max-width: 760px; color: #d4d8de; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card .body { padding: 8px 22px 24px; }
.card p { margin: 0; color: var(--muted); }

/* Players */
.players { display: grid; gap: 32px; }
.player { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 32px; }
.player img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.player h3 { margin: 0; }
.player p { margin: 0 0 16px; }
.player .handle { color: var(--muted); }
.player .links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.player .links a { color: var(--accent); }

.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; margin-top: 12px; }
.partners img { max-height: 70px; width: auto; background: #fff; padding: 10px 16px; border-radius: 6px; }

/* Centred text pages */
.intro { text-align: center; }
.intro .lead { margin-left: auto; margin-right: auto; }

/* Membership */
.form-embed { display: block; width: 100%; max-width: 640px; height: 1186px; margin: 32px auto 0; border: 0; border-radius: 8px; background: #fff; }

/* Contact */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 24px; margin-top: 48px; }
.person img { width: 120px; height: 120px; margin: 0 auto 12px; object-fit: cover; border-radius: 50%; }
.person h3 { margin: 0; }
.person p { margin: 0; }
.person .role { margin-bottom: 12px; color: var(--muted); }

/* CTA */
.cta { text-align: center; }
.cta h2 { display: inline-block; }
.cta h2::after { left: 50%; transform: translateX(-50%); }
.btn {
  display: inline-block; margin-top: 8px; padding: 14px 34px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; letter-spacing: .08em; border-radius: 4px;
  transition: filter .15s;
}
.btn:hover, .btn:focus { filter: brightness(1.15); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 20px 44px; text-align: center; color: var(--muted); font-size: .92rem; }
footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 767px) {
  .banner { background-image: url("images/background_set_798px_mobiili2.jpg"); }
}
@media (max-width: 720px) {
  .bar { flex-direction: column; align-items: flex-start; }
  .hero { padding: 80px 20px 70px; }
  section { padding: 52px 20px; }
}
