/* Big Sky Creative - bigskygames.com.au
   Palette sampled from the studio logo, then adjusted so body text clears WCAG AA.
   Contrast: teal-deep on cream 8.41:1 (AAA), teal-deep on peach 6.12:1 (AA).
   The logo's own teal on its own peach is only 4.22:1, so it is reserved for
   large display type where the 3:1 threshold applies. */

:root {
  --cream:     #FDF6EC;
  --peach:     #F5CEA5;
  --teal:      #2A6A6C;
  --teal-deep: #1F5052;
  --sky:       #6AC3D1;
  --sun:       #E6CC13;
  --ember:     #EE963F;
  --rose:      #E87A9F;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--teal-deep);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

a { color: var(--teal); }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--cream);
  border-radius: 4px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  background: var(--peach);
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter) clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  margin: clamp(1.25rem, 4vw, 2rem) auto 0;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--teal-deep);
  text-wrap: balance;
}

/* thin rainbow rule, decorative only - never used to carry meaning,
   the three hues are too close in luminance */
.rainbow {
  height: 6px;
  margin: 0;
  border: 0;
  background: linear-gradient(
    to right,
    var(--sky)   0 25%,
    var(--sun)   25% 50%,
    var(--ember) 50% 75%,
    var(--rose)  75% 100%
  );
}

/* ---------------------------------------------------------------- sections */

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter);
}

.section-wide {
  max-width: 68rem;
}

h1, h2 {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2 { margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }

.section p { margin: 0 0 1.1em; }
.section p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- team */

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* flex rather than grid so any number of members centres, including a
   part-full last row */
.member {
  flex: 0 1 210px;
  text-align: center;
}

/* Applies to any square image, so portraits can be swapped by src alone. */
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6%;
  background: var(--peach);
}

.member-name {
  margin: 0.85rem 0 0;
  color: var(--teal);
  font-size: 1.05rem;
  line-height: 1.3;
}

.member-link {
  display: inline-flex;
  margin-top: 0.45rem;
  color: var(--teal);
  transition: color 0.15s ease;
}

.member-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.member-link:hover { color: var(--teal-deep); }

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--peach);
  padding: clamp(2rem, 6vw, 3rem) var(--gutter);
  text-align: center;
}

.footer p { margin: 0 0 0.4rem; }
.footer p:last-child { margin-bottom: 0; }

.footer a {
  color: var(--teal-deep);
  font-weight: 600;
}

.fine {
  font-size: 0.85rem;
  color: var(--teal-deep);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
