/* Laura Barnard Photography — shared tokens, nav, footer.
   Loaded on every page. scrollcraft.css supplies the base scale and
   utility classes (.sc-display, .sc-body, .sc-wrap, etc.); this file only
   themes it and adds the site's own chrome. */

:root {
  --sc-canvas:      #F6F1E9;
  --sc-surface:     #FFFFFF;
  --sc-ink:         #2A241D;
  --sc-ink-soft:    #766D60;
  --sc-accent:      #4E6B80;
  --sc-accent-soft: #B7C9D3;
  --sc-accent-ink:  #F6F1E9;

  --sc-font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sc-font-text:    "Outfit", system-ui, sans-serif;

  --lbp-nav-h: clamp(4.25rem, 6vw, 5.25rem);
}

html { background: var(--sc-canvas); }
body {
  background: var(--sc-canvas); color: var(--sc-ink);
  /* iOS paints a grey box over any tapped link/button. Focus rings below
     still show, so nothing is lost for keyboard users. */
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }

/* ---------------------------------------------------------------- nav */

.lbp-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  /* viewport-fit=cover lets content sit under the notch / Dynamic Island,
     so the bar has to grow by the inset rather than ignore it. */
  height: calc(var(--lbp-nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  /* Plain-rgba fallbacks first: color-mix() needs Safari 16.2+, and an
     unsupported value here would drop the bar's background entirely. */
  background: rgba(246, 241, 233, 0.86);
  background: color-mix(in oklab, var(--sc-canvas) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 36, 29, 0.1);
  border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
}

.lbp-nav__group { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.lbp-nav__group--left { justify-content: flex-start; }
.lbp-nav__group--right { justify-content: flex-end; }

.lbp-nav__link {
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide);
  text-transform: uppercase;
  color: var(--sc-ink);
  text-decoration: none;
  padding-block: 0.4rem;
  position: relative;
  white-space: nowrap;
}
.lbp-nav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--sc-accent);
  transition: right var(--sc-d-base) var(--sc-ease-out);
}
/* Invisible 44px-tall hit area, so the tap target meets the iOS minimum
   without padding the visible text and moving the underline. */
.lbp-nav__link::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 44px; translate: 0 -50%;
}
/* Ungated :hover sticks after a tap on touch devices. */
@media (hover: hover) and (pointer: fine) {
  .lbp-nav__link:hover::after { right: 0; }
}
.lbp-nav__link:focus-visible::after { right: 0; }

.lbp-nav__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--sc-ink);
  flex-shrink: 0;
}
.lbp-nav__mark img { width: clamp(2rem, 4vw, 2.5rem); height: auto; border-radius: 50%; }
.lbp-nav__mark-text {
  font-family: var(--sc-font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lbp-nav__toggle {
  display: none;
  place-items: center;
  min-width: 44px; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--sc-ink);
  padding: 0.5rem;
}
.lbp-nav__toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 860px) {
  .lbp-nav__group--left, .lbp-nav__group--right { display: none; }
  .lbp-nav__toggle { display: grid; }
  .lbp-nav__mark-text { font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .lbp-nav { padding-inline: 1rem; }
  .lbp-nav__mark-text { display: none; }
}

.lbp-drawer {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--sc-canvas);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sc-6);
  opacity: 0; pointer-events: none;
  transition: opacity var(--sc-d-slow) var(--sc-ease-out);
}
.lbp-drawer.is-open { opacity: 1; pointer-events: auto; }
.lbp-drawer__link {
  font-family: var(--sc-font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--sc-ink);
  text-decoration: none;
}
.lbp-drawer__close {
  position: absolute;
  top: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-top, 0px));
  right: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px;
  background: none; border: 0; cursor: pointer; color: var(--sc-ink);
}
.lbp-drawer__close svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------- footer */

.lbp-foot {
  padding-block: var(--sc-8) var(--sc-7);
  text-align: center;
  display: flex; flex-direction: column; gap: var(--sc-3);
  align-items: center;
}
.lbp-foot__mark { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); }
.lbp-foot__meta { font-family: var(--sc-font-text); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.lbp-foot__links { display: flex; gap: var(--sc-5); flex-wrap: wrap; justify-content: center; }
.lbp-foot__links a {
  color: var(--sc-ink-soft); text-decoration: underline; text-underline-offset: 3px;
  padding-block: 0.6rem; /* comfortable thumb target for the mailto / tel links */
}
@media (hover: hover) and (pointer: fine) {
  .lbp-foot__links a:hover { color: var(--sc-accent); }
}
.lbp-foot__placeholder { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); opacity: 0.7; }

/* --------------------------------------------------------- plain page */

.lbp-page {
  padding-top: calc(var(--lbp-nav-h) + env(safe-area-inset-top, 0px) + var(--sc-8));
  padding-bottom: calc(var(--sc-9) + env(safe-area-inset-bottom, 0px));
}
.lbp-page__head { padding-bottom: var(--sc-7); }
.lbp-page__eyebrow {
  font-family: var(--sc-font-text); font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-accent); margin: 0 0 var(--sc-3);
}
