/* Vancouver Portrait — Squarespace-inspired editorial theme */
:root {
  --bg: #faf8f5;
  --bg-alt: #f2eee7;
  --ink: #191512;
  --muted: #6e675e;
  --accent: #9c5732;
  --line: #e4ddd2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); color: var(--ink); }
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.78rem; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand span { color: var(--accent); font-style: italic; }
.nav-desktop { display: flex; gap: 1.6rem; }
.nav-desktop a {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a.active { color: var(--ink); border-bottom-color: var(--accent); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.25s, opacity 0.25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.btn { margin-top: 1rem; text-align: center; border-bottom: 0; color: #fff; }

@media (max-width: 860px) {
  .nav-desktop, .header-cta { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy .lede { margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { border-radius: 4px; box-shadow: 0 24px 60px -24px rgba(25, 21, 18, 0.35); }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: -1;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-right: 1.25rem; }
}

/* ---------- sections ---------- */
.mediums { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--bg-alt); }
.mediums h2 { margin-bottom: 2.5rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(25, 21, 18, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(25, 21, 18, 0.25); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3 { padding: 1.2rem 1.4rem 0.2rem; }
.card p { padding: 0 1.4rem; color: var(--muted); font-size: 0.95rem; }
.card-link {
  display: block;
  padding: 0.9rem 1.4rem 1.3rem;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}
@media (max-width: 800px) { .card-grid { grid-template-columns: 1fr; } }

.about { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid p { margin-bottom: 1.1rem; }
.about-grid .btn-ghost { margin-top: 0.5rem; }
.about-art img { border-radius: 4px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.quote-band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--bg-alt);
  text-align: center;
}
.quote-band blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 48rem;
  margin: 0 auto 1rem;
}
.quote-band cite { display: block; font-style: normal; color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

.cta-band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 36rem; margin: 0 auto 1.8rem; }

/* ---------- interior pages ---------- */
.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-head h1 { margin-bottom: 1.2rem; }
.page-head .lede { margin-bottom: 2rem; max-width: 40rem; }
.page-head .lede a { color: var(--accent); }
.subnav { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 1.4rem; }
.subnav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: all 0.15s;
}
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.page-body { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.prose { max-width: 860px; }
.prose p { margin-bottom: 1.15rem; }
.prose h2, .prose h3 {
  margin: 2.4rem 0 1rem;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.3rem 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--accent); text-decoration-color: rgba(156, 87, 50, 0.4); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.3rem;
  margin: 0 0 1.3rem;
  color: var(--muted);
}
.prose .float-img {
  border-radius: 4px;
  margin: 0.3rem 0 1rem;
}
@media (min-width: 640px) {
  .prose .float-img { float: left; width: min(320px, 42%); margin: 0.3rem 1.6rem 1rem 0; }
}
.t-card {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 0 0 1.3rem;
}
.prose .t-card img, .prose .t-card .float-img {
  width: 96px;
  border-radius: 999px;
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
  float: none;
  margin: 0;
}
.t-card figcaption { flex: 1; }
.prose .t-card blockquote {
  border: 0;
  padding: 0;
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.t-card .t-source {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 540px) { .t-card { flex-direction: column; } }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.prose table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.95rem; }
.prose td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:first-child td { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.prose td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.8rem 0 2.2rem;
  clear: both;
}
.g-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
  aspect-ratio: 1;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}
.g-item:hover img { transform: scale(1.045); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 15, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.6rem 1rem;
  transition: color 0.15s;
}
.lightbox button:hover { color: #fff; }
.lb-close { top: 0.8rem; right: 0.8rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
}
.footer-brand { font-size: 1.3rem; margin-bottom: 0.7rem; }
.footer-note { color: var(--muted); font-size: 0.92rem; }
.footer-head {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-grid nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.22rem 0;
}
.footer-grid nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.2rem; padding-bottom: 1.6rem; }
.footer-bottom p { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
