/* Shared styles for every page: brand tokens, base type, header, footer,
   and the dashed photo-frame placeholder. Page-specific layout stays in each
   page's own <style> block, which loads after this file and can override it. */

:root {
  --ink: #1E2A1D; --bg: #F0EFE5; --card: #FAF9F3; --needle: #45624A; --needle-dark: #2E4432;
  --bark: #7A4632; --gold: #B8862F; --line: #D9D4C4; --muted: #6B6F5F;
  box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #171C15; --card: #1F251C; --ink: #EDEAE0; --muted: #A3A08F; --line: #333829; }
}
:root[data-theme="dark"] { --bg: #171C15; --card: #1F251C; --ink: #EDEAE0; --muted: #A3A08F; --line: #333829; }
html { scroll-padding-top: 72px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Lora', 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; color: var(--ink); }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- header ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: 'Lora', 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; }
nav.links { display: flex; gap: 22px; font-size: 0.92rem; flex-wrap: wrap; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a.active { color: var(--needle); font-weight: 600; }
nav.links a:hover { color: var(--needle); }
.cta { background: var(--needle); color: #fff; padding: 9px 18px; border-radius: 3px; text-decoration: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.cta:hover { background: var(--needle-dark); }

/* ---------- photo-frame placeholder (use for any missing photo) ---------- */
.photo-frame {
  position: relative; border-radius: 4px; border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, var(--card), var(--card) 10px, color-mix(in srgb, var(--card) 92%, var(--ink)) 10px, color-mix(in srgb, var(--card) 92%, var(--ink)) 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px; color: var(--muted);
}
.photo-frame svg { width: 30px; height: 30px; margin-bottom: 10px; opacity: 0.55; }
.photo-frame .cap { font-size: 0.85rem; max-width: 24ch; }
.photo-frame .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bark); margin-top: 8px; opacity: 0.8; }
figure.photo-frame { margin: 0; }
.photo-frame.filled { padding: 0; border-style: solid; overflow: hidden; background: var(--card); }
.photo-frame.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame.filled figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 12px; text-align: left;
  color: #fff; font-size: 0.85rem; background: linear-gradient(to top, rgba(20,28,18,0.75), rgba(20,28,18,0));
}

/* ---------- footer ---------- */
footer {
  background: var(--needle-dark); color: #EDEAE0; padding: 56px 0 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
footer h2 { color: #fff; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
footer a.cta { display: inline-block; margin-top: 22px; }
footer .addr { font-size: 0.95rem; opacity: 0.85; line-height: 1.8; }
footer .fine { margin-top: 34px; font-size: 0.8rem; opacity: 0.6; }

.menu-toggle { display: none; }

@media (max-width: 820px) {
  footer .wrap { grid-template-columns: 1fr; }

  /* Phone header: brand, CTA, menu button. The links drop down below the header. */
  .nav-inner { gap: 16px; }
  .nav-inner > .cta { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 3;
    width: 40px; height: 40px; margin-right: -8px; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 28px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  header.site-nav.menu-open nav.links { display: flex; }
  nav.links a { padding: 10px 0; font-size: 1rem; }
}
@media (max-width: 520px) {
  /* No room for the header button; the menu's Visit link leads to the same contact button. */
  .nav-inner > .cta { display: none; }
}
