/* =========================================================================
   Design 3 — Family Album
   Loaded only when Customize → Cemara Design → Design 3 is selected.
   Paper, polaroids, handwriting, terracotta. Same markup as Design 1.
   ========================================================================= */

body.design-album {
  --chocolate: #2B1D14;
  --chocolate-dark: #1C120C;
  --gold: #B5552F;
  --cream: #F3EAD9;
  --coffee: #2B1D14;
  --driftwood: #7A5E48;
  --line: rgba(122, 94, 72, .25);
  --sans: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --dash: #C9B597;
  --shadow-card: 0 3px 12px rgba(43, 29, 20, .10);
  --shadow-lift: 0 14px 30px rgba(43, 29, 20, .18);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(122, 94, 72, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ---- Buttons ------------------------------------------------------------- */
.design-album .btn, .design-album .button, .design-album a.button, .design-album button.button, .design-album .wp-block-button__link {
  background: var(--gold); color: #fff; border-radius: 4px;
}
.design-album .btn:hover, .design-album .button:hover, .design-album .wp-block-button__link:hover { background: #9A4526; color: #fff; }
.design-album .btn-ghost { border-color: var(--chocolate); color: var(--chocolate); border-radius: 4px; }
.design-album .btn-ghost:hover { background: var(--chocolate); color: var(--cream); }
.design-album .hand { font-family: var(--hand); color: var(--gold); font-size: 34px; line-height: 1; margin: 0 0 6px; display: inline-block; transform: rotate(-2deg); }

/* ---- Nav ------------------------------------------------------------------ */
.design-album .nav { background: rgba(243, 234, 217, .96); border-bottom: 1px dashed var(--dash); }
.design-album .wordmark::after { content: "by KTKCB"; font-family: var(--hand); font-size: 19px; font-weight: 500; color: var(--gold); margin-left: 8px; letter-spacing: 0; }

/* ---- Polaroid ------------------------------------------------------------- */
.design-album .polaroid { position: relative; margin: 0; background: #fff; padding: 10px 10px 40px; box-shadow: 0 6px 18px rgba(43, 29, 20, .18); transition: transform .25s ease, box-shadow .25s ease; }
.design-album .polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.design-album .polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 7px; font-family: var(--hand); font-size: 21px; color: #6B4A34; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Home hero: collage ---------------------------------------------------- */
.album-hero { padding: 56px 0 80px; overflow: hidden; }
.album-hero__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.album-hero h1 { font-size: 62px; max-width: 12ch; }
.album-hero__sub { font-size: 19px; color: var(--driftwood); max-width: 40ch; margin: 16px 0 28px; }
.collage { position: relative; min-height: 470px; }
.collage .polaroid { position: absolute; width: 56%; }
.collage .polaroid--1 { left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
.collage .polaroid--2 { right: 0; top: 26px; transform: rotate(3deg); z-index: 2; }
.collage .polaroid--3 { left: 7%; top: 226px; transform: rotate(2deg); z-index: 3; }
.collage .polaroid--4 { right: 3%; top: 242px; transform: rotate(-3deg); z-index: 4; }
.collage .polaroid--2::before, .collage .polaroid--3::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; margin-left: -38px;
  background: rgba(181, 85, 47, .28); transform: rotate(-4deg);
}
.collage .polaroid:hover { z-index: 6; transform: rotate(0) scale(1.03); box-shadow: 0 16px 32px rgba(43, 29, 20, .25); }
.collage--1 { min-height: 0; }
.collage--1 .polaroid { position: relative; width: 88%; margin: 0 auto; transform: rotate(-2deg); }
.collage--2 { min-height: 380px; }
.collage--3 .polaroid--3 { left: 22%; }

/* ---- Residents: polaroid portraits ---------------------------------------- */
.design-album .story-col { text-align: center; }
.design-album .story-col img, .design-album .story-col .ph {
  border: 10px solid #fff; border-bottom-width: 44px; border-radius: 0;
  box-shadow: 0 6px 16px rgba(43, 29, 20, .16); transform: rotate(-2deg);
}
.design-album .story-col:nth-child(2) img, .design-album .story-col:nth-child(2) .ph { transform: rotate(2deg); }
.design-album .story-col:nth-child(3) img, .design-album .story-col:nth-child(3) .ph { transform: rotate(-1deg); }
.design-album .story-col h3 { font-family: var(--hand); font-size: 36px; font-weight: 700; color: var(--gold); margin: -34px 0 18px; position: relative; }
.design-album .story-col p { font-style: normal; font-size: 17px; }

/* ---- Timeline -------------------------------------------------------------- */
.timeline { padding: 0 0 80px; }
.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline__list::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 9px; border-top: 2px dashed var(--dash); }
.timeline__list li { text-align: center; position: relative; }
.timeline__list li::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); margin: 0 auto 12px; box-shadow: 0 0 0 6px var(--cream); position: relative; }
.timeline__list b { display: block; font-family: var(--hand); font-size: 32px; font-weight: 700; color: var(--chocolate); line-height: 1; }
.timeline__list span { font-size: 14px; color: var(--driftwood); }

/* ---- Products: tagged cards ------------------------------------------------ */
.design-album .section--tint { background: rgba(255, 255, 255, .35); border-top: 1px dashed var(--dash); border-bottom: 1px dashed var(--dash); }
.design-album .home-featured .sec-head::before { content: "from our kitchen"; display: block; font-family: var(--hand); font-size: 30px; color: var(--gold); transform: rotate(-2deg); margin-bottom: 2px; }
.design-album ul.products li.product { border: 1px dashed var(--dash); border-radius: 4px; box-shadow: var(--shadow-card); overflow: visible; transform: rotate(-.7deg); }
.design-album ul.products li.product:nth-child(even) { transform: rotate(.7deg); }
.design-album ul.products li.product:hover { transform: rotate(0) translateY(-5px); border-color: var(--gold); }
.design-album ul.products li.product::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; z-index: 2;
  background: rgba(181, 85, 47, .25); transform: rotate(-3deg);
}
.design-album ul.products li.product .card-img { margin: 10px 10px 0; background: var(--cream); }
.design-album ul.products li.product .tag { border-style: dashed; border-color: var(--gold); color: var(--gold); }
.design-album ul.products li.product .button { border-radius: 4px; }

/* ---- How it works + impact note ------------------------------------------ */
.design-album .steps { counter-reset: step; }
.design-album .step::before { counter-increment: step; content: counter(step); display: block; font-family: var(--hand); font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.design-album .step__icon { border-style: dashed; border-color: var(--gold); background: #fff; }
.design-album .impact-strip {
  border: 0; background: #fff; max-width: 780px; margin: 0 auto 80px; padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(43, 29, 20, .14); transform: rotate(-1deg);
  font-family: var(--hand); font-size: 30px; color: var(--chocolate);
}

/* ---- Pages ---------------------------------------------------------------- */
.design-album .page-hero {
  min-height: 0; height: 440px; max-width: 980px; margin: 48px auto 0;
  border: 12px solid #fff; border-bottom-width: 52px; box-shadow: 0 8px 22px rgba(43, 29, 20, .18); transform: rotate(-1deg);
}
.design-album .entry .lede { font-family: var(--hand); font-size: 30px; color: var(--gold); }
.design-album .entry .wp-block-details { border-bottom-style: dashed; border-bottom-color: var(--dash); }
.design-album .entry .wp-block-table table { border-radius: 4px; }
.design-album .contact-form { border: 1px dashed var(--dash); border-radius: 4px; }

/* ---- KTKCB History: photo grid -------------------------------------------- */
.design-album .post-list { max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; align-items: start; }
.design-album .post-list > :not(.post-item) { grid-column: 1 / -1; }
.design-album .post-item { display: block; background: #fff; padding: 12px 12px 18px; border: 0; box-shadow: 0 6px 18px rgba(43, 29, 20, .14); transform: rotate(-1deg); }
.design-album .post-item:nth-child(even) { transform: rotate(1deg); }
.design-album .post-item .post-thumb { display: block; padding: 0; box-shadow: none; margin-bottom: 12px; }
.design-album .post-item .post-thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.design-album .post-item h2 { font-size: 21px; }
.design-album .post-item p { font-size: 15px; }

/* ---- Footer ----------------------------------------------------------------- */
.design-album .footer { background: var(--chocolate); }
.design-album .footer .brandblurb { font-family: var(--hand); font-size: 36px; color: #E9C9A6; line-height: 1.05; }
.design-album .footer h4 { color: #E9C9A6; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1023px) {
  .album-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .album-hero h1 { font-size: 46px; }
  .design-album .post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .album-hero { padding: 28px 0 48px; }
  .album-hero h1 { font-size: 38px; }
  .album-hero__sub { font-size: 17px; }
  .collage { order: -1; min-height: 330px; }
  .collage .polaroid { width: 62%; padding: 7px 7px 30px; }
  .collage .polaroid figcaption { font-size: 17px; bottom: 5px; }
  .collage .polaroid--2 { top: 16px; }
  .collage .polaroid--3 { top: 150px; }
  .collage .polaroid--4 { top: 166px; }
  .collage--2 { min-height: 250px; }
  .design-album .wordmark::after { font-size: 16px; }
  .design-album .story-col img, .design-album .story-col .ph { max-width: 300px; margin: 0 auto; }
  .timeline__list { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .timeline__list::before { display: none; }
  .design-album .page-hero { height: 240px; margin: 24px 16px 0; border-width: 8px 8px 32px; }
  .design-album .post-list { grid-template-columns: 1fr; }
  .design-album .impact-strip { margin: 0 16px 56px; font-size: 24px; }
}
