/* ==========================================================
   Malerei Stettbacher Heerbrugg — Shared Stylesheet
   Swiss Editorial · Fraunces + Inter Tight
========================================================== */

:root {
  --ink: #15171a;
  --ink-soft: #3a3d42;
  --paper: #f6f4ef;
  --paper-warm: #efeae0;
  --line: #d9d4c7;
  --accent: #b8462a;
  --accent-deep: #8a3220;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  z-index: 1000;
  mix-blend-mode: multiply;
}

/* ==================== NAV ==================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); }

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-mark {
  width: 10px; height: 10px;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-1px);
}
.brand em { font-style: italic; font-weight: 400; }

nav ul { list-style: none; display: flex; gap: 36px; }
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
  position: relative;
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); }
nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
}

/* ==================== HERO (shared) ==================== */
.hero {
  padding: 180px 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-meta { display: flex; flex-direction: column; gap: 28px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-lede {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 460px;
}
.hero-lede strong {
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
}

.hero-index {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 32px;
  font-size: 13px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-index dt {
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.hero-index dd {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn::after { content: "→"; transition: transform 0.2s var(--ease); }
.btn:hover::after { transform: translateX(4px); }

/* ==================== SECTIONS ==================== */
section { position: relative; }

.section-head {
  padding: 100px 48px 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 48px 32px;
  margin-top: 80px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 244, 239, 0.15);
  flex-wrap: wrap;
  gap: 24px;
}
.foot-brand {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.foot-brand em { color: var(--accent); font-style: italic; }
.foot-nav { display: flex; gap: 32px; list-style: none; flex-wrap: wrap; }
.foot-nav a {
  color: var(--paper);
  opacity: 0.7;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s var(--ease);
}
.foot-nav a:hover { opacity: 1; }
.foot-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== SHARED ANIMATIONS ==================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.8s var(--ease) forwards; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .topbar { padding: 16px 24px; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding: 140px 24px 80px; gap: 48px; }
  .section-head { grid-template-columns: 1fr; padding: 60px 24px 40px; gap: 24px; }
  footer { padding: 40px 24px 24px; }
}
