/* armwrestling.ge base styles — mobile-first, no framework. */

/* Self-hosted Noto fonts (SIL OFL 1.1, see /fonts/OFL.txt). Georgian glyphs come from Noto Sans Georgian,
   Latin glyphs from Noto Sans; both share one family name and are split by unicode-range. */
@font-face {
  font-family: "Noto Sans Site";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-georgian-400.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}

@font-face {
  font-family: "Noto Sans Site";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-georgian-700.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}

@font-face {
  font-family: "Noto Sans Site";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Site";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #f4f5f7;
  --color-text: #1b1f24;
  --color-text-muted: #545b66;
  --color-primary: #b3121b;
  --color-primary-contrast: #ffffff;
  --color-border: #d9dce1;
  --color-focus: #1a5fd0;

  --font-body: "Noto Sans Site", system-ui, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --radius: 0.5rem;
  --container-max: 72rem;
  --gutter: 1rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--space-3);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  padding-block: var(--space-3);
}

.site-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

.lang-switch ul {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: inline-block;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  background: var(--color-surface);
  font-weight: 700;
}

/* Main */
.site-main {
  flex: 1;
  padding-block: var(--space-4);
}

.site-main:focus {
  outline: none;
}

.hero {
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.hero__lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.home-sections {
  display: grid;
  gap: var(--space-4);
}

.home-section {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.home-section__empty,
.status-page__meta {
  margin: 0;
  color: var(--color-text-muted);
}

.status-page {
  padding-block: var(--space-4);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
  padding-block: var(--space-3);
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: var(--space-5);
  }

  .home-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
