:root {
  --bg: #f6ecd4;
  --surface: #efe1bd;
  --text: #2b1d0e;
  --muted: #6b5a3e;
  --border: #cdb670;
  --accent: #7a1620;
  --gold: #b8892b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120b22;
    --surface: #1c1330;
    --text: #f0e6c8;
    --muted: #b9a97e;
    --border: #3a2a55;
    --accent: #e0b84a;
    --gold: #e0b84a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent); }

h1, h2, h3, nav a, .headline, .tags li {
  font-family: "Cinzel", serif;
}

/* ---------- Hero ---------- */
/* Header photo: Neuschwanstein Castle by Thomas Wolf, www.foto-tw.de (CC BY-SA 3.0 DE) — credited in footer */

.hero {
  position: relative;
  min-height: 460px;
  padding: 90px 0 48px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(5, 3, 15, 0.45) 0%, rgba(5, 3, 15, 0.55) 45%, rgba(5, 3, 15, 0.92) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Schloss_Neuschwanstein_2013.jpg/1280px-Schloss_Neuschwanstein_2013.jpg") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

/* ---------- Hero content ---------- */

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.hero h1 {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0;
  line-height: 1.1;
  color: #f4ecd8;
  text-shadow: 0 0 18px rgba(224, 184, 74, 0.45);
}

.headline {
  color: var(--gold, #d9b84a);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin: 10px 0 26px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #e7d9b3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: color 0.15s, text-shadow 0.15s;
}

nav a:hover {
  color: #f1cf6b;
  text-shadow: 0 0 10px rgba(241, 207, 107, 0.6);
}

/* ---------- Sections ---------- */

section {
  padding: 40px 0 8px;
  scroll-margin-top: 16px;
}

h2 {
  position: relative;
  font-size: 1.45rem;
  letter-spacing: 0.4px;
  margin: 0 0 22px;
  padding-bottom: 12px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

h3 {
  font-size: 1.05rem;
  margin: 0;
}

.item { margin-bottom: 24px; }
.item p { margin: 4px 0 0; color: var(--muted); }

.item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.date { color: var(--muted); font-size: 0.9rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 20px rgba(224, 184, 74, 0.2);
  transform: translateY(-2px);
}

.card p { margin: 6px 0 0; color: var(--muted); }

.tags, .links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tags li {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

footer {
  padding: 48px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-note {
  font-family: "Cinzel", serif;
  font-style: italic;
  color: var(--gold);
  margin-top: 4px;
}

.photo-credit {
  font-size: 0.78rem;
  margin-top: 12px;
  opacity: 0.75;
}

.photo-credit a { color: var(--muted); }
