/* Black Pepper Woodworking. Palette: neutral zinc + terracotta accent, auto light/dark.
   Radius rule: images and cards 14px, buttons and inputs 8px. */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f7f7f6;
  --surface: #efefed;
  --text: #1b1b1d;
  --muted: #5b5b60;
  --accent: #a34d24;
  --accent-ink: #ffffff;
  --line: #dddddb;
  --r-img: 14px;
  --r-ui: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151517;
    --surface: #1e1e21;
    --text: #ececea;
    --muted: #a3a3a8;
    --accent: #d1794b;
    --accent-ink: #1b1b1d;
    --line: #2e2e32;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  font-weight: 380;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--r-img); }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 16px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 0.6em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 0.8em 0 1.4em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* nav */
.nav-wrap { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 450; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
@media (max-width: 560px) {
  .nav { height: auto; flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; gap: 8px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .wordmark span { display: inline; }
}

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--r-ui); text-decoration: none; font-weight: 550; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform 0.08s ease, background 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.text-link { color: var(--accent); font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 24px; }
.hero-media img { box-shadow: 0 24px 60px rgb(60 40 25 / 0.14); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } }

.section { padding: 72px 24px; }
.section-top { padding-top: 48px; padding-bottom: 72px; }

/* featured tiles */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tile { display: flex; flex-direction: column; text-decoration: none; }
.tile-wide { grid-row: span 2; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-wide img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; object-fit: cover; }
.tile-label { display: flex; flex-direction: column; padding: 12px 4px 0; }
.tile-label strong { font-weight: 600; }
.tile-label span:last-child { color: var(--muted); font-size: 0.92rem; }
.tile:hover img { filter: brightness(1.05); }
.after-grid { margin-top: 22px; }
@media (max-width: 700px) { .feat-grid { grid-template-columns: 1fr; } .tile-wide { grid-row: auto; } }

/* process band */
.band { background: var(--surface); padding: 64px 0; }
.band-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.band-copy p { color: var(--muted); max-width: 38ch; }
.band-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.band-photos img { aspect-ratio: 3 / 4; object-fit: cover; height: 100%; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* about teaser */
.about-teaser { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.about-teaser p { max-width: 52ch; }
@media (max-width: 700px) { .about-teaser { grid-template-columns: 1fr; gap: 20px; } .about-teaser-media { max-width: 200px; } }

.cta-final { text-align: center; padding-top: 48px; }
.cta-final .lede { margin-left: auto; margin-right: auto; }

/* projects grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.card { text-decoration: none; display: block; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { display: flex; flex-direction: column; padding: 12px 4px 0; }
.card-body strong { font-weight: 600; }
.card-body span:last-child { color: var(--muted); font-size: 0.92rem; }
.card:hover img { filter: brightness(1.05); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* project detail */
.project-copy { max-width: 62ch; margin: 20px 0 36px; }
.project-copy p + p { margin-top: 0.8em; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 940px; }
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: 1fr; } }

.pn { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 24px 0 0; border-top: 1px solid var(--line); max-width: 940px; }
.pn a { text-decoration: none; display: flex; flex-direction: column; }
.pn a:hover strong { color: var(--accent); }
.pn-next { text-align: right; margin-left: auto; }

/* gallery */
.gal-row { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); margin-top: 44px; }
.gal-row:first-of-type { border-top: 0; margin-top: 12px; }
.gal-copy p { max-width: 44ch; }
.gal-copy p + p { margin-top: 0.7em; }
.gal-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-photos .photo:first-child { grid-column: span 3; }
.gal-photos .photo:first-child img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .gal-row { grid-template-columns: 1fr; gap: 20px; } }

/* about page */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; margin-top: 24px; align-items: start; }
.about-grid p { max-width: 58ch; }
.about-grid p + p { margin-top: 0.9em; }
.about-media { display: grid; gap: 20px; max-width: 340px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* contact */
.contact form { max-width: 560px; margin: 8px 0 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 550; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-ui); padding: 11px 12px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
#cstatus { margin-top: 14px; font-weight: 500; min-height: 1.4em; }
#cstatus.ok { color: var(--accent); }
#cstatus.err { color: #c0392b; }
@media (prefers-color-scheme: dark) { #cstatus.err { color: #e07b6f; } }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 24px; }
.footer .muted { max-width: 40ch; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile img, .card img { transition: none; }
}
