/* =========================================================================
   violinelenka.com — modern shared stylesheet
   Elegant dark theme for a classical violinist's personal site.
   Centered, responsive, accessible.
   ========================================================================= */

:root {
  --bg: #121212;
  --bg-soft: #1b1b1b;
  --bg-card: #202020;
  --bg-card-hover: #2a2a2a;
  --text: #f2f0ea;
  --text-muted: #b8b4a8;
  --accent: #d4af37;          /* warm gold */
  --accent-soft: #e6c96a;
  --border: #33332e;
  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 50% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-soft); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(18, 18, 18, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: var(--font-serif); font-size: 1.35rem; color: var(--text); }
.brand-name small { display: block; font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }

.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}
.lang-switch a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.lang-switch a.active { background: var(--accent); color: #1a1a1a; border-color: var(--accent); font-weight: 700; }

/* ---------- Navigation ---------- */
.site-nav { border-top: 1px solid var(--border); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Main ---------- */
main { padding: 40px 0 60px; }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.hero img.hero-img { width: 100%; display: block; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.78) 100%);
  padding: 30px;
}
.hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  color: #fff;
}
.hero-overlay p { margin: 0; color: #e8e4d8; max-width: 640px; font-size: 1.05rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 20px; }
h2 { font-size: 1.5rem; margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 24px 0 10px; }
p { margin: 0 0 16px; }

.page-title {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-3px); background: var(--bg-card-hover); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { margin-bottom: 44px; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Content blocks ---------- */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.content-block ul { padding-left: 20px; }
.content-block li { margin-bottom: 8px; }

.timeline-item { margin-bottom: 14px; }
.timeline-item .date {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  min-width: 150px;
}

/* ---------- FAQ ---------- */
.faq-item { margin-bottom: 14px; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "▸ "; color: var(--accent); }
.faq-item[open] summary::before { content: "▾ "; }
.faq-item .faq-body { padding: 14px 16px; color: var(--text-muted); }

/* ---------- Audio ---------- */
audio { width: 100%; margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.gallery figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-soft); color: #1a1a1a; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0d0d0d;
  padding: 30px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--accent); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; color: var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-bottom: none; border-left: 3px solid transparent; }
  .site-nav a.active { border-left-color: var(--accent); }
  .hero-overlay { padding: 18px; }
  .timeline-item .date { display: block; margin-bottom: 2px; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #1a1a1a;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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