/* Dutch Art Gallery — design tokens */
:root {
  --bg: #F8F4ED;
  --surface: #FFFFFF;
  --ink: #1A1612;
  --ink-body: #3A332A;
  --muted: #807466;
  --wine: #6B2D2C;
  --wine-dark: #4A1E1D;
  --gold: #B08D57;
  --hairline: #E5DCC9;
  --hairline-soft: #ECE3D2;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }

a { color: inherit; }

.display { font-family: var(--display); color: var(--ink); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.display em { font-style: italic; }
.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: 2px;
  white-space: nowrap;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost-wine { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-ghost-wine:hover { background: var(--wine); color: #fff; }
.btn-link { color: var(--wine); font-weight: 500; letter-spacing: 0.12em; font-size: 12px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.btn-link:hover { color: var(--wine-dark); }

/* Layout */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-lg { padding: 128px 0; }
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
}

/* Artwork placeholder — painted-canvas feel */
.canvas-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--hairline-soft);
  isolation: isolate;
}
.canvas-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.04));
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Subtle entry */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* Utility bar + nav */
.utility-bar { background: var(--ink); color: #d8cfbf; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 0; font-weight: 400; }
.utility-bar a { text-decoration: none; color: inherit; }
.utility-bar a:hover { color: #fff; }

.navbar { position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 237, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: 1440px; margin: 0 auto; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-link { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink); font-weight: 500; padding: 6px 0; position: relative; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--wine); }

/* Wordmark */
.wordmark { font-family: var(--display); font-size: 26px; color: var(--ink); letter-spacing: 0.01em; line-height: 1; display: flex; align-items: baseline; gap: 10px; cursor: pointer; }
.wordmark .amp { color: var(--wine); font-style: italic; font-weight: 400; }
.wordmark-sub { font-family: var(--body); font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* Footer */
footer { background: var(--ink); color: #c8bfae; padding: 80px 0 36px; margin-top: 96px; }
footer .display { color: #f6efde; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: #fff; }

/* Inputs */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: var(--body); font-size: 14px; padding: 12px 14px;
  background: transparent; border: 1px solid var(--hairline);
  color: var(--ink); width: 100%; border-radius: 2px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); }
label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--hairline); }

/* Misc */
.text-muted { color: var(--muted); }
.text-wine { color: var(--wine); }
.text-gold { color: var(--gold); }

/* Grid */
.grid { display: grid; gap: 32px; }

/* Hover lift */
.lift { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -28px rgba(26, 22, 18, 0.32); }

/* Section eyebrow rule */
.eyebrow-rule { display: flex; align-items: center; gap: 14px; }
.eyebrow-rule::before { content: ""; width: 28px; height: 1px; background: var(--wine); }

/* Quote */
.quote { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; color: var(--ink); }
.quote::before { content: "“"; font-size: 1.5em; color: var(--wine); margin-right: 4px; line-height: 0; vertical-align: -0.15em; }
.quote::after { content: "”"; font-size: 1.5em; color: var(--wine); margin-left: 4px; line-height: 0; vertical-align: -0.15em; }

/* Scrollbar trim */
.scroll-x { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.scroll-x > * { flex: 0 0 auto; scroll-snap-align: start; }

/* Mobile nav drawer */
.mobile-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.mobile-drawer { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 100; flex-direction: column; padding: 24px; }
.mobile-drawer.open { display: flex; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* Focus overlay */
.focus-img { width: 100%; height: 100%; object-fit: cover; }

/* Pill tags */
.tag { display: inline-block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; border: 1px solid var(--hairline); border-radius: 999px; }
.tag.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Mobile top bar fix ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .topbar, .top-bar, [class*="topbar"], [class*="top-bar"] {
    flex-wrap: wrap;
    font-size: 11px !important;
    padding: 6px 12px !important;
    gap: 6px !important;
  }
  .topbar > *, .top-bar > * {
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
  }
  header, nav { padding: 12px 16px !important; }
  .container, .wrap, .max-w, [class*="container"] { padding-left: 16px !important; padding-right: 16px !important; }
}
