/* Gold Coast TechSpace — site styles. No frameworks, no build step. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --base: #ebebef;
  --base-2: #dce0e6;
  --contrast: #1c2930;
  --contrast-2: #37505d;
  --contrast-3: #96a5b2;
  --white: #ffffff;
  --black: #000000;
  --heart: #c8102e;

  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --size-small: 1rem;
  --size-medium: 1.2rem;
  --size-large: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --size-x-large: clamp(2rem, 1.8rem + 1.1vw, 2.65rem);
  --size-xx-large: clamp(2.4rem, 2rem + 1.4vw, 3.5rem);

  --content: 960px;
  --wide: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 15px;
}

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

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

body {
  margin: 0;
  background: var(--base);
  color: var(--contrast);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-style: dashed;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.8rem;
}
h1 {
  font-size: var(--size-x-large);
}
h2 {
  font-size: var(--size-x-large);
}
h3 {
  font-size: var(--size-large);
}

p,
ul,
ol {
  margin: 0 0 1.1rem;
}
li {
  margin-bottom: 0.35rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--contrast);
  padding: 0.6rem 1rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.site-header {
  background: var(--black);
  color: var(--white);
}
.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}
.site-logo img {
  width: 189px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}
.site-nav li {
  margin: 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-logo img {
    width: 150px;
  }
  .js .nav-toggle {
    display: block;
  }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    z-index: 50;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 0.6rem 0;
    font-size: 1.25rem;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
}

/* ---------- Main ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
}
main.is-wide {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.page-title {
  text-align: center;
  font-size: var(--size-large);
  margin: 1.2rem 0 1.6rem;
}
.page-title--rule::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: var(--contrast-3);
}

.lead {
  font-size: var(--size-medium);
}

.button {
  display: inline-block;
  background: var(--contrast-2);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.button:hover,
.button:focus-visible {
  background: var(--contrast);
  text-decoration: none;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.buttons--center {
  justify-content: center;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  align-items: center;
}

/* Media + text rows (KidHack, Supporters) */
.media-text {
  display: grid;
  grid-template-columns: var(--media-width, 43%) 1fr;
  gap: 2rem;
  align-items: center;
}
.media-text__content > :first-child {
  margin-top: 0;
}
@media (max-width: 640px) {
  .media-text {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--contrast);
  border-radius: var(--radius);
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  margin: 1.25rem 0;
}
.card h3 {
  margin-top: 0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.gallery--1 {
  grid-template-columns: 1fr;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--base-2);
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery--tall img {
  aspect-ratio: 9 / 16;
}
.gallery a:hover img {
  transform: scale(1.03);
}
@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.lightbox img {
  max-width: 95vw;
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
}
.lightbox p {
  color: var(--white);
  text-align: center;
  margin: 0.6rem 0 0;
  font-size: 1rem;
}
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 1rem 0 1.5rem;
}
.table th,
.table td {
  border: 1px solid currentColor;
  padding: 0.55rem 0.8rem;
  text-align: left;
}

/* Full-width bands (Membership) */
.band {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}
.band--accent {
  background: var(--base-2);
}
.band__inner {
  max-width: var(--wide);
  margin: 0 auto;
}
.band .statement {
  font-family: var(--font-heading);
  font-size: var(--size-x-large);
  line-height: 1.2;
  margin: 0;
  max-width: 28ch;
}
.split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.split > :first-child > :first-child {
  margin-top: 0;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.committee {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
  font-size: var(--size-small);
}
.committee strong {
  display: block;
}

/* Events */
.events {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  max-width: 460px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.events li {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--base-2);
}
.events li:last-child {
  border-bottom: 0;
}
.events__when {
  font-size: 0.85rem;
  color: var(--contrast-2);
}
.events__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.events__title:hover {
  text-decoration: underline;
}
.events__place {
  font-size: 0.9rem;
}
.events__place strong {
  color: #d9480f;
  font-weight: 500;
}
.events__tags {
  font-size: 0.8rem;
  color: var(--contrast-2);
}
.events__status {
  padding: 1rem;
}

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

.site-footer {
  background: var(--contrast);
  color: var(--white);
  font-size: 1rem;
}
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
}
.site-footer__brand {
  max-width: 260px;
}
.site-footer__brand img {
  width: 177px;
  margin-bottom: 1.2rem;
}
.site-footer__name {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.site-footer__name a {
  text-decoration: none;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.site-footer ul {
  padding-left: 1.1rem;
}
@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
