:root {
  --bg: #14110f;
  --panel: #201a16;
  --panel-2: #2a221c;
  --line: #3a2f27;
  --text: #f1e8dc;
  --muted: #b3a595;
  --accent: #f0a23c;
  --accent-2: #ffcf7a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent-2); }
a:hover { color: #fff; }

img.px { image-rendering: pixelated; image-rendering: crisp-edges; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 17, 15, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
nav.site a:hover { color: var(--text); }

/* hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero h1 span { color: var(--accent); }
.hero p.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero .portraits {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
  flex-wrap: wrap;
}
.hero .portraits img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1209;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
}
.btn:hover { background: var(--accent-2); color: #1a1209; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  margin-left: 8px;
}
.btn.ghost:hover { border-color: var(--accent); color: #fff; }

/* sections */
section { padding: 40px 0; }
section h2 { font-size: 1.6rem; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.card .thumbs { display: flex; gap: 8px; margin-bottom: 14px; }
.card .thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1209;
  background: var(--accent);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tag.alt { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 0.97rem; }

.about {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}
.about img { width: 120px; height: 120px; }
.about p { margin: 0 0 10px; color: var(--muted); }
@media (max-width: 560px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .about img { margin: 0 auto; }
  .btn.ghost { margin: 10px 0 0; }
  nav.site a:first-child { margin-left: 0; }
}

/* text pages */
.doc { padding: 48px 0 64px; max-width: 720px; }
.doc h1 { margin: 0 0 6px; font-size: 2rem; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { margin: 30px 0 6px; font-size: 1.2rem; color: var(--accent-2); }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
