/* ═══════════════════════════════════════════════════════════
   Ink Atelier — site.css
   Shared stylesheet for all pages. Page-specific styles
   remain in each HTML file's <style> block.
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --ink:      #151916;
  --white:    #fefdfb;
  --linen:    #ede9e1;

  --moss-dk:  #1e2621;
  --moss:     #2b3630;
  --moss-lt:  #43524a;
  --stone:    #6b7870;
  --sage:     #87968f;
  
  --gold:     #c49a52;

  --error:    #a34343;
  --success:  #6c8276;

  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono:  'DM Mono', Consolas, monospace;

  --max-w:  1100px;
  --nav-h:  64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--moss); border-radius: 3px; }

body {
  font-family: var(--font-mono);
  font-weight: 300;
  color: var(--linen);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: var(--nav-h);
  transition: background 0.35s var(--ease-out), backdrop-filter 0.35s;
}
.site-nav.scrolled {
  background: rgba(21,25,22,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,161,153,0.1);
}

/* Inner pages: centered wordmark */
.nav-centered { justify-content: flex-start; }
.nav-centered .nav-wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--linen);
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Light-hero variant (index.html only) */
.nav-on-light .nav-hamburger span { background: var(--moss); }
.nav-on-light.scrolled .nav-hamburger span { background: var(--linen); }

/* Hamburger */
.nav-hamburger {
  width: 40px; height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--linen);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── DRAWER ──────────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(300px, 80vw);
  height: 100dvh;
  background: var(--ink);
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 40px) 48px 48px;
  gap: 4px;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  left: min(340px, 85vw);
}
.nav-drawer.open::before { opacity: 1; pointer-events: auto; }

.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--linen);
  padding: 12px 0;
  border-bottom: 1px solid rgba(148,161,153,0.12);
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
  line-height: 1;
}
.nav-drawer a:hover { color: var(--white); padding-right: 8px; }
.nav-drawer a.active { color: var(--gold); }
.nav-drawer a:last-of-type { border-bottom: none; }

.nav-drawer-footer {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(158,172,163,0.45);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(148,161,153,0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--linen);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  background: transparent;
  color: var(--gold);
  font-weight: 500;
}
.btn-primary:hover { background: var(--gold); color: var(--ink); }

/* ── EYEBROW ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
}

/* ── RULE ────────────────────────────────────────────────── */
.rule-h {
  height: 1px;
  background: rgba(148,161,153,0.1);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(148,161,153,0.1);
  padding: 64px 32px 48px;
  text-align: left;
}
.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 32px;
  align-items: center;
}
.footer-rule {
  height: 1px;
  background: var(--moss);
  margin: 28px 0;
  opacity: 0.9;
}
.footer-tagline {
  font-size: 12px;
  color: var(--sage);
  max-width: 36rem;
  line-height: 1.7;
}
.footer-tagline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--linen);
  font-weight: 300;
}
.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.footer-socials a {
  padding: 8px;
  transition: color 0.2s;
}
.footer-socials a img {
  width: 20px; height: 20px;
  filter: invert(1) opacity(0.55);
  transition: filter 0.2s;
}
.footer-socials a:hover img { filter: invert(1) opacity(1); }
.footer-brand,
.footer-legal-links a {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.72;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}
.footer-legal-links a {
  transition: opacity 180ms ease, transform 180ms ease;
}
.footer-legal-links a:hover { opacity: 1; transform: translateY(-1px); }

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  width: min(680px, calc(100vw - 48px));
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  min-width: 200px;
}
.cookie-text a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  transition: border-color 0.2s;
}
.cookie-text a:hover { border-color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--moss);
  background: transparent;
  color: var(--moss);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.cookie-btn-accept {
    border-color: var(--moss);
    color: var(--moss);
}
.cookie-btn-necessary:hover, .cookie-btn-accept:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ── PAGE BODY ───────────────────────────────────────────── */
.page-body { overflow-x: hidden; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-footer { text-align: center; }
  .footer-row { grid-template-columns: 1fr; gap: 22px; }
  .footer-tagline { margin: 0 auto; }
  .footer-socials,
  .footer-legal-links { justify-content: center; }
  .cookie-banner { bottom: 16px; gap: 16px; padding: 18px 20px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

.btn,
.btn-primary,
.contact-method,
.calendar-nav button,
.upload-button,
.method-pill,
.radio-option label {
  border-radius: 6px;
}