/* Malta Minifootball Association — official site styles
   Brand: black, white, red. Greys used only as neutral tints. */

:root {
  --black: #1c1c1c;
  --white: #ffffff;
  --red: #d01c2c;
  --grey-50: #f5f5f5;
  --grey-100: #e8e8e8;
  --grey-200: #d4d4d4;
  --grey-600: #5a5a5a;
  --grey-700: #3d3d3d;
  --display: "Cinzel", "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.5rem;
  --measure: 40rem;
  --content: 70rem;
  --space: 1.25rem;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--red);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--red);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--black);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.skip-link:focus {
  top: 0.75rem;
  outline-offset: 2px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: inset 0 -3px 0 var(--red);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--grey-100), inset 0 -3px 0 var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--black);
  min-width: 0;
}

.brand:hover {
  color: var(--black);
}

.brand img {
  width: 2.65rem;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.brand-short {
  display: none;
}

.brand-full {
  display: inline;
}

@media (max-width: 52rem) {
  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
    font-size: 1rem;
    letter-spacing: 0.12em;
  }
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  border-radius: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: var(--black);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

@media (max-width: 64rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 12px 24px rgba(28, 28, 28, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--grey-100);
  }
}

/* Page layout */

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* Hero */

.hero {
  text-align: center;
  padding: 3.25rem 1.5rem 3.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}

.hero-logo {
  width: min(13.5rem, 58vw);
  margin: 0 auto 1.75rem;
}

.hero h1 {
  margin: 0 auto 1.1rem;
  max-width: 18em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.85rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--black);
}

.hero h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  background: var(--red);
  margin: 1.15rem auto 0;
}

.lede {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--grey-700);
}

/* Sections */

.section {
  padding: 4.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--grey-100);
}

.section--tint {
  background: var(--grey-50);
}

.section-label {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2 {
  margin: 0 0 1.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.section p {
  margin: 0 0 1.1rem;
}

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

/* Notices / placeholders */

.notice {
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-left: 3px solid var(--red);
}

.section--tint .notice {
  border-color: var(--grey-200);
  border-left-color: var(--red);
}

.notice p {
  margin: 0;
}

.notice-kicker {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.notice strong {
  font-weight: 700;
}

/* Competition formats */

.formats-wrap {
  max-width: 58rem;
}

.formats-intro {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.format-list li {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--red);
  padding: 1.15rem 1.1rem 1.25rem;
}

.format-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--black);
}

.format-list p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--grey-700);
}

.format-list .venue {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--grey-100);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
}

.format-list .venue-label {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.format-list li.flagship {
  background: var(--black);
  border-color: var(--black);
  border-top: 4px solid var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

.format-list li.flagship h3 {
  color: var(--white);
}

.format-list li.flagship p {
  color: var(--grey-100);
}

.format-list li.flagship .venue {
  border-top-color: #555;
  color: var(--white);
}

.format-list li.flagship .venue-label {
  color: #ff5a68;
}

.flagship-badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.format-list .flagship-note {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--white);
}

.formats-wrap .notice {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 52rem) {
  .format-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 22rem) {
  .format-list {
    grid-template-columns: 1fr;
  }
}

/* Actions */

.actions {
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.45rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn:focus-visible {
  outline-offset: 3px;
}

/* Contact details */

.contact-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--grey-100);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--grey-100);
}

.contact-list dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-600);
  padding-top: 0.2rem;
}

.contact-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--black);
}

.contact-list a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.2em;
}

.contact-list a:hover {
  color: var(--red);
}

@media (max-width: 36rem) {
  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.9rem 0;
  }
}

/* Footer */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--white);
  text-decoration: none;
}

.footer-name:hover {
  color: var(--white);
}

.copyright {
  margin: 0;
  font-size: 0.95rem;
  color: var(--white);
}

/* Utility pages (404) */

.page-status {
  min-height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-status .narrow {
  margin: 0 auto;
}

.page-status .status-code {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.page-status h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-status h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  background: var(--red);
  margin: 1.1rem auto 0;
}

.page-status p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--grey-700);
}

/* Print */

@media print {
  .site-header,
  .nav-toggle,
  .skip-link {
    position: static;
    box-shadow: none;
  }

  .site-nav,
  .nav-toggle {
    display: none !important;
  }

  .section--tint {
    background: transparent;
  }

  .site-footer {
    background: transparent;
    color: var(--black);
    border-top: 1px solid var(--black);
  }

  .footer-name,
  .footer-name:hover,
  .copyright {
    color: var(--black);
  }

  a {
    color: var(--black);
  }
}
