/* ==========================================================================
   BC Metalworks — self-hosted fonts (latin subset, variable weight)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   BC Metalworks — design tokens (spec section 6)
   ========================================================================== */

:root {
  --ink:        #1a1a1a;   /* near-black, primary text */
  --steel:      #4a4f54;   /* warm charcoal gray */
  --steel-lt:   #d9dadb;   /* light gray, borders/backgrounds */
  --paper:      #f7f6f4;   /* warm off-white background */
  --bronze:     #9a6a3c;   /* single warm accent */
  --white:      #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --container: 68rem;
  --container-narrow: 42rem;
}

/* Reset ------------------------------------------------------------------ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* Typography -------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--ink);
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bronze);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--space-1);
}

/* Layout ------------------------------------------------------------------ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.container--narrow {
  max-width: var(--container-narrow);
}

main {
  min-height: 60vh;
}

.page {
  padding-block: var(--space-5) var(--space-6);
}

.page__lede {
  font-size: 1.125rem;
  color: var(--steel);
  max-width: 38rem;
  margin-bottom: var(--space-4);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--steel-lt);
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-block: var(--space-2);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--steel);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--bronze);
}

/* Buttons ------------------------------------------------------------------ */

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid var(--ink);
}

.button:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--white);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  background: transparent;
  color: var(--bronze);
}

/* Home: hero + intro ------------------------------------------------------- */

.hero {
  padding-block: var(--space-6);
  background:
    linear-gradient(160deg, rgba(26, 26, 26, 0.02) 0%, rgba(74, 79, 84, 0.06) 100%),
    var(--paper);
}

.hero__title {
  max-width: 22ch;
}

.hero__lede {
  font-size: 1.1875rem;
  color: var(--steel);
  max-width: 44rem;
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.intro {
  padding-block: var(--space-5);
  font-size: 1.125rem;
}

/* Work grid ---------------------------------------------------------------- */

.featured {
  padding-block: var(--space-5);
  border-top: 1px solid var(--steel-lt);
}

.featured__more {
  margin-top: var(--space-3);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 40rem) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-card {
  text-decoration: none;
  color: inherit;
}

.work-card:hover h2,
.work-card:hover h3 {
  color: var(--bronze);
}

.work-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel-lt);
  margin-bottom: var(--space-2);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__summary {
  color: var(--steel);
  font-size: 0.9375rem;
}

/* Typographic fallback card — steel-texture background, no photo required */

.work-card__media--type,
.project__hero--type {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background:
    repeating-linear-gradient(105deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 9px),
    linear-gradient(160deg, #34383c 0%, var(--steel) 55%, #5c6167 100%);
}

.work-card__media--type p,
.project__hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--paper);
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

/* Project page -------------------------------------------------------------- */

.project__hero {
  max-height: 60vh;
  overflow: hidden;
}

.project__hero img {
  width: 100%;
  object-fit: cover;
}

.project__hero--type {
  min-height: 40vh;
}

.project__hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.project__header {
  padding-top: var(--space-4);
}

.project__summary {
  font-size: 1.125rem;
  color: var(--steel);
}

.project__materials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}

.project__materials li {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--steel-lt);
  background: var(--white);
}

.project__gallery {
  display: grid;
  gap: var(--space-2);
  margin-block: var(--space-3);
}

@media (min-width: 40rem) {
  .project__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project__back {
  padding-block: var(--space-3) var(--space-5);
}

/* Services ------------------------------------------------------------------ */

.service {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--steel-lt);
}

.service:last-child {
  border-bottom: none;
}

.service p {
  color: var(--steel);
  max-width: 38rem;
}

/* Contact form ---------------------------------------------------------------- */

.contact-form {
  margin-block: var(--space-4);
  max-width: 34rem;
}

.field {
  margin-bottom: var(--space-3);
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.field__optional {
  font-weight: 400;
  color: var(--steel);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--steel-lt);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
  border-color: var(--bronze);
}

.contact-direct {
  color: var(--steel);
}

/* Footer -------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--steel-lt);
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-4);
}

.site-footer a {
  color: var(--paper);
  text-decoration-color: var(--bronze);
}

.site-footer a:hover {
  color: var(--bronze);
}

.site-footer__area {
  max-width: 38rem;
}

.site-footer__contact span {
  margin-inline: 0.5rem;
  color: var(--steel);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--steel-lt);
  margin-bottom: 0;
}
