/* ============================================================
   Le Musée de Bryanna — house style
   Mobile-first. Museum aesthetic: cream walls, brass accents,
   serif display type, generous whitespace.
   ============================================================ */

:root {
  --paper:      #faf8f3;  /* gallery wall / page background */
  --paper-2:    #f3efe6;  /* slightly darker panel */
  --ink:        #1d1b18;  /* primary text */
  --ink-soft:   #5c564d;  /* secondary text */
  --brass:      #a8895a;  /* accent / rules / links */
  --brass-deep: #8a6d42;
  --line:       #e3ddd0;  /* hairline rules */
  --card:       #ffffff;
  --shadow:     0 6px 24px rgba(40, 33, 20, 0.08);
  --shadow-lg:  0 14px 50px rgba(40, 33, 20, 0.14);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 920px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brass-deep); text-underline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  margin: 0 0 1rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

section.wing { padding: 56px 0 72px; }

.wing-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.wing-head p { color: var(--ink-soft); margin: .2rem 0 0; }

.rule {
  width: 64px; height: 1px; background: var(--brass);
  border: 0; margin: 18px auto 26px;
}

/* ---------- top nav ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .3px;
  display: flex; align-items: baseline; gap: .5ch; line-height: 1;
}
.brand .est { font-family: var(--sans); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-deep); }

.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* mobile: nav drops below the brand row as a full-width panel */
.nav-links { display: none; flex-basis: 100%; }
.nav-links a {
  display: block; padding: 14px 6px; text-decoration: none;
  color: var(--ink); border-top: 1px solid var(--line);
  font-size: .95rem; letter-spacing: .02em;
}
.nav-links a[aria-current="page"] { color: var(--brass-deep); }
.nav-links.open { display: block; }

/* desktop: brand left, nav right, all on one aligned row */
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-links, .nav-links.open {
    display: flex; align-items: center; gap: 4px; flex-basis: auto; border: 0;
  }
  .nav-links a {
    border: 0; padding: 8px 12px; border-radius: 8px; font-size: .9rem;
  }
  .nav-links a:hover { background: var(--paper-2); }
}

/* ---------- entrance / hero ---------- */
.entrance {
  min-height: calc(100svh - 63px);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 22px 64px;
}
.entrance .crest {
  width: 58px; height: 58px; margin-bottom: 26px; opacity: 0;
  animation: fade-up .9s ease .1s forwards;
}
.entrance h1 { opacity: 0; animation: fade-up 1s ease .25s forwards; }
.entrance .tagline {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--ink-soft); margin: .2rem 0 1.4rem; opacity: 0;
  animation: fade-up 1s ease .5s forwards;
}
.entrance .plate {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-deep); opacity: 0; animation: fade-up 1s ease .75s forwards;
}
.entrance .plate span { color: var(--ink-soft); }
.enter-links {
  margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; opacity: 0; animation: fade-up 1s ease 1s forwards;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-size: .9rem; letter-spacing: .04em;
  border: 1px solid var(--brass); color: var(--brass-deep); background: transparent;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--brass); color: #fff; }
.btn.solid { background: var(--brass); color: #fff; }
.btn.solid:hover { background: var(--brass-deep); }

/* ---------- portrait gallery ---------- */
.gallery { display: grid; gap: 30px; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; gap: 36px; } }

.frame {
  background: var(--card); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.frame .art { background: var(--paper-2); aspect-ratio: 4 / 5; }
.frame .art img { width: 100%; height: 100%; object-fit: cover; }
.frame .placard { padding: 16px 18px 20px; }
.frame .placard .t { font-family: var(--serif); font-size: 1.25rem; }
.frame .placard .meta { font-size: .8rem; color: var(--brass-deep);
  letter-spacing: .08em; text-transform: uppercase; margin: 2px 0 8px; }
.frame .placard .desc { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- timeline (permanent collection) ---------- */
.timeline { position: relative; max-width: 680px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.event { position: relative; padding: 0 0 34px 40px; }
.event::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
}
.event .date { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-deep); font-weight: 600; }
.event .et { font-family: var(--serif); font-size: 1.4rem; margin: 2px 0 6px; }
.event .ed { color: var(--ink-soft); margin: 0; }
.event .ephoto { margin-top: 12px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.event .ephoto img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* ---------- travel ---------- */
#map {
  position: relative;
  height: 340px; width: 100%; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 36px;
  background: #ece3d4; z-index: 1;
}
@media (min-width: 720px) { #map { height: 460px; } }

/* warm, aged-paper tint so the map reads as a museum artifact, not a plugin
   (only the map tiles are tinted; the brass markers stay crisp on top) */
#map .leaflet-tile-pane { filter: sepia(0.42) saturate(0.92) brightness(1.05) contrast(0.92); }

/* soft inner frame + vignette, like a framed exhibit */
#map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 450;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(168,137,90,0.30), inset 0 0 70px rgba(80,58,28,0.14);
}

/* zoom control, restyled to the museum palette */
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a {
  background: var(--card) !important; color: var(--brass-deep) !important;
  border: 1px solid var(--line) !important; width: 32px !important; height: 32px !important;
  line-height: 30px !important; font-size: 17px !important;
}
.leaflet-control-zoom a:hover { background: var(--paper-2) !important; }
.leaflet-bar a:first-child { border-radius: 8px 8px 0 0 !important; }
.leaflet-bar a:last-child { border-radius: 0 0 8px 8px !important; }

/* quiet the attribution into a discreet credit line */
.leaflet-control-attribution {
  background: rgba(250,248,243,0.66) !important; font-size: 10px !important;
  color: var(--ink-soft) !important; padding: 1px 6px !important;
}
.leaflet-control-attribution a { color: var(--brass-deep) !important; }

.trips { display: grid; gap: 26px; }
@media (min-width: 720px) { .trips { grid-template-columns: 1fr 1fr; } }
.trip {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.trip .art { aspect-ratio: 3/2; background: var(--paper-2); }
.trip .art img { width: 100%; height: 100%; object-fit: cover; }
.trip .body { padding: 16px 18px 20px; }
.trip .place { font-family: var(--serif); font-size: 1.4rem; }
.trip .when { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-deep); margin: 2px 0 8px; }
.trip .story { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.leaflet-popup-content-wrapper { border-radius: 9px; box-shadow: var(--shadow); }
.leaflet-popup-content { font-family: var(--sans); margin: 12px 15px; }
.leaflet-popup-content b { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

/* ---------- cuisine / menus ---------- */
.menu {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); padding: 28px 26px 30px; max-width: 620px;
  margin: 0 auto 34px;
}
.menu .mhead { text-align: center; border-bottom: 1px solid var(--line);
  padding-bottom: 16px; margin-bottom: 18px; }
.menu .mhead .occasion { font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-deep); }
.menu .mhead .mtitle { font-family: var(--serif); font-size: 1.8rem; margin: 4px 0 2px; }
.menu .mhead .mdate { font-size: .85rem; color: var(--ink-soft); }
.course { padding: 14px 0; border-bottom: 1px dotted var(--line); }
.course:last-child { border-bottom: 0; }
.course .cname { font-family: var(--serif); font-size: 1.25rem; }
.course .ckind { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-deep); }
.course .chist { font-size: .92rem; color: var(--ink-soft); margin: 6px 0 0;
  font-style: italic; }

/* ---------- guestbook ---------- */
.gb-form {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 22px; max-width: 560px; margin: 0 auto 40px;
}
.gb-form label { display: block; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brass-deep); margin: 0 0 6px; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 1rem; background: var(--paper); color: var(--ink);
  margin-bottom: 16px; resize: vertical;
}
.gb-form input:focus, .gb-form textarea:focus { outline: 2px solid var(--brass); border-color: transparent; }
.gb-hp { position: absolute; left: -9999px; top: -9999px; } /* honeypot */
.gb-status { text-align: center; min-height: 1.4em; color: var(--brass-deep); font-size: .9rem; }

.entries { display: grid; gap: 16px; max-width: 620px; margin: 0 auto; }
.entry {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 16px 18px;
}
.entry .msg { margin: 0 0 10px; }
.entry .sig { display: flex; justify-content: space-between; align-items: baseline;
  font-size: .8rem; }
.entry .sig .name { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.entry .sig .date { color: var(--ink-soft); letter-spacing: .06em; }

/* ---------- empty-state placards ---------- */
.placeholder {
  border: 1px dashed var(--brass); border-radius: 8px; background: var(--paper-2);
  color: var(--brass-deep); text-align: center; padding: 34px 20px;
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
}

/* ---------- footer ---------- */
.museum-foot {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 30px 22px 50px; text-align: center; color: var(--ink-soft);
}
.museum-foot .name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.museum-foot .small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin-top: 6px; }

/* tasteful image fade-in */
.fade-img { opacity: 0; transition: opacity .6s ease; }
.fade-img.loaded { opacity: 1; }
