/* Packrivo Visual & Conversion Polish (2026-11-27 v2) */
:root {
  --pk-wrap: 1220px;
  --pk-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --pk-font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pr-font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 1. Sitewide Typography Unification: Fraunces (Display Serif) + Inter Tight (UI/Body) + JetBrains Mono */
html,
body,
.pk-body,
button,
input,
select,
textarea,
.pk-home-story,
#packrivo-language-list .pk-lang-opt,
#packrivo-language-list .pk-lang-opt small {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pk-home-story {
  line-height: 1.58;
  color: #1f2722;
}

.pk-brand-word {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1,
h2,
.pk-h1,
.pk-h2,
.pk-display,
.pk-jcard-title,
.pr-master-about h1,
.pr-master-samples h1,
.post-content h1,
.post-content h2,
.pk-home-story .hero h1,
.pk-home-story .section h2,
.pk-home-story .price strong,
.pk-home-story .feature h3,
.pk-home-story .sample h3,
.pk-home-story .story h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.post-content h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

footer h2 {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 2. Hero Typographic & Grid Refinements */
.pk-home-story .hero h1 { font-size: clamp(42px, 5vw, 80px); line-height: 1.07; }
.pk-home-story .hero h1 em {
  display: inline-block;
  padding-left: 0.04em;
  font-style: italic;
  color: #e9d2b5;
}
.pk-home-story .hero picture { background: #332526; }
.pk-home-story .hero picture img { filter: sepia(0.12) saturate(0.94) brightness(0.96) contrast(0.98); }

.pk-home-story .faqbox h2,
.pk-home-story .price h2,
.pk-home-story .sample h2 { margin-bottom: 16px; }
.pk-home-story .sample h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.22;
  margin: 22px 0 8px;
}
.pk-home-story .faqbox .link { margin-top: 8px; }
.pk-home-story .price p { margin-top: 0; }

.pk-hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px 26px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 248, 237, 0.16);
  font-size: 13px;
  color: #dfd0c6;
  letter-spacing: 0.01em;
}
.pk-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pk-hero-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #e6cdb0; flex: 0 0 auto; }

/* 3. Unified Container Widths & Footer */
.pk-hd-inner, .pk-wrap, .pk-page-body, .pk-home-story .wrap {
  max-width: var(--pk-wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

footer {
  max-width: var(--pk-wrap) !important;
  margin-inline: auto !important;
  padding: 56px 24px 28px !important;
}
footer .pk-languages { padding-inline: 0 !important; }

/* 4. Image Framing & White-Box Blending (#collection, #formats, #groups, #workshops, #journal) */
.pk-home-story .group-layout figure { background: #eeeae1; padding: 16px; border-radius: 4px; overflow: hidden; }
.pk-home-story .group-layout figure img { background: transparent; width: 100%; aspect-ratio: 6 / 5; object-fit: contain; mix-blend-mode: multiply; }
.pk-home-story .group-layout figcaption { margin-top: 12px; }

/* Eliminate stark white studio corners on #formats tabs (Drawer / Lift-off lid / Magnetic) */
.pk-home-story .feature {
  background: #f5f2eb;
}
.pk-home-story .feature > img {
  mix-blend-mode: multiply;
  border-radius: 4px;
}

/* Prevent absolute MOQ badge from overlapping title on text-only category cards */
.pk33a-category-card:not(:has(img)) .pk-product-moq {
  position: static;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
}

.pk-home-story .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pk-home-story .scene-grid img { aspect-ratio: 4 / 3; height: auto; border-radius: 2px; }

.pk-home-story .stories { align-items: stretch; }
.pk-home-story .story { display: flex; flex-direction: column; height: 100%; }
.pk-home-story .story .pk-story-media { display: block; width: 100%; aspect-ratio: 16 / 10; background: #eeeae1; overflow: hidden; border-radius: 2px; }
.pk-home-story .story .pk-story-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.25s ease; }
.pk-home-story .story .pk-story-media.is-square-pack img { object-fit: cover; padding: 0; }
.pk-home-story .story:hover .pk-story-media img { transform: scale(1.03); }
.pk-home-story .story h3 { font-size: clamp(20px, 1.85vw, 27px); line-height: 1.24; margin: 16px 0 16px; }
.pk-home-story .story > span:last-child { margin-top: auto; padding-top: 4px; }

/* 5. Header Layout at 1180px-1294px Desktop & Collapsed Mode */
.pk-actions { gap: 12px; }

@media (min-width: 1180px) and (max-width: 1294px) {
  html[lang^="en"] .pk-hd-inner { gap: 16px; justify-content: flex-start; }
  html[lang^="en"] .pk-burger { display: none; }
  html[lang^="en"] .pk-nav {
    display: block;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    flex: 1 1 auto;
  }
  html[lang^="en"] .pk-nav-list { flex-direction: row; align-items: center; gap: 0; }
  html[lang^="en"] .pk-nav-link { padding: 8px 8px; font-size: 13.5px; white-space: nowrap; }
  html[lang^="en"] .pk-actions { order: 0; margin-inline-start: 0; gap: 10px; }
  html[lang^="en"] .pk-actions .pk-icon-btn,
  html[lang^="en"] .pk-actions .pk-lang { display: inline-flex; }
  html[lang^="en"] .pk-actions .pk-text-link { display: none; }
}

@media (max-width: 1294px) {
  .pk-actions { margin-inline-start: auto; }
}

@media (max-width: 560px) {
  .pk-hd-inner { padding-inline: 14px !important; gap: 6px !important; }
  .pk-brand { gap: 7px; }
  .pk-brand-mark { width: 24px; height: 24px; }
  .pk-brand-word { font-size: 1.05rem; }
  .pk-actions { gap: 6px; }
  #packrivo-language-root .packrivo-lang-btn { padding: 4px 8px; font-size: 11.5px; min-height: 32px; }
  .pk-actions .pk-cta {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .pk-burger { padding: 6px 8px; font-size: 12px; gap: 5px; }
}

/* 6. Compact Cookie Consent Bar */
#pr-consent.pr-consent {
  left: 50%; right: auto; bottom: 14px; transform: translateX(-50%);
  width: min(740px, calc(100vw - 32px)); max-width: none; padding: 12px 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  border-radius: 8px; box-shadow: 0 12px 32px rgba(12, 20, 17, 0.14);
}
#pr-consent.pr-consent[hidden] { display: none; }
#pr-consent .pr-consent-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#pr-consent p:not(.pr-consent-title) { margin: 0; flex: 1 1 340px; font-size: 13.5px; line-height: 1.4; }
#pr-consent .pr-consent-actions { flex: 0 0 auto; gap: 8px; }
#pr-consent .pr-consent-actions button { min-height: 36px; min-width: 78px; padding: 6px 14px; font-size: 13px; border-radius: 5px; }

@media (max-width: 620px) {
  .pk-hd-inner, .pk-wrap, .pk-page-body, .pk-home-story .wrap, footer { padding-inline: 18px !important; }
  .pk-home-story .family-list { grid-template-columns: 1fr; gap: 0; }
  .pk-home-story .scene-grid { grid-template-columns: 1fr; }
  .pk-hero-trust { grid-template-columns: 1fr; gap: 6px; font-size: 12.5px; }
  #pr-consent.pr-consent { left: 10px; right: 10px; bottom: 10px; transform: none; width: auto; padding: 10px 12px; gap: 8px; }
  #pr-consent p:not(.pr-consent-title) { flex: 1 1 100%; font-size: 12px; line-height: 1.35; }
  #pr-consent .pr-consent-actions { width: 100%; justify-content: flex-end; }
  #pr-consent .pr-consent-actions button { flex: 0 1 auto; min-height: 36px; }
}

/* 7. Language Switcher Modal & Aligned Footer Language Row (zero baseline jump between <a> and <button>) */
#packrivo-language-list .pk-lang-opt {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 58px;
  padding: 9px 30px 9px 12px;
  border: 1px solid #dde5dd;
  border-radius: 9px;
  background: #fff;
  color: #183b30;
  cursor: pointer;
  text-align: start;
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
#packrivo-language-list .pk-lang-opt small {
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #53695d;
}
#packrivo-language-list .pk-lang-opt:hover,
#packrivo-language-list .pk-lang-opt:focus-visible {
  border-color: #71927c;
  background: #eef4ed;
  outline: 3px solid #558c70;
}
#packrivo-language-list .pk-lang-opt[hidden] {
  display: none;
}

footer .pk-languages {
  align-items: center;
  row-gap: 10px;
}
footer .pk-languages a,
footer .pk-languages .pk-lang-foot-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(12, 20, 17, 0.28);
  padding: 2px 0;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
footer .pk-languages a:hover,
footer .pk-languages .pk-lang-foot-btn:hover {
  border-bottom-color: currentColor;
}
footer .pk-languages .pk-lang-foot-btn:focus-visible,
footer .pk-languages a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
