:root {
  --bg: #f6f3ee;
  --paper: #fbf9f5;
  --ink: #1d1b18;
  --muted: #6f6a62;
  --line: #e4ded4;
  --oak: #a9825a;
  --oak-dark: #7d5e3d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav a:hover, .nav a.active { border-color: currentColor; }
.solid-header { background: rgba(246, 243, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- protected artwork ---------- */
.art {
  position: relative; background: center / contain no-repeat;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.art::after { content: ""; position: absolute; inset: 0; }   /* shield: nothing to right-click save */

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 13px; z-index: 50;
  transition: opacity .3s, transform .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- header links (folded into a menu on phones) ---------- */
.nav-links { display: flex; gap: inherit; align-items: center; }
.menu-btn { display: none; }

@media (max-width: 640px) { .brand { font-size: 19px; letter-spacing: .02em; } }
/* the links fold under the menu button once they no longer fit beside the name (phones and small tablets) */
@media (max-width: 940px) {
  /* phone bar: menu on the left, the name in the middle, Instagram on the right */
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 16px; }
  .site-header .nav { display: contents; }
  .site-header .menu-btn { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .brand { grid-column: 2; grid-row: 1; text-align: center; }
  .site-header .nav .ig { grid-column: 3; grid-row: 1; justify-self: end; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 28px; height: 28px;
    padding: 0; background: none; border: 0; color: inherit; }
  .menu-btn span { display: block; height: 1.5px; width: 22px; background: currentColor; transition: transform .25s, opacity .25s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(40, 30, 20, .35);
    padding: 4px 16px 10px; font-size: 13px; letter-spacing: .22em; }
  .menu-open .nav-links { display: flex; }
  .site-header .nav-links a, .site-header .nav-links .contact-btn { padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .site-header .nav-links > :last-child { border-bottom: 0; }
  .nav-links a.active { border-bottom-color: var(--line); color: var(--muted); }
}

/* ---------- instagram ---------- */
.nav .ig { display: inline-flex; align-items: center; border: 0; padding: 0; transition: opacity .3s; }
.nav .ig:hover { opacity: .55; border: 0; }
.ig-line { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.ig-line:hover span { text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { margin: 14px 0 0; }

/* ---------- contact ---------- */
.nav .contact-btn { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: border-color .3s; }
.nav .contact-btn:hover, .nav .contact-btn.active { border-color: currentColor; }
.contact-pop { position: absolute; top: calc(100% + 10px); right: clamp(16px, 4vw, 48px); width: min(340px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(40, 30, 20, .35);
  padding: 24px; z-index: 40; pointer-events: auto; }
.cp-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.cp-text { font-size: 14px; line-height: 1.6; color: #4a453f; margin: 0 0 6px; }
.cp-mail { display: block; font-family: var(--serif); font-size: 24px; margin: 0 0 20px; word-break: break-all; }
.cp-mail:hover { text-decoration: underline; text-underline-offset: 5px; }
.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-actions .btn { padding: 12px 16px; font-size: 11px; }
.foot-mail { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .04em; }
.foot-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
