/* ------------------------------------------------------------------
   Bjark — stylesheet
   Palette:  paper #F7F1E6 · ink #1C1813 · honey #E0A340 · stone #8B8072 · card #FFFDF8
   Type:     Bricolage Grotesque (display) · Hanken Grotesk (body/ui)
------------------------------------------------------------------ */

:root {
  --paper:  #F7F1E6;
  --card:   #FFFDF8;
  --ink:    #1C1813;
  --stone:  #8B8072;
  --honey:  #E0A340;
  --honey-deep: #C6892B;
  --line:   #E6DDCC;

  --shadow: 0 1px 2px rgba(28,24,19,.05), 0 8px 24px rgba(28,24,19,.08);
  --shadow-lift: 0 4px 10px rgba(28,24,19,.10), 0 18px 42px rgba(28,24,19,.16);

  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .4ch;
}
.brand .dot { color: var(--honey); }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: rgba(28,24,19,.06); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- hero (landing) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 88px);
}
.hero-copy h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: .86;
  letter-spacing: -.045em;
  margin: 0;
}
/* hand-drawn honey underline under the wordmark */
.hero-copy h1 .u {
  position: relative;
  display: inline-block;
}
.hero-copy h1 .u::after {
  content: "";
  position: absolute; left: -.04em; right: -.04em; bottom: -.06em;
  height: .14em;
  background: var(--honey);
  border-radius: 999px;
  transform: rotate(-1.2deg);
}
.hero-copy .lede {
  margin: 26px 0 34px;
  font-size: 1.15rem;
  max-width: 34ch;
  color: #4a4238;
}
/* Placeholder line — easy to edit or delete later */
.hero-copy .lede.placeholder { color: var(--stone); font-style: italic; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .6ch;
  background: var(--bg); color: var(--fg);
  text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid var(--bg);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: rgba(28,24,19,.05); }
.btn .arw { transition: transform .16s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* hero image — softly framed, gentle tilt */
.hero-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.4deg);
  background: var(--card);
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--honey); color: #241a06;
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- page header (gallery / slideshow entry) ---------- */
.page-head { padding: 20px 0 8px; }
.page-head .eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--honey-deep);
}
.page-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 6px 0 4px;
}
.page-head p { margin: 0 0 8px; color: var(--stone); }

/* ---------- gallery grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 18px 0 64px;
}
.tile {
  position: relative;
  border: 0; padding: 0; margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  outline-offset: 3px;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile:focus-visible { outline: 3px solid var(--honey); }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s var(--ease);
}
.tile:hover img { transform: scale(1.04); }
.tile .badge {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(28,24,19,.62); color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(2px);
}
.tile .badge svg { width: 15px; height: 15px; margin-left: 2px; }
.tile .dur {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(28,24,19,.72); color: #fff;
  font-size: .74rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
}

.empty {
  padding: 60px 0; text-align: center; color: var(--stone);
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  margin: 24px 0 60px;
}

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20,16,12,.9);
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.lb.open { display: flex; }
.lb-stage {
  max-width: min(1200px, 96vw); max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 90vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  background: #000;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
  transition: background .16s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
.lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center; font-size: 20px;
}
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-count {
  position: absolute; top: 22px; left: 22px;
  color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- slideshow ---------- */
body.slideshow-page { background: #14100c; color: #f4ede1; }
.show {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.show-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.show-img.active { opacity: 1; }
.show-controls {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 8px;
  background: rgba(20,16,12,.55);
  backdrop-filter: blur(8px);
  padding: 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
}
.show-controls button {
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer;
  background: transparent; color: #f4ede1;
  display: grid; place-items: center;
  transition: background .16s var(--ease);
}
.show-controls button:hover { background: rgba(255,255,255,.14); }
.show-controls button:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.show-controls svg { width: 20px; height: 20px; }
.show-home {
  position: fixed; top: 20px; left: 20px; z-index: 10;
  text-decoration: none; font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; letter-spacing: -.02em; font-size: 1.1rem;
  color: #f4ede1;
}
.show-home .dot { color: var(--honey); }
.show-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 10;
  background: var(--honey); width: 0;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--stone); font-size: .9rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.foot a { color: var(--stone); }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { transform: none; max-width: 440px; margin-inline: auto; width: 100%; }
  .nav a { padding: 8px 11px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .show-img { transition: opacity .001ms; }
}
