*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --accent: #F28C26;
    --bg: #fafaf8;
    --fg: #1a1a1a;
    --muted: #8a8880;
    --faint: #c0beb8;
    --rule: #1a1a1a;
    --rule-light: #e0ded8;
    --shape-mid: #e8e6e2;
    --shape-dark: #d4d2cd;
    --desc: #807e78;
    --about-text: #9a9890;
    --about-strong: #f0efe9;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Outfit', system-ui, sans-serif;
}


body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    max-width: 1280px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }


.logo { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 2px; }
.logo span { color: var(--accent); }


#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid var(--rule);
}
#header nav { display: flex; gap: 28px; }
#header nav a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s;
}
#header nav a:hover, #header nav a:focus-visible { color: var(--accent); }


.hero {
    padding: 72px 40px 56px;
    display: flex;
    gap: 60px;
    align-items: flex-end;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.hero-text em { font-style: normal; color: var(--accent); }
.hero-text p { font-size: 15px; color: var(--muted); margin-top: 16px; max-width: 360px; line-height: 1.6; }

.hero-shape { width: 140px; height: 140px; position: relative; flex-shrink: 0; }
.hero-shape div { position: absolute; }
.s1 { width: 50%; height: 50%; background: var(--accent); top: 0; right: 0; }
.s2 { width: 50%; height: 50%; background: var(--shape-mid); bottom: 0; left: 0; }
.s3 { width: 50%; height: 50%; background: var(--shape-dark); bottom: 0; right: 0; }
.s4 { width: 25%; height: 25%; border: 2px solid var(--accent); top: 50%; left: 0; }


.tenets {
    display: flex;
    border-top: 2px solid var(--rule);
    border-bottom: 2px solid var(--rule);
}
.tenet {
    flex: 1;
    padding: 24px 40px;
    border-right: 2px solid var(--rule);
}
.tenet:last-child { border-right: none; }
.tenet b { display: block; font-size: 20px; font-weight: 700; color: var(--accent); }
.tenet span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
    display: block;
}


.games { padding: 48px 40px; }
.games h2 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 28px;
}
.game {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--rule-light);
    padding: 20px 0;
    gap: 20px;
    transition: transform .2s;
    cursor: pointer;
}
.game:last-child { border-bottom: 1px solid var(--rule-light); }
.game:hover, .game:focus-visible { transform: translateX(12px); }
.game:hover .name, .game:focus-visible .name { color: var(--accent); }
.game:hover .arrow, .game:focus-visible .arrow { color: var(--accent); }
.game:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.idx { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 28px; flex-shrink: 0; }
.name { font-size: 22px; font-weight: 600; transition: color .2s; flex: 1; }
.desc { font-size: 13px; color: var(--desc); }
.arrow { font-size: 18px; color: var(--faint); transition: color .2s; }


.about {
    margin: 0 40px;
    background: var(--fg);
}
.about-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
}
.about-block { width: 56px; height: 56px; background: var(--accent); flex-shrink: 0; }
.about-header p { color: var(--about-text); font-size: 14px; line-height: 1.6; flex: 1; }
.about-header strong { color: var(--about-strong); }
.about-header span { color: var(--accent); }
.about-columns {
    column-count: 3;
    column-gap: 40px;
    column-rule: 1px solid #333;
    padding: 0 40px 40px;
}
.about-columns p {
    color: var(--about-text);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 1em;
    break-inside: avoid;
}
.about-columns p:last-child { margin-bottom: 0; }
.about-columns span { color: var(--accent); }
.btn {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
    white-space: nowrap;
    cursor: pointer;
}
.btn span { color: var(--accent); }
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--fg); }
.btn:hover span, .btn:focus-visible span { color: var(--fg); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }


.page {
    max-width: 640px;
    /*margin: 0 auto;*/
    /*padding: 64px 40px;*/
    padding: 64px 0;
}
.page h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--rule);
}
.page p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1.25em;
}
.page p:last-child { margin-bottom: 0; }
.page a { color: var(--accent); }
.page a:hover, .page a:focus-visible { text-decoration: underline; }


#footer {
    display: flex;
    gap: 40px;
    padding: 40px;
    margin-top: 40px;
    border-top: 2px solid var(--rule);
}
#footer .footer-col { flex: 1; }
#footer .footer-col:first-child { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
#footer .footer-col:nth-child(2) { flex: 2; }
#footer small { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 2px; }
#footer h3 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
#footer p { font-size: 13px; color: var(--muted); line-height: 1.6; }
#footer ul { display: flex; flex-direction: column; gap: 8px; }
#footer li a { font-size: 13px; color: var(--muted); transition: color .2s; }
#footer li a:hover, #footer li a:focus-visible { color: var(--accent); }


@media (max-width: 1280px) {
    .page { padding: 60px 40px; }
}


@media (max-width: 960px) {
    .about-columns { column-count: 2; }
    .page { padding: 60px 40px; }
}

@media (max-width: 768px) {
    #header { padding: 16px 20px; }
    #header nav { gap: 16px; }
    .hero { padding: 48px 20px 40px; flex-direction: column; align-items: flex-start; gap: 32px; }
    .hero-text h1 { font-size: 36px; }
    .hero-shape { width: 100px; height: 100px; }
    .tenets { flex-wrap: wrap; }
    .tenet { flex: 1 1 50%; border-bottom: 2px solid var(--rule); padding: 16px 20px; }
    .tenet:nth-child(2) { border-right: none; }
    .tenet:nth-child(3), .tenet:nth-child(4) { border-bottom: none; }
    .games { padding: 32px 20px; }
    .game { gap: 12px; }
    .desc { display: none; }
    .about { margin: 0 20px; }
    .about-header { padding: 24px; flex-direction: column; text-align: center; }
    .about-block { display: none; }
    .about-columns { column-count: 1; padding: 0 24px 24px; }
    .page { max-width: none; padding: 40px 20px; }
    .page h1 { font-size: 28px; }
    #footer { flex-direction: column; gap: 24px; padding: 32px 20px; }
}

@media (max-width: 400px) {
    .hero-text h1 { font-size: 28px; }
    #header nav a { font-size: 10px; }
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    html { scroll-behavior: auto; }
}
