@font-face {
    font-family: Inter; src: url("inter-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
}
@font-face {
    font-family: Inter; src: url("inter-cyrillic.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
    color-scheme: dark;
    --bg: #11130f;
    --panel: #191c17;
    --panel-deep: #141712;
    --line: #30362a;
    --text: #f1f4ec;
    --muted: #a5aea0;
    --accent: #d4ff56;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.52;
    background: var(--bg);
    color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.068em; font-weight: 800; }
h2 { font-size: 1.3rem; letter-spacing: -.035em; }
h3 { font-size: 1.08rem; letter-spacing: -.025em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: .7rem; left: .7rem; z-index: 4; padding: .6rem 1rem; background: #000; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #131611; }
.header-inner, .shell { max-width: 1370px; width: calc(100% - 100px); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(1.15rem, 4vw, 4rem); }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.18rem; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; }
.brand > span > span, .login-art > span > span { color: var(--accent); }
.brand small { color: var(--muted); margin-left: 2px; font-size: .62em; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--accent); border-radius: 8px; color: #1a2109; font-size: 1.3rem; }
nav { display: flex; gap: .25rem; min-height: inherit; align-items: stretch; }
nav a { display: flex; align-items: center; color: var(--muted); padding: 0 .85rem; border-bottom: 2px solid transparent; font-weight: 650; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.account { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.account-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.shell { padding: 45px 0 80px; }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: .65rem; min-height: 43px; padding: .65rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; line-height: 1.2; text-align: center; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.button.primary { background: var(--accent); color: #1a2305; border-color: transparent; }
.button.primary:hover { background: #e5ff9e; color: #111703; }
.button.quiet { background: transparent; min-height: 36px; font-size: .86rem; }
.overview, .section-head { display: flex; align-items: center; gap: .8rem; }
.overview { justify-content: space-between; margin-bottom: 35px; }
.section-head { margin-bottom: 1.15rem; }
.section-head > span { color: var(--muted); border: 1px solid var(--line); padding: .03rem .48rem; font-size: .76rem; border-radius: 5px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(265px, .47fr); gap: clamp(20px, 4vw, 50px); }
.home-aside { display: grid; align-content: start; gap: 1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem; min-width: 0; }
.panel > h2, .new-entry > h3 { margin-bottom: 1.2rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s ease; min-width: 0; }
.project-card:hover { border-color: var(--accent); }
.project-card > img, .project-art { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #1d2516; }
.project-art { display: grid; place-items: center; background: radial-gradient(ellipse at 75% 30%, #42572a, #1c2516 64%); }
.project-art > span { font-size: 4rem; line-height: 1; font-weight: 800; color: var(--accent); }
.project-caption { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: .55rem; align-items: start; padding: 1.15rem; }
.project-caption h3 { font-size: 1.25rem; }
.project-caption p { color: var(--muted); margin-top: .55rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); }
.muted, .empty, time, .member small, .entry small { color: var(--muted); }
.news-item { border-top: 1px solid var(--line); padding: .9rem 0; overflow-wrap: anywhere; }
.news-item:last-child { padding-bottom: 0; }
.news-item h3 { margin: .25rem 0 .4rem; }
.news-item p { white-space: pre-wrap; }
time, .member small, .entry small { font-size: .8rem; }
.member { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.member + .member { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: #303c22; border-radius: 9px; color: var(--accent); font-weight: 750; }
.member small { display: block; margin-top: .1rem; }
.member strong { overflow-wrap: anywhere; }
.presence { flex: none; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #6a7265; }
.presence.online { background: var(--accent); box-shadow: 0 0 9px #d4ff5670; }
.back { display: inline-flex; color: var(--muted); font-weight: 650; margin-bottom: 1.1rem; }
.back:hover { color: var(--accent); }
.project-hero { position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #1f261b; }
.project-hero > img { position: absolute; z-index: -2; inset: 0 0 0 auto; height: 100%; width: min(78%, 900px); object-fit: cover; }
.project-hero.has-cover::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #121610 6%, #121610f2 36%, #12161016 100%); }
.hero-content { padding: clamp(1.65rem, 5vw, 4rem); min-height: 275px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem; }
.hero-content p { max-width: 48ch; color: #c2cbbd; white-space: pre-wrap; overflow-wrap: anywhere; }
.update-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: center; color: var(--muted); margin-top: .75rem; }
.update-line strong { font-size: .88rem; color: var(--text); }
.update-line span { font-size: .82rem; }
.entries { margin-top: 2.7rem; }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .66fr); gap: 1rem; align-items: start; }
.entry + .entry { margin-top: .8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.filters button { border: 1px solid var(--line); padding: .35rem .7rem; background: var(--panel); border-radius: 7px; color: var(--muted); }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.tags span { border: 1px solid var(--line); border-radius: 6px; padding: .12rem .48rem; font-size: .73rem; color: var(--muted); }
.tags .working { color: #ffe28c; }
.tags .done { color: var(--accent); }
.tags .cancelled { color: #ffacac; }
.entry-text { margin: .65rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
details { margin-top: .8rem; }
summary { cursor: pointer; color: var(--accent); width: fit-content; }
details .form { margin-top: 1rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.form { display: grid; gap: 1rem; }
label { display: grid; gap: .36rem; font-size: .87rem; font-weight: 650; }
label small { font-weight: 400; color: var(--muted); }
input:not([type="checkbox"]), textarea, select { width: 100%; min-width: 0; color: var(--text); border: 1px solid var(--line); background: var(--panel-deep); padding: .62rem .72rem; border-radius: 7px; }
input[type="file"] { font-size: .82rem; }
textarea { resize: vertical; }
.input-group { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.checkbox { display: flex; align-items: center; gap: .5rem; }
input[type="checkbox"] { accent-color: var(--accent); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.notice { color: #e9ffc5; background: #26341e; border: 1px solid #4b613c; border-radius: 8px; margin-bottom: 1.2rem; padding: .8rem 1rem; }
.notice.error { color: #ffc8c8; background: #2d1b1b; border-color: #583338; }
.login .shell { max-width: 1050px; padding-top: clamp(2rem, 9vh, 6.5rem); }
.login-layout { display: grid; grid-template-columns: minmax(300px, .95fr) 1fr; min-height: 460px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); overflow: hidden; }
.login-form { align-self: center; padding: clamp(1.5rem, 4.5vw, 3.75rem); }
.login h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.login-form p { margin: .7rem 0 1.8rem; }
.login-form .button { margin-top: .3rem; width: 100%; }
.login-art { display: grid; place-items: center; padding: 1rem; background: linear-gradient(140deg, #1c2a15db, #23241bce 65%, #0d160ec9), url("zomboid.jpg") 72% center / cover; border-left: 1px solid var(--line); overflow: hidden; }
.login-art > span { font-size: clamp(2.25rem, 7vw, 6.7rem); font-weight: 800; letter-spacing: -.095em; color: #f1f4eced; }
@media (max-width: 980px) {
    .header-inner, .shell { width: calc(100% - 48px); }
    .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .header-inner, .shell { width: calc(100% - 32px); }
    .shell { padding-top: 30px; }
    .header-inner { flex-wrap: wrap; gap: 0 .7rem; padding-top: .6rem; min-height: 57px; }
    nav { order: 3; width: 100%; min-height: 40px; }
    nav a { padding-inline: .65rem; font-size: .87rem; }
    .account-name { display: none; }
    .home-grid, .entry-layout, .admin-grid, .login-layout { grid-template-columns: minmax(0, 1fr); }
    .entry-layout .new-entry { grid-row: 1; }
    .login-art { min-height: 150px; order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
    .login-layout { min-height: 0; }
    .login .header-inner { padding-bottom: .6rem; }
    .project-hero > img { width: 100%; object-position: 68% center; }
    .project-hero.has-cover::after { background: linear-gradient(90deg, #121610fa, #121610a8 80%); }
    .overview { margin-bottom: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
