/* style.css - TJ Sokol Ckyne */

/* ---------- Design tokens ---------- */

:root {
  /* Content column is 900px wide, same as before, plus the side padding. */
  --page-max: 980px;
  --page-pad: clamp(16px, 4vw, 40px);

  /* The three colours of the logo: Sokol red, the navy of the athlete
     silhouettes, and white. Red is an accent only - as a full page
     background it was far too loud. */
  --brand: #e40521;
  --brand-ink: #c2041c;
  --brand-wash: #fcf1f2;
  --navy: #2b3157;
  --navy-dark: #1b2040;

  --bg: #eef0f4;
  --surface: #ffffff;
  --border: #dde1e9;
  --text: #2c3140;
  --muted: #575d70;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

html {
  /* Keep the font size stable when a phone is turned to landscape. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.25;
}

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

/* ---------- Layout ---------- */

.container {
  max-width: var(--page-max);
  margin: 20px auto;
  padding: 40px var(--page-pad);
  background-color: var(--surface);
  /* The page behind is light now, so the sheet needs its own edge. */
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(17, 21, 40, 0.06);
  /* Long words and URLs must not push the layout wider than the screen. */
  overflow-wrap: break-word;
}

/* ---------- Logo ---------- */

.logo {
  background-image: url("/uploads/logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  /* Source image is 900x300, so the box keeps a 3:1 ratio while it scales. */
  aspect-ratio: 3 / 1;
  max-width: 900px;
  margin: 0 0 24px;
}

/* ---------- Sections ---------- */

.news_container,
.downloads,
.contact {
  margin-top: 40px;
}

/* ---------- Downloads ---------- */

.downloads {
  /* The table can still be wider than a phone; scroll it on its own. */
  overflow-x: auto;
}

.downloads a {
  text-decoration: none;
  color: inherit;
}

.downloads a:hover {
  text-decoration: underline;
  font-weight: bold;
}

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

.contact {
  padding-bottom: 50px;
  display: flow-root;
}

.contact img {
  width: 300px;
  max-width: 100%;
  border-radius: 6px;
}

address {
  font-size: 1.25rem;
}

address a {
  color: var(--brand-ink);
  text-decoration: none;
}

address a:hover {
  text-decoration: underline;
}

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

footer {
  max-width: var(--page-max);
  margin: 0 auto 50px;
  padding: 0 var(--page-pad);
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

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