@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #faf7f2;
  --ink: #1f1a15;
  --muted: #6b5f52;
  --accent: #b33a1f;
  --rule: #d9cdb9;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 100;
}

h1 {
  font-size: clamp(2.4rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.55em;
  display: inline-block;
  margin-top: 0.4em;
}

h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  margin-top: 0;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

p, li, address { max-width: var(--measure); }
address { font-style: normal; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* --- Header --- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "SOFT" 100;
}
.brand span { color: var(--accent); }

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--accent); }

/* --- Layout --- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
section:last-child { border-bottom: none; }

.hero { padding-top: 1rem; border-bottom: 1px solid var(--rule); }
.hero .lede {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 40ch;
  margin-top: 1.5rem;
}

/* --- Galleries --- */

.gallery {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: none;
}
.gallery li {
  max-width: none;
  margin: 0;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  background: #eee;
}

/* --- Document lists --- */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.doc-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
}
.doc-list a { text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.doc-list span {
  color: var(--muted);
  font-size: 0.85em;
  margin-left: 0.4em;
}

/* --- Notes, prices, credits --- */

.note { color: var(--muted); }
.credit {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.price {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.dates {
  list-style: none;
  padding: 0;
}
.dates li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}

address {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(179, 58, 31, 0.05);
  border-left: 3px solid var(--accent);
}

/* --- Prose layout for Impressum --- */

.prose section { padding: 2rem 0; }
.prose h1 { font-size: 2rem; margin-top: 1rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }

/* --- Responsive --- */

@media (max-width: 600px) {
  .site-header { padding: 1rem 1.25rem; }
  main { padding: 2rem 1.25rem 3rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
