/* Margate Krakens Flag Football */

:root {
  --ink: #1E1630;
  --yellow: #F9C413;
  --magenta: #D80E61;
  --cream: #E9E5D8;
  --white: #FFFFFF;
  --rule: #B9B3A3;

  /* Focus ring colour, set per background below */
  --focus: var(--ink);
}

/* ---------- Base ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 18px;
}

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

/* Zero specificity, so every link and button keeps its own colour on hover */
:where(a:hover) {
  color: var(--magenta);
}

img {
  max-width: 100%;
}

picture img {
  display: block;
}

/* Visible focus on every link and button */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.on-ink {
  --focus: var(--yellow);
}

.contact {
  --focus: var(--white);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.disp {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Buttons: square corners, no shadows ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  font-size: 18px;
  padding: 16px 26px;
}

.btn-outline-cream {
  color: var(--cream);
  font-weight: 600;
  font-size: 18px;
  padding: 14px 24px;
  border: 2px solid var(--cream);
}

.btn-ink {
  background: var(--ink);
  color: var(--yellow);
  padding: 16px 24px;
  white-space: nowrap;
}

.btn-outline-ink {
  flex: 0 0 auto;
  color: var(--ink);
  padding: 14px 22px;
  border: 2px solid var(--ink);
  white-space: nowrap;
}

.btn-contact-email {
  background: var(--ink);
  color: var(--yellow);
  font-size: 18px;
  padding: 18px 24px;
  text-align: center;
}

.btn-contact-instagram {
  color: var(--white);
  font-size: 18px;
  padding: 16px 22px;
  border: 2px solid var(--white);
  text-align: center;
}

/* ---------- Top bar ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 4px solid var(--yellow);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}

.brand img {
  width: 56px;
  height: 56px;
}

.brand-name {
  font-size: 26px;
  color: var(--cream);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 72px;
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 999 1 560px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.88;
  color: var(--yellow);
}

.hero-lede {
  margin: 28px 0 0;
  font-size: 21px;
  line-height: 1.5;
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-badge {
  flex: 1 1 300px;
  max-width: 420px;
  min-width: 0;
}

.hero-badge img {
  width: 100%;
  height: auto;
}

/* ---------- Fixture strip ---------- */

.fixture {
  background: var(--yellow);
}

.fixture-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.fixture-item {
  flex: 1 1 200px;
  padding: 28px;
  border-right: 2px solid var(--ink);
}

.fixture-item:first-child {
  padding-left: 0;
}

.fixture-item-where {
  flex: 2 1 280px;
  border-right: 0;
}

.fixture-cta {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.fixture-value {
  margin: 6px 0 0;
  font-size: 40px;
  line-height: 1;
}

.fixture-note {
  border-top: 2px solid var(--ink);
}

.fixture-note .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.fixture-note p {
  flex: 999 1 520px;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Team photo ---------- */

.team-photo {
  margin: 0;
  background: var(--ink);
}

.team-photo img {
  display: block;
  width: 100%;
  /* As designed up to 1440px. Wider than that the band grows with the
     screen, so it never gets shallower than at 1440 and crops no heads. */
  height: clamp(320px, 52vw, max(680px, 47.2vw));
  object-fit: cover;
  /* Frame from near the top so the back row's heads stay in */
  object-position: center 8%;
}

/* ---------- New players ---------- */

.new {
  padding: 96px 0;
}

.new .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.new-intro {
  flex: 1 1 340px;
  min-width: 0;
}

.new h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
}

.new-intro p {
  margin: 24px 0 0;
  line-height: 1.6;
  max-width: 30em;
}

.facts {
  flex: 1.3 1 420px;
  min-width: 0;
  margin: 0;
  border-top: 3px solid var(--ink);
}

.facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  flex: 0 0 180px;
  font-weight: 700;
}

.facts dd {
  flex: 1 1 240px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--magenta);
  color: var(--white);
  padding: 80px 0;
}

.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.contact-text {
  flex: 999 1 480px;
  min-width: 0;
}

.contact h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
}

.contact-text p {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.contact-links {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 28px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

/* ---------- Narrower screens ---------- */

/* The fixture strip only reads well on one row from about 1150px. Below that it
   wraps or squeezes, so set the rows deliberately: When and Time, a rule, then Where
   and the directions button. */
@media (max-width: 1149px) {
  .fixture-row::after {
    content: "";
    order: 2;
    flex: 0 0 calc(100% + 64px);
    margin: 0 -32px;
    height: 2px;
    background: var(--ink);
  }

  .fixture-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .fixture-item:nth-child(2) {
    border-right: 0;
  }

  .fixture-item-where {
    order: 3;
    padding-left: 0;
  }

  .fixture-cta {
    order: 4;
  }
}

/* Phones: stack the fixture strip with a full-width rule between items */
@media (max-width: 619px) {
  .fixture-row {
    display: block;
  }

  .fixture-row::after {
    display: none;
  }

  .fixture-item,
  .fixture-item:first-child,
  .fixture-item-where {
    margin: 0 -32px;
    padding: 24px 32px;
    border-right: 0;
  }

  .fixture-item + .fixture-item {
    border-top: 2px solid var(--ink);
  }

  .fixture-cta {
    padding: 0 0 24px;
  }

  /* Keep the three nav links on one line, lined up with the logo */
  .site-nav {
    margin-left: -10px;
  }

  .site-nav a {
    padding: 12px 10px;
  }
}
