/* ============================================================
   LIGHT MODE — Wada Sanzo palette
   A Dictionary of Color Combinations (1933)
   ============================================================

   Palette in use: "Slate Blue / Pale Stone" (Option A)
   --color-bg:        #e8edf2  (pale blue stone)
   --color-surface:   #dde4ec  (light slate)
   --color-border:    #c9d4de  (stone edge)
   --color-text:      #2e3d4f  (deep slate ink)
   --color-muted:     #8fa3b8  (ash blue)
   --color-accent:    #8fa3b8  (slate accent)
   --color-caption:   rgba(46,61,79,0.88)

   ── Other Wada Sanzo combinations to try ──────────────────
   "Dusty Teal / Celadon" (Option C)
   --color-bg:      #e6efee; --color-surface:  #d4e5e3;
   --color-border:  #b8d0cc; --color-text:     #1e3432;
   --color-muted:   #6a9e98; --color-accent:   #6a9e98;
   --color-caption-bg: rgba(30,52,50,0.88); --color-header-bg: #e6efee;
   --color-btn-hover:  #b8d0cc;

   "Warm Ochre / Golden Sand" (Option B)
   --color-bg: #f5eddb; --color-surface: #ede0c0;
   --color-border: #e0cc9e; --color-text: #3a2e18;
   --color-muted: #b89050; --color-accent: #c9a050;

   "Lacquer Red / Warm Ash / Cream"
   --color-bg: #f2ede6; --color-accent: #b85c4a; --color-text: #2e2820;

   "Indigo Wash / Pale Clay / Warm White"
   --color-bg: #ece9e4; --color-accent: #7b8fa1; --color-text: #282830;
   ============================================================ */
@font-face {
    font-family: "ReadyActive";
    src: url("../fonts/ReadyActive-Light.otf");
}

@font-face {
  font-family: "Compagnon";
  src: url("../fonts/Compagnon/Compagnon-Light.woff");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Compagnon";
  src: url("../fonts/Compagnon/Compagnon-Italic.woff");
  font-style: italic;
  font-weight: 400;
}

:root {
  --color-bg:        #e8edf2;
  --color-surface:   #dde4ec;
  --color-border:    #c9d4de;
  --color-text:      #2e3d4f;
  --color-muted:     #8fa3b8;
  --color-accent:    #8fa3b8;
  --color-caption-bg: rgba(46, 61, 79, 0.85);
  --color-caption-text: #e8edf2;
  --color-header-bg: #e8edf2;
  --color-btn-hover: #c9d4de;

  --gutter: 20px;
  --header-height: 130px;
  --radius: 2px;
  --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}



/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 24px;
  transition: background-color var(--transition), border-color var(--transition);
}

/* ── Floating Controls ───────────────────────────────── */
/* Fixed over the page, vertically centred within the
   header row, transparent — floats above content. */
.controls-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: var(--header-height);
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 24px;
  background: transparent;
  pointer-events: none;
}

.controls-bar .icon-btn {
  pointer-events: all;
}

.header-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-title {
  text-align: center;
  margin-top: 10px;
  padding-left: 7%;
}

.header-title h1 {
  font-family: 'Compagnon';
  font-size: 2rem;
  line-height: .7;
  font-style: normal;
  font-weight: lighter;
  /* letter-spacing: 0.18em;
  text-transform: uppercase; */
  color: var(--color-text);
  transition: color var(--transition);
}

.header-title h1 em{
  font-size: 1rem;
  line-height: 1.25;
}
.header-title h1 p::first-letter {
  font-size: 3rem;
  font-family: "ReadyActive";
}
.header-title h2{
  font-family: 'Compagnon';
  font-size: 1rem;
  line-height: 2.7;
  font-style: normal;
  font-weight: lighter;
}

.header-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.header-menu a {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.header-menu a:hover { color: var(--color-text); }

/* ── Icon Buttons ───────────────────────────────────── */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--color-muted);
}

.icon-btn:hover {
  /* background: var(--color-btn-hover); */
  color: var(--color-text);
}

.icon-btn svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color var(--transition);
}

/* ── Main Content ───────────────────────────────────── */
.site-main {
  padding: var(--gutter);
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Masonry Grid ───────────────────────────────────── */
/* Masonry JS handles positioning; items have fixed width. */
.masonry-grid {
  position: relative;
}

/* ── Gallery Item ───────────────────────────────────── */
.gallery-item {
  width: 500px;
  margin-bottom: var(--gutter);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: default;
}

.gallery-item img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius);
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  /* transform: scale(1.015); */
}

@media (max-width: 640px) {
  .gallery-item { width: 100%; }
}

/* ── Caption Overlay ────────────────────────────────── */
.caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-caption-bg);
  color: var(--color-caption-text);
  padding: 20px 16px 16px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.32s ease;
  opacity: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.caption-overlay.visible {
  transform: translateY(0);
  opacity: 1;
}

.caption-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--color-accent);
}

.caption-desc {
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* ── Placeholder (no image) ─────────────────────────── */
.gallery-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
  transition: color var(--transition), border-color var(--transition);
}

/* ── About Page ─────────────────────────────────────── */
.about-wrap {
  max-width: 560px;
  margin: 80px auto;
  padding: 17px 43px;
  border: 1px solid var(--color-border);
}

.about-wrap h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.about-wrap p {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.about-wrap a {
  color: var(--color-accent);
  text-decoration: none;
}

.about-wrap a:hover { text-decoration: underline; }

/* ── Empty State ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
