:root {
  --navy: #2a2e57;
  --ink: #3c424f;
  --text: #6b7686;
  --muted: #8e9dae;
  --purple: #8e7cc3;
  --purple-dark: #6a5aa8;
  --plum: #594c7f;
  --line: #e3eaf0;
  --bg: #f5fafd;
  --white: #ffffff;
  --head: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
}

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

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

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

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus-visible { color: var(--purple-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--purple); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* Header + banner */
.masthead {
  position: relative;
  color: #fff;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}
.masthead::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.masthead.home { background-image: url("/assets/vancouver.jpg"); background-color: #6a73da; }
.masthead.inner { background-color: #6a73da; }
.masthead.inner::after {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/circles.png") center / cover no-repeat;
  opacity: 0.9; pointer-events: none;
}
.masthead > * { position: relative; z-index: 1; }

.topbar {
  max-width: var(--max); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.logo img { width: 210px; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 26px;
}
.site-nav a {
  display: block; padding: 8px 0 6px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; text-decoration: none; border-bottom-color: rgba(255, 255, 255, 0.6); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--purple); }

.hero { min-height: 400px; }
.banner { padding: 64px 16px 72px; text-align: center; }
.banner h1 {
  margin: 0; font-family: var(--head); font-weight: 300; font-size: 30px; letter-spacing: 0.01em;
}

/* Main */
main { flex: 1; width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 56px 16px 72px; }
.narrow { max-width: 860px; }

h2, h3 { font-family: var(--head); color: var(--ink); font-weight: 600; line-height: 1.3; }
h2 { font-size: 22px; text-align: center; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 40px 0 14px; }

/* Home features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px;
  text-align: center;
}
.feature h3 {
  margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.feature img { margin: 0 auto 18px; width: 249px; }
.feature p { margin: 0 auto; max-width: 300px; color: var(--plum); font-size: 14px; }

.contact {
  position: relative; color: #fff; text-align: center;
  background: #222 url("/assets/desk.jpg") center / cover no-repeat;
}
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.contact .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; }
.contact h2 { color: #fff; font-size: 35px; margin-bottom: 20px; }
.contact p { margin: 0; }
.contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact a:hover { text-decoration-color: #fff; }
.contact .blurb { max-width: 820px; margin: 22px auto 0; }

/* Content pages */
.card { background: var(--white); border: 1px solid var(--line); padding: 36px 32px; }
.intro-strong { color: var(--ink); font-weight: 600; }
.rules { margin: 0 0 8px; padding-left: 20px; }
.rules li { margin: 6px 0; }
.important p { margin: 6px 0; color: var(--ink); font-weight: 600; }

.congrats { text-align: center; color: var(--purple); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.lede { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.credits {
  list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 36px;
}
.credits li {
  break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line);
  font-style: italic; font-weight: 600; color: var(--muted);
}
.note { text-align: center; margin: 28px 0 0; font-style: italic; color: var(--muted); }

.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.people li { padding: 22px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.people .name { display: block; color: var(--ink); font-weight: 600; }

.dir { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.dir td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dir td:first-child { color: var(--ink); width: 50%; text-align: right; }
.dir td:last-child { word-break: break-word; }

/* Footer */
.site-footer { background: var(--white); text-align: center; padding: 26px 16px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .topbar { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; gap: 0 18px; }
  .site-nav a { font-size: 12px; }
  .logo img { width: 180px; }
  .hero { min-height: 220px; }
  .banner { padding: 44px 16px 52px; }
  .banner h1 { font-size: 26px; }
  .wrap { padding-top: 40px; padding-bottom: 52px; }
  .card { padding: 26px 18px; }
  .contact h2 { font-size: 28px; }
  .dir td { display: block; width: auto !important; text-align: left !important; border-bottom: 0; padding: 4px 16px; }
  .dir tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}
