/* =====================================================================
   PIECEMAKERS LLC — Website
   Built from designer layout (PMSiteLayoutV3) + Branding Guideline.
   Colors and type per the Piecemakers brand system.
   ===================================================================== */

/* ---------- Brand fonts ---------- */
@font-face {
  font-family: "PMGillSans";
  src: local(''), url("fonts/GillSansExtCondBold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Brand";
  src: url("fonts/HelveticaNeue-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Brand";
  src: url("fonts/HelveticaNeue-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Ultra";
  src: url("fonts/HelveticaNeue-UltraLight.ttf") format("truetype");
  font-weight: 200; font-style: normal; font-display: swap;
}

/* ---------- Brand palette ---------- */
:root {
  --floppy:   #252523; /* PMS Black C  — heavy text */
  --beige:    #F2F0DA; /* PMS 9060     — page background */
  --microchip:#8B8986; /* warm gray    — rules, nav, footer */
  --cathode:  #AF1959; /* PMS 215      — magenta accent */
  --binary:   #006074; /* PMS 3155     — teal accent */

  --head: "PMGillSans", "Arial Narrow", sans-serif;
  --body: "Helvetica Neue Brand", Helvetica, Arial, sans-serif;
  --ultra:"Helvetica Neue Ultra", "Helvetica Neue Brand", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--floppy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--microchip);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 10px var(--gutter);
}
.nav__brand img { height: 30px; width: auto; }
.nav__links {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 40px);
}
.nav__links a {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(13px, 1.5vw, 17px);
  color: var(--beige);
  text-decoration: none;
  padding: 4px 10px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
/* Alternating teal / magenta hover boxes matching section chip colors */
.nav__links a:nth-child(1):hover,
.nav__links a:nth-child(3):hover,
.nav__links a:nth-child(5):hover { background: var(--binary);  color: var(--beige); }
.nav__links a:nth-child(2):hover,
.nav__links a:nth-child(4):hover { background: var(--cathode); color: var(--beige); }

/* ---------- Page frame (double-rule border) ---------- */
.frame {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px) var(--gutter);
}
.page {
  border: 1px solid var(--microchip);
  outline: 1px solid var(--microchip);
  outline-offset: 4px;
  padding: clamp(22px, 4vw, 60px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px);
}

/* ---------- Hero wordmark ---------- */
.hero {
  padding: clamp(20px, 5vw, 70px) 0 clamp(24px, 5vw, 64px);
}
.hero__wordmark {
  width: 100%; height: auto;
}

/* ---------- Section blocks ---------- */
.block {
  margin-top: clamp(34px, 5vw, 64px);
  scroll-margin-top: 64px; /* offset for sticky nav */
}

.label-rule {
  display: flex; align-items: center; gap: 14px;
}
.rule {
  flex: 1 1 auto; height: 1px; background: var(--floppy);
}

/* Label chips — Gill Sans condensed, colored fill */
.chip {
  display: inline-block;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--beige);
  padding: 5px 14px 4px;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1;
  white-space: nowrap;
}
.chip--teal    { background: var(--binary); }
.chip--magenta { background: var(--cathode); }
.chip--grey    { background: var(--microchip); }

/* Body region with a left bracket connector */
.block__body {
  position: relative;
  margin: 22px 0 0 12px;
  padding-left: 26px;
}
.block__body::before {
  content: "";
  position: absolute; left: 0; top: -6px; bottom: 8px;
  border-left: 1px solid var(--microchip);
  border-bottom: 1px solid var(--microchip);
  width: 16px;
}
.block__body p {
  max-width: 70ch;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 1em;
}

/* ---------- Dash lists ---------- */
.dash-list {
  list-style: none; margin: 0; padding: 0;
}
.dash-list li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 64ch;
}
.dash-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.7em;
  width: 14px; height: 1px; background: var(--floppy);
}
.dash-list--us li { font-weight: 700; }
.dash-list--them li { color: var(--microchip); }

/* ---------- Versus columns ---------- */
.versus {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 70px);
  margin-bottom: clamp(34px, 5vw, 56px);
}
.versus__head {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(16px, 2vw, 22px);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--floppy);
}
.versus__head--them { color: var(--microchip); border-color: var(--microchip); }

/* ---------- Comparison table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(13px, 1.4vw, 15.5px);
}
.compare th, .compare td {
  border: 1px solid var(--microchip);
  padding: 9px 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.compare thead th {
  background: var(--microchip);
  color: var(--beige);
  font-family: var(--head);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.compare tbody th[scope="row"] {
  text-align: left;
  font-weight: 700;
  width: 34%;
}
.compare .yes { color: var(--floppy); font-weight: 700; }
.compare .no  { color: var(--floppy); font-weight: 700; }
.compare .yes-pm { color: var(--cathode); font-weight: 700; }
.compare .val-pm { color: var(--cathode); font-weight: 700; }
.compare .compare__pm { color: var(--beige); }
.compare tbody tr:nth-child(even) td,
.compare tbody tr:nth-child(even) th { background: rgba(139,137,134,0.10); }

/* ---------- Work / artist grids ---------- */
.artist { margin-top: clamp(28px, 4vw, 48px); }
.artist__name { margin-bottom: 14px; }

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--microchip);
}
.grid--row { grid-template-columns: repeat(5, 1fr); }

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--microchip);
  margin: -0.5px;            /* collapse shared borders */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
}
.tile:hover { background: rgba(139,137,134,0.10); }

/* Featured tile spans two rows on the left */
.tile--feature {
  grid-row: span 2;
  aspect-ratio: auto;
}
.tile--feature img { width: 58%; max-width: 220px; padding: 0; }
/* Product images in standard tiles */
.tile:not(.tile--feature) img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10%;
  position: absolute; top: 0; left: 0;
}
.tile__cta {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--microchip);
  font-size: clamp(15px, 1.8vw, 20px);
}

/* ---------- Contact email ---------- */
.email { margin-top: 0; text-align: center; }
.email a {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(26px, 5vw, 54px);
  color: var(--floppy);
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--floppy);
  padding: 0.2em 0.6em 0.15em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.email a:hover { color: var(--cathode); border-color: var(--cathode); }

#contact .block__body::before { bottom: 50%; }

/* ---------- Footer ---------- */
.foot {
  background: var(--microchip);
  color: var(--beige);
  text-align: right;
  padding: 12px var(--gutter);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .versus { grid-template-columns: 1fr; gap: 28px; }
  .grid, .grid--row { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-row: span 1; aspect-ratio: 1 / 1; }
  .compare { font-size: 12px; }
  .compare th, .compare td { padding: 7px 6px; }
  .compare tbody th[scope="row"] { width: 40%; }
}
