:root {
  --bg: #11161f;
  --bg-2: #1b2433;
  --line: #2a3547;
  --text: #e9eef5;
  --muted: #9aa7b8;
  --accent: #f2a65a;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(17, 22, 31, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* hero */
.hero {
  position: relative; height: min(78vh, 640px); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 120px 0 48px;
  background: linear-gradient(transparent, rgba(10, 13, 20, .85));
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 10px; }
.hero p { margin: 0; color: #d4dbe6; max-width: 560px; }

/* sections */
section { padding: 56px 0 8px; }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }
h2 { font-size: 26px; margin: 0 0 20px; }
.page-title { padding-top: 48px; }
.page-title h1 { font-size: 40px; margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 680px; margin-top: 0; }

/* gallery grid */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  display: block; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: #3b4a62; text-decoration: none; }
.card img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; }
.card .cap { padding: 12px 16px 14px; }
.card .cap b { display: block; font-weight: 600; }
.card .cap span { color: var(--muted); font-size: 14px; }

/* lightbox (pure CSS, :target) */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6, 8, 12, .94);
}
.lightbox:target { display: flex; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { margin-top: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lightbox .close { position: absolute; inset: 0; z-index: -1; }
.lightbox .x { color: var(--text); }

/* notes */
.notes-list { display: grid; gap: 18px; }
.note {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px;
}
.note h2, .note h3 { margin: 0 0 4px; }
.note time { color: var(--muted); font-size: 14px; }
.note p { margin: 12px 0 0; }
article.post { max-width: 720px; }
article.post h2 { margin-top: 44px; }

/* two-column */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.split img { height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li span { color: var(--muted); display: inline-block; min-width: 150px; }

.more { margin-top: 22px; display: inline-block; }

/* footer */
.site-footer {
  margin-top: 72px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; flex-wrap: wrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .nav { gap: 4px 14px; }
  .nav a { font-size: 14px; }
  .page-title h1 { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .note { padding: 20px; }
  .facts li span { min-width: 0; display: block; }
}
