/* ============================================================================
   Qraft.ca — black header bar (silver nav, amber logo) over a white body.
   Artsy while classic: Cormorant Garamond display over Barlow body, amber accent.
   ========================================================================== */

:root {
  --bg:        #ffffff;   /* white body                    */
  --bg2:       #f7f6f3;   /* raised panel                  */
  --bg3:       #f1efe9;   /* card                          */
  --bg4:       #e8e5dd;   /* placeholder / hover           */
  --line:      rgba(0,0,0,0.12);
  --line2:     rgba(0,0,0,0.22);
  --text:      #17150f;   /* near-black body text          */
  --text-dim:  #55524a;
  --text-mute: #8a857a;
  --amber:     #C48400;   /* BrkrOps amber                 */
  --amber-dim: #9a6600;
  /* dark header */
  --hdr-bg:    #0a0a0b;
  --hdr-text:  #cfd3d9;   /* silver nav                    */
  --hdr-hi:    #f4f6f8;
  --radius:    3px;
  --maxw:      1160px;
  --t:         0.22s ease;
  /* brushed-metal gradient — used only on the dark header */
  --metal: linear-gradient(120deg, #f4f6f8 0%, #b9bec6 22%, #85898f 42%, #dfe3e8 58%, #9a9ea6 78%, #eef1f4 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-dim); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--amber); }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  color: var(--text);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}

/* silver metal text — for the dark header only. Inside the light body/footer it
   would vanish, so those contexts fall back to solid amber (overrides below). */
.metal-text {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
main .metal-text, footer.site .metal-text {
  background: none;
  -webkit-text-fill-color: var(--amber); color: var(--amber);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Header (dark bar) ──────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr-bg);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 0 12px rgba(196,132,0,0.35)); }
.brand .brand-word {
  font-family: "Cormorant Garamond", serif; font-weight: 700;
  font-size: 1.55rem; letter-spacing: 0.02em;
}
nav.links { display: flex; align-items: center; gap: 28px; }
nav.links a {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hdr-text); font-weight: 400;
}
nav.links a:hover, nav.links a.active { color: var(--hdr-hi); }
nav.links a.active { text-shadow: 0 0 16px rgba(255,255,255,0.25); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--hdr-text); margin: 5px 0; transition: var(--t); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; cursor: pointer;
  font-family: "Barlow", sans-serif; font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid var(--line2); background: transparent; color: var(--text);
  transition: var(--t);
}
.btn:hover { border-color: var(--amber); color: var(--amber-dim); }
.btn-amber {
  border: 1px solid var(--amber); background: var(--amber); color: #fff;
}
.btn-amber:hover { background: var(--amber-dim); border-color: var(--amber-dim); color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% -20%, rgba(196,132,0,0.06), transparent 55%), var(--bg);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 13vw, 132px) clamp(20px, 5vw, 48px) clamp(52px, 10vw, 96px);
  text-align: center;
}
.hero h1 { margin: 0 0 0.25em; }
.hero .lede {
  max-width: 620px; margin: 0 auto 2rem;
  color: var(--text-dim); font-size: 1.18rem; font-weight: 300;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.band { padding: clamp(56px, 10vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-dim); margin: 0.5rem 0 0; }

/* ── Gallery / work grid ────────────────────────────────────────────────── */
.grid {
  display: grid; gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: var(--t); box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.card:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(0,0,0,0.35); }
.card .media {
  aspect-ratio: 4 / 3; background: var(--bg3);
  display: grid; place-items: center; overflow: hidden;
}
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.04); }
.card .media.placeholder {
  color: var(--amber); opacity: 0.55; font-family: "Cormorant Garamond", serif; font-size: 2.6rem;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0 12px, transparent 12px 24px),
    var(--bg3);
}
.card .body { padding: 18px 20px 22px; }
.card .kicker { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); }
.card h3 { margin: 6px 0 6px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line2); color: var(--amber-dim);
}
a.card { color: inherit; }
a.card:hover { color: inherit; }

/* three-up feature tiles */
.tiles { display: grid; gap: clamp(16px,2.4vw,28px); grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; background: var(--bg2);
  transition: var(--t);
}
.tile:hover { border-color: var(--amber); }
.tile .num { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; color: var(--amber); letter-spacing: .2em; }
.tile h3 { margin: 10px 0 8px; }
.tile p { color: var(--text-dim); margin: 0 0 14px; font-size: 0.98rem; }
.tile a.more { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-dim); font-weight: 500; }
.tile a.more:hover { color: var(--amber); }

/* ── Coming-soon / notice ───────────────────────────────────────────────── */
.notice {
  text-align: center; border: 1px dashed var(--line2); border-radius: var(--radius);
  padding: clamp(40px, 8vw, 72px) 24px; background: var(--bg2);
}
.notice h2 { margin-bottom: 0.3em; }
.notice p { color: var(--text-dim); max-width: 520px; margin: 0 auto 1.4rem; }

/* ── Prose (about / privacy / how-to) ───────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; }
.prose p, .prose ul, .prose ol { color: var(--text); margin: 0 0 1.2rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--amber-dim); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.6rem 0; }
.prose blockquote {
  margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 2px solid var(--amber); color: var(--text-dim);
  font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-style: italic;
}
.prose code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.86em; background: var(--bg3); padding: 2px 6px; border-radius: 3px; }

/* ── Footer (light) ─────────────────────────────────────────────────────── */
footer.site {
  padding: clamp(40px, 7vw, 72px) 0 40px;
  color: var(--text-mute); font-size: 0.9rem;
}
footer.site .foot-grid {
  display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start;
}
footer.site .brand-word { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--text-dim); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
footer.site nav a:hover { color: var(--amber); }
footer.site .fine { margin-top: 28px; font-size: 0.8rem; color: var(--text-mute); }

/* ── Category covers → slideshow (Work) ─────────────────────────────────── */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery-cat { margin: 0; }
.cat-cover {
  display: block; position: relative; width: 100%; margin: 0; padding: 0;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg3); transition: var(--t);
}
.cat-cover:hover { border-color: var(--amber); }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat-cover:hover img { transform: scale(1.04); }
.cat-cover-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 44px 18px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
}
.cat-cover-label strong { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.8rem; }
.cat-cover-label span { font-family: "Barlow", sans-serif; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.photo-set { display: none; }   /* data source for the slideshow; not rendered on the page */

/* ── Lightbox slideshow (click a category → flip through its photos) ─────── */
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 201;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.10); color: #fff; font-size: 30px; line-height: 1; transition: background var(--t);
}
.lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-count { position: fixed; top: 20px; left: 22px; z-index: 201; color: rgba(255,255,255,0.7); font-family: "Barlow", sans-serif; font-size: 0.85rem; letter-spacing: 0.12em; }
@media (max-width: 560px) { .lb-nav { width: 44px; height: 44px; font-size: 24px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 4vmin;
  background: rgba(8,8,9,0.94);
}
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; max-height: 94vh; }
.lb-fig img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,0.65);
  background: #111;
}
.lb-fig figcaption {
  margin-top: 16px; text-align: center; max-width: 640px;
  color: #d9dbe0; font-family: "Barlow", sans-serif; font-size: 1rem; line-height: 1.5;
}
.lb-fig figcaption strong {
  display: block; margin-bottom: 2px;
  color: #fff; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.4rem;
}
.lb-close {
  position: fixed; top: 16px; right: 20px; width: 46px; height: 46px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.10); color: #fff; font-size: 28px; line-height: 1;
  transition: background var(--t);
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--hdr-bg); border-bottom: 1px solid rgba(255,255,255,0.10);
    max-height: 0; overflow: hidden; transition: max-height var(--t);
  }
  nav.links.open { max-height: 340px; }
  nav.links a { padding: 14px clamp(20px,5vw,48px); width: 100%; border-top: 1px solid rgba(255,255,255,0.08); }
}
