/* ii world — Design System
   Variables, reset, @font-face, base typography, utilities */

/* --- Font Faces --- */
@font-face {
  font-family: 'Lineal';
  src: url('/static/fonts/LinealVF.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Compagnon';
  src: url('/static/fonts/Compagnon-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Compagnon';
  src: url('/static/fonts/Compagnon-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Cyrillic Substitute Fonts --- */
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/Manrope-Cyrillic-VF.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/static/fonts/Literata-Cyrillic-VF.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/static/fonts/Literata-Cyrillic-Italic-VF.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --color-bg: #e7ecea;
  --color-bg-alt: #dce0de;
  --color-bg-card: #f4f6f5;
  --color-bg-nav: rgba(231,236,234,0.95);
  --color-text: #1a1a1a;
  --color-text-secondary: #5a5a5a;
  --color-text-tertiary: #8a8a8a;
  --color-accent: #1a1a1a;
  --color-border: #cdd2d0;
  --color-border-light: #d2d7d5;
  --font-display: 'Lineal', 'Helvetica Neue', sans-serif;
  --font-editorial: 'Compagnon', Georgia, serif;
  --nav-height: 64px;
  --max-width: 1440px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.text-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
}

.text-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.text-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.main { padding-top: var(--nav-height); min-height: 100vh; }

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
