@font-face {
  font-family: "League Gothic";
  src: url("/fonts/league-gothic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #fbfcf9;
  --text: #26292b;
  --muted: #545a5e;
  --accent: #5a7a33;
  --brand-grey: #4f4c4d;
  --brand-green: #80a84f;
  --shirt: #ffffff;
  --border: #dde3d5;
  --display: "League Gothic", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171a16;
    --text: #e7eae3;
    --muted: #a8b0a2;
    --accent: #9cbf6c;
    --brand-grey: #b9b5b6;
    --brand-green: #9cbf6c;
    --shirt: #171a16;
    --border: #2e352a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1rem;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.6 var(--body);
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 3rem); margin: 0.5rem 0 1rem; }
h2 { font-size: 1.9rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 1.5rem 0 0.4rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav .contact-link { color: var(--accent); font-weight: 600; }
.brand {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brand-grey);
  text-decoration: none;
}
.brand .accent { color: var(--accent); }

main { padding: 1.5rem 0 3rem; }

.hero { display: grid; gap: 1.5rem; }
.hero h1 { margin-top: 0; }
.hero p { margin: 0 0 1.25rem; color: var(--muted); }
.hero p:last-child { margin-bottom: 0; }
.squad { display: block; width: 11rem; height: auto; }
.squad .suit { fill: var(--brand-grey); }
.squad .kit { fill: var(--brand-green); }
.squad .shirt { fill: var(--shirt); }

@media (min-width: 40rem) {
  .hero { grid-template-columns: minmax(0, 1fr) 13rem; align-items: end; }
  .squad { width: 100%; }
}

.offers, .posts { list-style: none; padding: 0; }
.offers { display: grid; gap: 1.25rem; margin: 1rem 0 1.5rem; }
.offers li { padding-left: 1rem; border-left: 3px solid var(--accent); }
.offers h3 { margin: 0; }
.offers p { margin: 0.25rem 0 0; color: var(--muted); }

.posts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.meta, .note, .posts time { color: var(--muted); font-size: 0.9rem; }

.button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: var(--background);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

.contact-form { display: grid; gap: 0.35rem; }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { border-color: var(--accent); }
.contact-form .button { justify-self: start; margin-top: 0.75rem; }
.hidden-field { position: absolute; left: -10000px; }

.site-footer { padding: 1rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-weight: 600; }
td.message { white-space: pre-wrap; overflow-wrap: anywhere; }
