/* =========================================================
   Ground & Down — styles
   Palette pulled straight from the logo: burnt clay on near-black
   ink, with bone for negative space. Stencil + industrial type.
   ========================================================= */

:root {
  --clay:     #bd7a48;   /* the logo's burnt-orange — the signature accent */
  --clay-dk:  #9b5e30;   /* darker clay for hovers / contrast on bone */
  --clay-lt:  #d59a6a;   /* light clay for accents on dark panels */
  --ink:      #1b1714;   /* near-black, warm — dark panels + body text */
  --char:     #29231e;   /* charcoal */
  --bone:     #f3ebda;   /* primary page background */
  --cream:    #e9ddc6;   /* secondary warm panel */
  --stone:    #8a8073;   /* muted warm gray */
  --ink-soft: #4a423a;   /* softened body text on light */

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --font-stencil: "Stardos Stencil", "Oswald", Impact, sans-serif;
  --font-display: "Oswald", "Arial Narrow", Helvetica, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* faint paper grain — tiny inline SVG, no extra request */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bone);
  background-image: var(--grain);
  background-size: 180px 180px;
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.amp { color: var(--clay); }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay-dk);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--clay-lt); }

.section-title {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.section-title--light { color: var(--bone); }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- buttons (--rust kept as class name = clay accent) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn--rust { background: var(--clay); color: var(--ink); border-color: var(--clay); }
.btn--rust:hover { background: var(--clay-dk); border-color: var(--clay-dk); color: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(243,235,218,0.5); }
.btn--ghost:hover { background: rgba(243,235,218,0.1); border-color: var(--bone); }
.btn--full { width: 100%; text-align: center; }
.btn:active { transform: translateY(1px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,235,218,0.93);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.wordmark {
  font-family: var(--font-stencil);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.primary-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--clay); }
.nav-cta {
  background: var(--clay);
  color: var(--ink) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--clay-dk); color: var(--bone) !important; border-bottom-color: transparent !important; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid rgba(27,23,20,0.3);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 2px solid var(--ink);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 14px 24px rgba(27,23,20,0.18);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(27,23,20,0.1);
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* =========================================================
   HERO — the logo poster alongside the pitch, on dark ink
   ========================================================= */
.hero {
  background: var(--ink);
  background-image: var(--grain);
  background-size: 180px 180px;
  color: var(--bone);
  border-bottom: 5px solid var(--clay);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: minmax(260px, 400px) 1fr; }
}
.hero__logo { margin: 0; }
.hero__logo img {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border: 1px solid rgba(189,122,72,0.45);
  box-shadow: 0 26px 64px -26px rgba(0,0,0,0.85);
}
@media (min-width: 880px) {
  .hero__logo img { max-width: 400px; }
}
.hero__title {
  color: var(--bone);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.hero__lede {
  color: rgba(243,235,218,0.85);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* =========================================================
   SERVICES — asymmetric: sticky intro left, prose list right
   ========================================================= */
.services {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (min-width: 900px) {
  .services__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .services__intro { position: sticky; top: 110px; }
}
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid rgba(27,23,20,0.18);
}
.service__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clay-dk);
  padding-top: 0.3rem;
}
.service__name {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service p { color: var(--ink-soft); max-width: 54ch; }

/* =========================================================
   WORK — alternating projects
   ========================================================= */
.work {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  background: var(--cream);
}
.work > .wrap { margin-bottom: clamp(2rem, 5vw, 4rem); }

.project {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter);
}
@media (min-width: 860px) {
  .project { grid-template-columns: 1.25fr 0.75fr; }
  .project--reverse .project__media { order: 2; }
}
.project__media { margin: 0; }
.project__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 18px 40px -20px rgba(27,23,20,0.6);
}
.project__index {
  font-family: var(--font-display);
  color: var(--clay-dk);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.project__title {
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.project__body p { color: var(--ink-soft); max-width: 46ch; }

/* =========================================================
   APPROACH — dark ink panel, image bleeds to one edge
   ========================================================= */
.approach {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--char);
  background-image: var(--grain);
  background-size: 180px 180px;
  color: var(--bone);
}
@media (min-width: 880px) {
  .approach { grid-template-columns: 0.9fr 1.1fr; }
}
.approach__media { margin: 0; }
.approach__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.approach__text {
  padding: clamp(2.5rem, 6vw, 6rem) var(--gutter);
  align-self: center;
  max-width: 60ch;
}
.approach__text p { color: rgba(243,235,218,0.85); margin-bottom: 1.25rem; }
.approach__sign {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  color: var(--bone) !important;
  border-left: 4px solid var(--clay);
  padding-left: 1.1rem;
  margin-top: 1.5rem;
}

/* =========================================================
   SERVICE AREA — big town type, set against intro
   ========================================================= */
.area {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.area__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 880px) {
  .area__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.area__towns {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}
.area__towns li {
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid rgba(27,23,20,0.16);
  padding: 0.5rem 0;
}
.area__towns-note {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  font-size: 1rem !important;
  color: var(--ink-soft) !important;
  border-bottom: none !important;
  padding-top: 1rem !important;
}

/* =========================================================
   CONTACT — offset two-column on dark ink
   ========================================================= */
.contact {
  background: var(--ink);
  background-image: var(--grain);
  background-size: 180px 180px;
  color: var(--bone);
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 5px solid var(--clay);
}
.contact__inner { max-width: 640px; }
.contact__lede {
  color: rgba(243,235,218,0.9);
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.28rem);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}
.btn--lg { font-size: 1.05rem; padding: 1rem 2.3rem; }
.contact__email {
  margin-top: 1.4rem;
  color: rgba(243,235,218,0.7);
  font-size: 0.98rem;
}
.contact__email a {
  color: var(--clay-lt);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__email a:hover { color: var(--bone); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(243,235,218,0.8);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-mark {
  font-family: var(--font-stencil);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.6rem;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.footer-meta { margin-bottom: 0.35rem; }
.footer-copy { font-size: 0.9rem; color: rgba(243,235,218,0.55); }

/* =========================================================
   ABOUT PAGE (about.html) — currently unlinked / draft
   ========================================================= */
.page-intro {
  background: var(--ink);
  background-image: var(--grain);
  background-size: 180px 180px;
  color: var(--bone);
  border-bottom: 5px solid var(--clay);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.page-intro .lede { color: rgba(243,235,218,0.85); }

.bio { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) {
  .bio__grid { grid-template-columns: 0.8fr 1.2fr; }
}
.bio__media { margin: 0; }
.bio__media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 18px 40px -20px rgba(27,23,20,0.6);
}
.bio__text p { color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 60ch; }
.bio__text p:first-child { font-size: 1.15rem; color: var(--ink); }
.bio__pull {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  color: var(--ink) !important;
  border-left: 4px solid var(--clay);
  padding-left: 1.1rem;
  margin: 1.75rem 0;
}

.about-cta {
  background: var(--cream);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.about-cta .section-title { margin-bottom: 1.5rem; }
