@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600&family=Work+Sans:wght@400;500&display=swap');

:root {
  --bg: #15130f;
  --surface: #1e1c16;
  --surface-2: #262319;
  --paper: #ece5d3;
  --ink: #ece5d3;
  --muted: #9d9581;
  --line: #35311f;
  --accent: #b8904f;
  --accent-dim: #8a6c3c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.4rem; font-weight: 600; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; color: var(--muted); font-weight: 400; }

p { max-width: 62ch; color: var(--ink); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand a { color: var(--ink); }
.brand .name { font-family: 'Spectral', serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }
.brand .place { color: var(--muted); font-size: 0.85rem; }

.langswitch { display: flex; gap: 4px; font-size: 0.8rem; }
.langswitch a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.langswitch a.active { color: var(--accent); border-color: var(--accent-dim); }
.langswitch a:hover { color: var(--paper); border-color: var(--muted); }

nav.sections {
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
nav.sections .wrap { display: flex; gap: 4px; padding: 0; }
nav.sections a {
  display: block;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
nav.sections a:hover { color: var(--paper); }
nav.sections a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Hero (landing) */
.hero {
  position: relative;
  height: 46vh;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  filter: brightness(1.2) saturate(1.1);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,15,0.05) 0%, rgba(21,19,15,0.75) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-bottom: 40px; }
.hero p.kicker { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.04em; margin: 0 0 6px; }
.hero h1 { margin: 0; }

/* Intro */
.intro { padding: 48px 0 8px; }
.intro p { color: var(--muted); font-size: 1.05rem; }

/* Section grid on home */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  margin: 40px 0 60px;
  border: 1px solid var(--line);
}
.section-card {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: background 0.15s ease;
}
.section-card:hover { background: var(--surface-2); }
.section-card .num { color: var(--accent-dim); font-size: 0.8rem; font-family: 'Spectral', serif; }
.section-card h2 { font-size: 1.15rem; margin: 10px 0 0; }
.section-card a.go { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.section-card:hover a.go { color: var(--accent); }

/* Gallery page */
.gallery-header { padding: 44px 0 20px; }
.gallery-header h1 { margin-bottom: 8px; }
.gallery-header p { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0 70px;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  padding: 10px;
  border: 1px solid var(--line);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery figcaption {
  color: #55503f;
  font-size: 0.75rem;
  padding-top: 8px;
  font-family: 'Spectral', serif;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  .hero { height: 38vh; }
}
