/* ==================================================================
   Piece pages: /pieces/redwood-round-table and /pieces/tree-leg-table.
   Desktop values come from Paper, "DRD Website Redesign", page
   "Version 3 · Review set · final logos (Oct 7)", artboard
   "02 Piece page · Redwood round table · final logos" (1440 wide,
   64 px side margins). Every piece page uses the same nine-part
   structure from ../plan.md ("Piece page").
   site.css supplies .wrap, .btn, .text-link, .arw, .photo-chip and
   .sr-only. Colors are the brand tokens only.
   ================================================================== */

/* ------------------------------------------------------------ shared */
.pc-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 40px; line-height: 48px; letter-spacing: -.005em;
}
.pc-h2-sm { font-size: 34px; line-height: 42px; }
.pc-body { font-size: 18px; line-height: 31px; }
.pc-note { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); }
.pc-label {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.pc-btn { min-height: 50px; padding: 0 30px; }

/* A fact still waiting on Danny: always its own line, so it can be filled or cut cleanly */
.pc-ph {
  display: block; width: fit-content; max-width: 100%; margin-top: 10px; padding: 3px 8px;
  font-family: var(--font-label); font-size: 14px; line-height: 21px; letter-spacing: .02em;
  color: var(--drd-taupe); background: rgba(166, 124, 78, .14);
}

.pc-photo { position: relative; overflow: hidden; background: var(--drd-stone); }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ 1. hero */
.pc-hero {
  position: relative; display: flex; align-items: flex-end; height: 800px;
  overflow: hidden; background: var(--drd-espresso); color: var(--drd-cream);
}
.pc-hero-media { position: absolute; inset: 0; }
.pc-hero-media picture, .pc-hero-media img { width: 100%; height: 100%; }
.pc-hero-media img { object-fit: cover; }
.pc-hero-media .photo-chip { left: auto; right: var(--gutter); top: 24px; bottom: auto; z-index: 2; color: var(--drd-espresso); }
/* The Espresso shade under the type (brand rule for text over photos) */
.pc-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1;
  background: linear-gradient(rgba(27, 23, 20, 0), rgba(27, 23, 20, .5) 45%, rgba(27, 23, 20, .8));
  pointer-events: none;
}
.pc-hero-copy {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding-bottom: 64px;
}
.pc-hero-text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; min-width: 0; }
.pc-kicker {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--drd-cream);
}
.pc-title {
  font-family: var(--font-display); font-weight: 400; color: var(--drd-cream);
  font-size: 64px; line-height: 70px; letter-spacing: -.01em;
}
.pc-lede { font-size: 19px; line-height: 30px; color: var(--drd-stone); }
.pc-hero-copy .btn { flex-shrink: 0; }

/* ------------------------------------------------------------ 2. the idea */
.pc-idea { padding-block: 120px 96px; }
.pc-idea .wrap { display: flex; flex-direction: column; gap: 22px; }
.pc-idea-text {
  max-width: 1040px; font-family: var(--font-display); font-weight: 400;
  font-size: 44px; line-height: 58px; letter-spacing: -.01em;
}
.pc-credit { font-family: var(--font-label); font-size: 15px; line-height: 22px; color: var(--drd-taupe); }
.pc-credit .pc-ph { margin-top: 6px; }

/* ------------------------------------------------------------ 3. gallery mosaic */
.pc-gallery .wrap { display: flex; flex-direction: column; gap: 12px; }
.pc-mosaic { display: grid; grid-template-columns: minmax(0, 860fr) minmax(0, 440fr); gap: 12px; }
.pc-mosaic-flip { grid-template-columns: minmax(0, 440fr) minmax(0, 860fr); }
/* .pc-tile is a small photo; .pc-tile-big spans both rows and takes their height */
.pc-tile { aspect-ratio: 440 / 294; }
.pc-tile-big { grid-row: 1 / span 2; }
.pc-tile-big img { position: absolute; inset: 0; }
.pc-mosaic-flip .pc-tile { grid-column: 1; }
.pc-mosaic-flip .pc-tile-big { grid-column: 2; }
.pc-gallery-note { padding-top: 6px; }

/* ------------------------------------------------------------ 4. the story */
.pc-story { padding-top: 120px; }
.pc-story .wrap { display: flex; flex-direction: column; gap: 56px; }
.pc-row {
  display: grid; grid-template-columns: minmax(0, 420fr) minmax(0, 796fr); column-gap: 96px;
  padding-top: 28px; border-top: 1px solid var(--drd-stone);
}
.pc-row-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 42px; }
.pc-row-body { max-width: 700px; }

/* ------------------------------------------------------------ in the shop (real photos) */
.pc-shop { padding-top: 96px; }
.pc-shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
.pc-real { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pc-real .pc-photo { aspect-ratio: 429 / 560; }

/* ------------------------------------------------------------ 5 + 6. what can change, wood options */
.pc-make { padding-top: 120px; }
.pc-make-panel {
  display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 648fr); column-gap: 96px;
  padding: 72px 64px; background: var(--drd-stone);
}
.pc-make-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pc-make-copy .btn { margin-top: 10px; }
.pc-woods { display: flex; flex-direction: column; gap: 18px; }
.pc-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.pc-swatch { display: flex; flex-direction: column; gap: 12px; }
.pc-swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--drd-cream); }
.pc-swatch-text { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-label); }
.pc-swatch-name { font-weight: 500; font-size: 14px; line-height: 18px; }
.pc-swatch-from { font-size: 13px; line-height: 16px; color: var(--drd-taupe); }
.pc-woods-note { font-family: var(--font-label); font-size: 14px; line-height: 20px; color: var(--drd-taupe); }

/* ------------------------------------------------------------ 7. specifications */
.pc-specs { padding-top: 120px; }
.pc-specs .wrap {
  display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 728fr); column-gap: 64px; align-items: start;
}
.pc-spec-list { display: flex; flex-direction: column; gap: 28px; }
.pc-dl { margin: 0; border-top: 1px solid var(--drd-espresso); }
.pc-dl > div {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px;
  padding-block: 15px; border-bottom: 1px solid var(--drd-stone);
}
.pc-dl dt {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 22px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--drd-taupe);
}
.pc-dl dd { margin: 0; font-family: var(--font-label); font-size: 16px; line-height: 22px; }
.pc-dl .pc-ph { margin-top: 8px; }
/* Where the dimensioned drawing goes once every number on it is confirmed */
.pc-drawing {
  display: flex; align-items: center; justify-content: center; min-height: 360px; margin-top: 76px; padding: 24px;
  background: var(--drd-cream); border: 1px solid var(--drd-stone);
}
.pc-drawing .pc-ph { max-width: 440px; margin-top: 0; text-align: center; }

/* ------------------------------------------------------------ 8. choose your slab */
.pc-choose { padding-top: 120px; }
.pc-choose .wrap {
  display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 516fr); column-gap: 96px; align-items: center;
}
.pc-choose .pc-photo { aspect-ratio: 700 / 520; }
.pc-choose-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; padding-top: 10px; }

/* ------------------------------------------------------------ 9. related pieces */
.pc-related { padding-block: 140px; }
.pc-related .wrap { display: flex; flex-direction: column; gap: 28px; }
.pc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 29px; }
.pc-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--drd-espresso); }
.pc-card .pc-photo { aspect-ratio: 1; }
.pc-card img { transition: transform .6s ease; }
.pc-card:hover img { transform: scale(1.02); }
.pc-card-name {
  align-self: flex-start; font-family: var(--font-label); font-size: 16px; line-height: 22px;
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.pc-card:hover .pc-card-name { border-bottom-color: var(--drd-bronze); }

/* ------------------------------------------------------------ tablet */
@media (max-width: 1279px) {
  .pc-hero { height: 680px; }
  .pc-title { font-size: 56px; line-height: 62px; }
  .pc-idea-text { font-size: 38px; line-height: 50px; }
  .pc-row { column-gap: 56px; }
  .pc-make-panel { column-gap: 56px; padding: 64px 48px; }
  .pc-specs .wrap { grid-template-columns: minmax(0, 10fr) minmax(0, 8fr); column-gap: 48px; }
  .pc-dl > div { grid-template-columns: 128px minmax(0, 1fr); }
  .pc-choose .wrap { column-gap: 56px; }
  .pc-related { padding-block: 112px; }
}
@media (max-width: 1023px) {
  .pc-hero { height: 640px; }
  .pc-hero-copy { flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 48px; }
  .pc-title { font-size: 48px; line-height: 54px; }
  .pc-idea { padding-block: 96px 72px; }
  .pc-idea-text { font-size: 32px; line-height: 44px; }
  .pc-story, .pc-make, .pc-specs, .pc-choose { padding-top: 96px; }
  .pc-story .wrap { gap: 44px; }
  .pc-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .pc-row-title { font-size: 30px; line-height: 38px; }
  .pc-make-panel { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding: 56px 40px; }
  .pc-specs .wrap { grid-template-columns: minmax(0, 1fr); }
  .pc-drawing { margin-top: 40px; min-height: 240px; }
  .pc-choose .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .pc-cards { gap: 32px 20px; }
}

/* ------------------------------------------------------------ phone */
@media (max-width: 767px) {
  .pc-h2 { font-size: 32px; line-height: 40px; }
  .pc-h2-sm { font-size: 28px; line-height: 36px; }
  .pc-body { font-size: 17px; line-height: 28px; }
  .pc-btn { min-height: 52px; }

  /* Type first on Cream so the button makes the first screen (brand phone-first rule),
     then the photo on its own, full width */
  .pc-hero { flex-direction: column; align-items: stretch; height: auto; background: none; color: var(--drd-espresso); }
  .pc-hero::before { display: none; }
  .pc-hero-media { position: relative; order: 2; aspect-ratio: 4 / 5; background: var(--drd-stone); }
  .pc-hero-media picture { position: absolute; inset: 0; }
  .pc-hero-media .photo-chip { left: var(--gutter); right: auto; top: auto; bottom: 16px; }
  .pc-hero-copy { gap: 24px; padding-block: 28px 40px; }
  .pc-hero-text { gap: 12px; }
  .pc-kicker { color: var(--drd-taupe); }
  .pc-title { color: var(--drd-espresso); font-size: 38px; line-height: 44px; }
  .pc-lede { color: var(--drd-espresso); font-size: 17px; line-height: 28px; }
  .pc-hero-copy .btn { width: 100%; }

  .pc-idea { padding-block: 64px 48px; }
  .pc-idea-text { font-size: 26px; line-height: 36px; }
  .pc-credit { font-size: 14px; line-height: 20px; }

  .pc-gallery .wrap { gap: 8px; }
  .pc-mosaic, .pc-mosaic-flip { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pc-mosaic .pc-tile, .pc-mosaic .pc-tile-big { grid-column: auto; grid-row: auto; }
  .pc-tile-big { aspect-ratio: 860 / 600; }
  .pc-gallery-note { padding-top: 8px; }

  .pc-story, .pc-make, .pc-specs, .pc-choose { padding-top: 72px; }
  .pc-story .wrap { gap: 36px; }
  .pc-row { padding-top: 20px; row-gap: 10px; }
  .pc-row-title { font-size: 26px; line-height: 32px; }

  .pc-shop { padding-top: 72px; }
  .pc-shop-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 16px; }
  .pc-real { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pc-real-lead > li:first-child { grid-column: span 2; }
  .pc-real-lead > li:first-child { aspect-ratio: 4 / 5; }
  .pc-real .photo-chip { left: 8px; bottom: 8px; padding: 5px 8px; letter-spacing: .12em; }
  .pc-real-lead > li:first-child .photo-chip { left: 16px; bottom: 16px; padding: 7px 10px; letter-spacing: .16em; }

  .pc-make-panel { margin-inline: calc(-1 * var(--gutter)); padding: 48px var(--gutter); row-gap: 40px; }
  .pc-make-copy .btn { width: 100%; }
  .pc-swatches { gap: 16px 12px; }

  .pc-dl > div { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; padding-block: 14px; }
  .pc-dl dt { font-size: 11px; letter-spacing: .12em; }
  .pc-dl dd { font-size: 15px; line-height: 22px; }
  .pc-drawing { min-height: 0; padding: 40px 20px; }

  .pc-choose .wrap { row-gap: 28px; }
  .pc-actions { flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
  .pc-actions .btn { width: 100%; }

  .pc-related { padding-block: 72px 80px; }
  .pc-related .wrap { gap: 24px; }
  .pc-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pc-card .pc-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 479px) {
  .pc-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .pc-card:hover img { transform: none; }
}

/* Specs with no drawing beside them */
.pc-specs.pc-specs-solo .wrap { grid-template-columns: minmax(0, 760px); }
