/* The Blackwood Cobbler — mobile-first. Palette pulled from the brand board:
   charcoal ink, copper, cream paper, forest green. */
:root {
  --ink: #211d19;
  --ink-soft: #5c544a;
  --paper: #f6f1e8;
  --paper-alt: #ece4d6;
  --copper: #97552c;
  --copper-lt: #b8703f;
  --forest: #3c4a3a;
  --rule: #d8ccb8;
  --measure: 64ch;
  --pad: clamp(1.15rem, 5vw, 2.5rem);
  --header-h: 4rem;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.25vw, 1.09rem)/1.68 ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.3rem); }
h3 { font-size: 1.08rem; letter-spacing: 0.02em; }

p { margin: 0 0 1em; }
a { color: var(--copper); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600;
  color: var(--copper); margin: 0 0 1.1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.4rem 1.5rem; padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; margin-right: auto;
  text-decoration: none; color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.brand img { width: 34px; height: auto; }
.nav {
  display: flex; gap: 1.15rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
}
.nav a {
  text-decoration: none; color: var(--ink-soft);
  display: flex; align-items: center; min-height: 44px; white-space: nowrap;
}
.nav a:hover { color: var(--copper); }

/* Phone: brand on its own line, nav as a single swipeable row.
   Wrapping the five links stacked the header to 153px and buried anchor targets. */
@media (max-width: 46rem) {
  :root { --header-h: 5.6rem; }
  .site-header .wrap { padding-block: 0.35rem; row-gap: 0; }
  .brand { flex: 1 0 100%; min-height: 40px; }
  .nav {
    flex: 1 0 100%; overflow-x: auto; gap: 1.1rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { min-height: 40px; }
}

/* Very narrow phones (SE-class, 320px): tighten the nav so all five links fit
   without needing a swipe. The scrollable strip above stays as the fallback. */
@media (max-width: 22rem) {
  .nav { gap: 0.7rem; font-size: 0.7rem; letter-spacing: 0.05em; }
  .brand { font-size: 0.74rem; letter-spacing: 0.1em; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: 0.8em 1.4em;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background .15s, color .15s;
}
.btn:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { background: var(--paper-alt); border-bottom: 1px solid var(--rule); padding-block: clamp(2.75rem, 9vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 6vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { max-width: var(--measure); font-size: 1.13em; color: var(--ink-soft); }
.hero-mark { width: min(230px, 55%); justify-self: center; opacity: 0.92; }

@media (min-width: 46rem) {
  .hero-grid { grid-template-columns: 1.35fr 0.65fr; }
  .hero-mark { width: 100%; max-width: 300px; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(2.75rem, 8vw, 5rem); }
section + section { border-top: 1px solid var(--rule); }
section > .wrap > p { max-width: var(--measure); color: var(--ink-soft); }
.section-alt { background: var(--paper-alt); }

.grid { display: grid; gap: clamp(1rem, 3vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }

/* ---------- service cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.4rem 1.35rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.section-alt .card { background: var(--paper); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); font-size: 0.95em; margin-bottom: 0.9em; }
.card ul { margin: auto 0 0; padding: 0; list-style: none; font-size: 0.9em; }
.card li { padding: 0.34em 0 0.34em 1.15em; position: relative; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.card li:first-child { border-top: 0; }
.card li::before { content: "—"; position: absolute; left: 0; color: var(--copper); }

/* ---------- figures ---------- */
figure { margin: 0; }
.shot img, .stack-img {
  width: 100%; border: 1px solid var(--rule);
  background: var(--paper-alt);
  aspect-ratio: 16 / 9; object-fit: cover;
}
.shot figcaption { margin-top: 0.7rem; font-size: 0.9em; color: var(--ink-soft); }
.shot figcaption strong { color: var(--ink); }
/* portrait sources, cropped to a common frame so columns stay level */
.img-tall { aspect-ratio: 3 / 4; object-position: center 58%; }
.img-belt { object-position: center 42%; }
.shot--pair img { aspect-ratio: 4 / 3; }

/* ---------- gallery tiles ---------- */
/* Four tiles, so the column count is set explicitly: 1 / 2 / 4.
   auto-fit picks 3 at some widths and always strands the fourth tile alone. */
.gallery {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin: 2rem 0 0;
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; }
.tile img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 1px solid var(--rule); background: var(--paper-alt);
}
.tile figcaption {
  margin-top: 0.75rem; font-size: 0.9em; line-height: 1.55; color: var(--ink-soft);
}
.tile figcaption strong { display: block; color: var(--ink); margin-bottom: 0.15em; }
.pair-block { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- contact ---------- */
.contact { list-style: none; padding: 0; margin: 1.4rem 0; }
.contact li { padding: 0.5em 0; border-bottom: 1px solid var(--rule); }
/* 19px inline links were well under the 44px touch minimum */
.contact a { display: inline-flex; align-items: center; min-height: 44px; }
.contact li:first-child { border-top: 1px solid var(--rule); }
.contact .lbl {
  display: block; font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.15em;
}
.note { font-size: 0.9em; font-style: italic; color: var(--ink-soft); }

blockquote {
  margin: 2rem 0 0; padding: 0 0 0 1.3rem;
  border-left: 3px solid var(--copper);
  font-size: 1.12em; font-style: italic; color: var(--ink);
  max-width: var(--measure);
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cbc2b4; padding-block: clamp(2.5rem, 7vw, 3.75rem); }
.site-footer a { color: #e0b591; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: var(--paper); }
.footer-mark { width: 74px; margin-bottom: 1.25rem; filter: invert(1) sepia(1) saturate(0.25) brightness(1.25); }
.site-footer p { margin: 0.3em 0; font-size: 0.95em; }
.fine { margin-top: 1.4rem !important; font-size: 0.82em !important; color: #9a9084; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- updates ---------- */
.updates { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem; }
.update {
  display: grid; gap: clamp(1rem, 3vw, 1.75rem);
  background: var(--paper-alt); border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 1.5rem);
}
.update-media video {
  width: 100%; max-width: 340px; height: auto; display: block;
  background: #000; border: 1px solid var(--rule);
}
.update-body { align-self: center; }
.update-body h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); margin-bottom: 0.35em; }
.update-body p { color: var(--ink-soft); margin-bottom: 0; }
.update-date {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 0.6rem !important;
}
@media (min-width: 44rem) {
  .update { grid-template-columns: minmax(0, 340px) 1fr; align-items: center; }
}
