/* =========================================================
   RUSH ROW — retro-groovy design system.
   Palette: baby-blue sky · warm cream · burnt terracotta ·
   deep chocolate · soft peach. Nothing generic.
   ========================================================= */

:root {
  --sky:        #8BC5F9;   /* exact logo blue */
  --sky-deep:   #6BA9DE;   /* hover-state for sky */
  --sky-soft:   #B5D9F9;   /* airy tint for backgrounds */
  --cream:      #F5EAD5;   /* page canvas */
  --cream-soft: #FBF6EC;   /* elevated surfaces */
  --terracotta: #D95D39;   /* primary accent, CTAs */
  --terracotta-dark: #B24827;
  --peach:      #E88B70;   /* tertiary */
  --cocoa:      #3D2415;   /* ink / dark surfaces */
  --cocoa-soft: #5A3A26;   /* body text */
  --mustard:    #E7B23C;   /* pop / stars */
  --ink-muted:  #7A5A44;
  --border:     rgba(61, 36, 21, .12);
  --border-strong: rgba(61, 36, 21, .28);

  --display:    'Bagel Fat One', 'Cooper Black', ui-serif, Georgia, serif;
  --editorial:  'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'Space Mono', 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 0 var(--cocoa);
  --shadow-md: 0 4px 0 var(--cocoa);
  --shadow-lg: 0 6px 0 var(--cocoa);
  --shadow-soft: 0 20px 40px rgba(61, 36, 21, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--cocoa-soft);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-dark); }
::selection { background: var(--terracotta); color: var(--cream-soft); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Typography  =========================================== */
h1, h2, h3, h4 {
  color: var(--cocoa);
  margin: 0 0 .5em;
  font-weight: 400;
}
.display-xl, .display-lg {
  font-family: var(--display);
  line-height: .92;
  letter-spacing: -.01em;
}
.display-xl { font-size: clamp(64px, 12vw, 168px); }
.display-lg { font-size: clamp(48px, 8vw, 108px); }
.h1-editorial {
  font-family: var(--editorial);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.02em;
}
.h2-groovy {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.01em;
}
.h3-groovy {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}
.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lede {
  font-family: var(--editorial);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--cocoa-soft);
  font-weight: 400;
}

/* Announce bar  ======================================== */
.announce {
  background: var(--cocoa);
  color: var(--cream);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 101;
}
.announce a { color: var(--mustard); font-weight: 700; }
.announce a:hover { color: var(--cream); }

/* NAV  ================================================ */
.nav {
  background: var(--cream);
  border-bottom: 2px solid var(--cocoa);
  position: sticky;
  top: 34px;
  z-index: 100;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.rr-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.rr-logo:hover { transform: rotate(-2deg); }
.rr-logo-img {
  height: 58px;
  width: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--cocoa);
  transition: box-shadow .25s;
}
.rr-logo:hover .rr-logo-img { box-shadow: 0 1px 0 var(--cocoa); }
.footer .rr-logo-img {
  height: 76px;
  box-shadow: 0 4px 0 var(--mustard);
}
.footer .rr-logo:hover .rr-logo-img { box-shadow: 0 2px 0 var(--mustard); }
.nav-links {
  display: flex;
  gap: 40px;
  justify-self: center;
  align-items: center;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0;
}
.nav-links a {
  color: var(--cocoa);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: background .25s, color .25s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover {
  background: var(--cocoa);
  color: var(--cream-soft);
  transform: rotate(-3deg);
}
.nav-links a.active {
  background: var(--terracotta);
  color: var(--cream-soft);
}
.nav-right { justify-self: end; display: flex; gap: 12px; align-items: center; }
.nav-cart {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  padding: 8px 14px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
}
.nav-cart:hover { background: var(--cocoa); color: var(--cream-soft); }

/* BUTTONS  =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--cocoa);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--cocoa);
  background: var(--cream-soft);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translate(0, 2px); box-shadow: var(--shadow-sm); color: var(--cocoa); }
.btn:active { transform: translate(0, 4px); box-shadow: 0 0 0 var(--cocoa); }
.btn-primary { background: var(--terracotta); color: var(--cream-soft); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--cream-soft); }
.btn-sky { background: var(--sky); color: var(--cocoa); }
.btn-sky:hover { background: var(--sky-deep); }
.btn-ghost { background: transparent; }

/* HERO  ============================================== */
.hero {
  background: var(--sky);
  border-bottom: 2px solid var(--cocoa);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-inner .hero-col {
  height: 280px;
  width: auto;
  align-self: center;
  display: block;
  flex-shrink: 0;
}
.hero-inner > .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  min-width: 0;
}
.hero .display-xl {
  color: var(--cream-soft);
  text-shadow: 4px 4px 0 var(--cocoa);
}
.hero .display-xl em {
  color: var(--mustard);
  font-style: normal;
}
.hero-lede {
  max-width: 640px;
  margin: 12px auto 0;
  font-family: var(--editorial);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  color: var(--cocoa);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-columns { display: none; } /* legacy — replaced by inline .hero-col inside .hero-inner */
.hero-sun {
  position: absolute;
  right: 30px;
  top: 40px;
  width: 160px;
  height: auto;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: sunTilt 6s ease-in-out infinite;
}
@keyframes sunTilt {
  0%   { transform: rotate(-6deg); }
  50%  { transform: rotate(6deg); }
  100% { transform: rotate(-6deg); }
}
@keyframes charBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Speech bubble next to the About-page character */
.hero-bubble {
  position: absolute;
  bottom: 360px;
  left: 240px;
  z-index: 3;
  background: var(--cream-soft);
  border: 3px solid var(--cocoa);
  border-radius: 28px;
  padding: 16px 24px;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 5px 5px 0 var(--cocoa);
  font-family: var(--display);
  font-size: 20px;
  color: var(--cocoa);
  line-height: 1.15;
  text-align: center;
  animation: bubbleBob 4s ease-in-out infinite;
}
.hero-bubble::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 24px;
  width: 22px;
  height: 22px;
  background: var(--cream-soft);
  border-left: 3px solid var(--cocoa);
  border-bottom: 3px solid var(--cocoa);
  transform: rotate(-45deg);
}
.bubble-text {
  transition: opacity .35s ease-in-out;
  display: block;
}
.bubble-text.fading { opacity: 0; }
@keyframes bubbleBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Right-anchored variant — tail points right toward character on the right side */
.hero-bubble-right {
  bottom: auto;
  left: auto;
  top: 90px;
  right: 220px;
}
.hero-bubble-right::before {
  left: auto;
  right: -14px;
  bottom: auto;
  top: 24px;
  transform: rotate(-135deg);
}
@media (max-width: 900px) {
  .hero-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sun { animation: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin: 0 auto 8px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }

/* Marquee under hero  ================================ */
.marquee {
  background: var(--cocoa);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--cocoa);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -.01em;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  padding-right: 40px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track .star { color: var(--mustard); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTION shells  ==================================== */
section { padding: 96px 0; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 0 0 40px;
  height: 2px;
  background: var(--cocoa);
}
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-title h2 { margin-top: 8px; }
.section-title p { font-family: var(--editorial); font-size: 20px; color: var(--cocoa-soft); }

/* Path chooser  ======================================
   Two cards: "design your own" (studio) or "get a quote" (contact).
   Sits right after the hero so customers pick their route before
   scrolling the rest of the page. */
.path-chooser {
  background: var(--cream);
  padding: 84px 0 96px;
  border-bottom: 2px solid var(--cocoa);
  position: relative;
}
.chooser-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.chooser-heading .mono {
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.chooser-heading h2 { margin: 6px 0 12px; }
.chooser-heading p {
  font-family: var(--editorial);
  font-size: 19px;
  color: var(--cocoa-soft);
}
.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.chooser-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 34px 30px;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: 28px;
  color: var(--cocoa);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.chooser-card:hover {
  transform: translate(-1px, -3px);
  box-shadow: 0 7px 0 var(--cocoa);
}
.chooser-card:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-sm);
}
/* Distinct tinted backdrops so the two options feel different at a glance */
.chooser-card--diy {
  background: linear-gradient(180deg, #FFF8E4 0%, var(--cream-soft) 60%);
}
.chooser-card--quote {
  background: linear-gradient(180deg, #EEF6FF 0%, var(--cream-soft) 60%);
}
.chooser-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  background: var(--mustard);
  padding: 6px 12px;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  margin-bottom: 4px;
}
.chooser-card--quote .chooser-badge {
  background: var(--sky);
  color: var(--cocoa);
}
.chooser-card h3 {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  margin: 0;
  color: var(--cocoa);
}
.chooser-card > p {
  font-family: var(--editorial);
  font-size: 16px;
  line-height: 1.45;
  color: var(--cocoa-soft);
  margin: 0;
}
.chooser-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chooser-list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  padding-left: 20px;
  position: relative;
}
.chooser-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--terracotta);
  font-weight: 700;
}
.chooser-cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--terracotta);
  color: var(--cream-soft);
  font-family: var(--display);
  font-size: 17px;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.chooser-card--quote .chooser-cta {
  background: var(--cocoa);
  color: var(--cream-soft);
}
.chooser-card:hover .chooser-cta {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
/* "or" divider between the cards — a chunky circle that reads as a coin flip */
.chooser-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.chooser-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 60%;
  background: repeating-linear-gradient(180deg, var(--cocoa) 0 6px, transparent 6px 12px);
  opacity: .35;
}
.chooser-divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--terracotta);
  color: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* On narrow screens, stack the two cards and rotate the "or" pill */
@media (max-width: 780px) {
  .chooser-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .chooser-divider {
    height: 60px;
  }
  .chooser-divider::before {
    width: 60%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--cocoa) 0 6px, transparent 6px 12px);
  }
}

/* 3-up feature strip  ================================= */
.feature-strip {
  background: var(--cream);
  padding: 96px 0;
  border-bottom: 2px solid var(--cocoa);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  box-shadow: var(--shadow-md);
}
.feature-card:nth-child(1) { background: #F7D7C8; }
.feature-card:nth-child(2) { background: var(--sky); }
.feature-card:nth-child(3) { background: #F0DFA8; }
.feature-card:hover { transform: translate(-4px, -4px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--cocoa); }
.feature-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--cocoa);
  border-radius: 50%;
  background: var(--cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 30px;
  color: var(--cocoa);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 {
  font-family: var(--display);
  font-size: 30px;
  color: var(--cocoa);
  margin: 0 0 12px;
  line-height: .95;
}
.feature-card p { color: var(--cocoa-soft); margin: 0; font-size: 15.5px; line-height: 1.55; }
.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  padding-bottom: 3px;
  border-bottom: 2px solid var(--cocoa);
}
.feature-card a:hover { color: var(--terracotta); }

/* Greek-letter grid  ================================== */
.greek-section {
  background: var(--cocoa);
  color: var(--cream);
  padding: 120px 0;
  position: relative;
}
.greek-section .section-title h2 { color: var(--cream-soft); }
.greek-section .section-title p { color: rgba(245, 234, 213, .8); }
.greek-section .section-eyebrow::before,
.greek-section .section-eyebrow::after { background: var(--mustard); }
.greek-section .mono { color: var(--mustard); }
.greek-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.greek-tile {
  aspect-ratio: 1;
  background: var(--cream-soft);
  border: 2px solid var(--cream-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  color: var(--cocoa);
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s;
  position: relative;
  overflow: hidden;
}
.greek-tile .letter { font-size: 68px; line-height: 1; }
.greek-tile .name {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  margin-top: 4px;
}
.greek-tile:hover {
  transform: rotate(-4deg) scale(1.06);
  background: var(--mustard);
  z-index: 2;
}
.greek-tile:nth-child(3n) { background: var(--sky); }
.greek-tile:nth-child(4n) { background: #F7D7C8; }
.greek-tile:nth-child(5n) { background: #F0DFA8; }
.greek-tile:nth-child(3n):hover { background: var(--mustard); }
.greek-cta {
  text-align: center;
  margin-top: 24px;
}

/* Custom Design section ============================== */
.custom-section {
  background: var(--sky);
  border-top: 2px solid var(--cocoa);
  border-bottom: 2px solid var(--cocoa);
  padding: 120px 0;
  position: relative;
}
.custom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.custom-copy .mono { color: var(--terracotta); }
.custom-copy h2 { margin: 12px 0 20px; }
.custom-copy p { font-family: var(--editorial); font-size: 19px; line-height: 1.5; color: var(--cocoa); }
.steps {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s;
}
.step:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream-soft);
  font-family: var(--display);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cocoa);
}
.step h4 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--cocoa);
  line-height: 1;
}
.step p { margin: 0; font-size: 14.5px; color: var(--cocoa-soft); }
.custom-visual {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-visual .tee-mock {
  width: 82%;
  color: var(--terracotta);
  transform: rotate(-4deg);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.custom-visual:hover .tee-mock { transform: rotate(-1deg) scale(1.03); }
.custom-visual .tee-artwork {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  font-family: var(--display);
  font-size: 44px;
  color: var(--cream-soft);
  text-align: center;
  line-height: .95;
  pointer-events: none;
}
.custom-visual .tee-artwork small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: 8px;
}
.custom-visual .stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  background: var(--mustard);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  transform: rotate(6deg);
  box-shadow: var(--shadow-sm);
}

/* "Know Your Letters!" heading — 2-stage animation.
   Default (idle): gentle continuous sway.
   .is-hyped (first ~3.5s in view): aggressive shake, then decays back to idle. */
.know-your-letters {
  font-size: clamp(56px, 9vw, 120px) !important;
  animation: gentleSway 4.5s ease-in-out infinite;
  transform-origin: 50% 50%;
  display: inline-block;
}
.know-your-letters .bang {
  color: var(--mustard);
  display: inline-block;
  font-size: 1.4em;
  margin-left: 0.05em;
  animation: gentleBangBob 3.5s ease-in-out infinite;
  transform-origin: 50% 100%;
  text-shadow: 4px 4px 0 var(--terracotta);
}
/* Calm idle state (default) */
@keyframes gentleSway {
  0%, 100% { transform: translate(0, 0) rotate(-0.5deg); }
  50%      { transform: translate(0, -2px) rotate(0.5deg); }
}
@keyframes gentleBangBob {
  0%, 100% { transform: scale(1.05) rotate(4deg); }
  50%      { transform: scale(1.12) rotate(10deg); }
}
/* Aggressive burst — active only while .is-hyped is on the element */
.know-your-letters.is-hyped {
  animation: aggressiveShake 0.45s cubic-bezier(.36,.07,.19,.97) infinite;
}
.know-your-letters.is-hyped .bang {
  animation: bangSlam 0.6s cubic-bezier(.36,.07,.19,.97) infinite;
}
@keyframes aggressiveShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10%      { transform: translate(-3px, -2px) rotate(-1deg); }
  20%      { transform: translate(3px, 2px) rotate(1deg); }
  30%      { transform: translate(-4px, 1px) rotate(-1.5deg); }
  40%      { transform: translate(4px, -1px) rotate(1.5deg); }
  50%      { transform: translate(-2px, 3px) rotate(-0.5deg); }
  60%      { transform: translate(2px, -3px) rotate(0.5deg); }
  70%      { transform: translate(-3px, 2px) rotate(-1deg); }
  80%      { transform: translate(3px, -2px) rotate(1deg); }
  90%      { transform: translate(-1px, 1px) rotate(-0.5deg); }
}
@keyframes bangSlam {
  0%, 100% { transform: scale(1) rotate(6deg); }
  15%      { transform: scale(1.35) rotate(-8deg); }
  30%      { transform: scale(1.55) rotate(12deg); }
  45%      { transform: scale(1.25) rotate(-4deg); }
  60%      { transform: scale(1.45) rotate(10deg); }
  75%      { transform: scale(1.15) rotate(-6deg); }
  90%      { transform: scale(1.3) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .know-your-letters, .know-your-letters .bang { animation: none; }
}

/* Chapter drop visual — 3-way rotating photo with slight rightward shift */
.chapter-drop-visual {
  overflow: hidden;
}
.chapter-drop-visual .chapter-drop-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  transform: translate(-42%, -50%) rotate(-2deg); /* shifted right of center */
  opacity: 0;
  transition: opacity .6s ease-in-out;
  pointer-events: none;
}
.chapter-drop-visual .chapter-drop-img.is-active {
  opacity: 1;
}
.chapter-drop-visual .chapter-drop-img:nth-child(3) {
  transform: translate(-42%, -50%) rotate(2deg);
}
.chapter-drop-visual .chapter-drop-img:nth-child(4) {
  transform: translate(-42%, -50%) rotate(-1deg);
}

/* Testimonials  ===================================== */
.testimonials {
  background: var(--cream);
  border-bottom: 2px solid var(--cocoa);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  transition: transform .3s;
}
.testi:nth-child(1) { transform: rotate(-1.5deg); background: #F7D7C8; }
.testi:nth-child(2) { background: var(--sky); }
.testi:nth-child(3) { transform: rotate(1.5deg); background: #F0DFA8; }
.testi:hover { transform: rotate(0) translateY(-4px); }
.testi .stars { color: var(--mustard); font-size: 18px; letter-spacing: 3px; margin-bottom: 12px; }
.testi blockquote {
  font-family: var(--editorial);
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
  color: var(--cocoa);
  margin: 0 0 20px;
}
.testi .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  padding-top: 14px;
  border-top: 2px solid var(--cocoa);
}
.testi .who strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -.01em; margin-bottom: 2px; text-transform: none; }

/* CTA banner  ======================================= */
.cta-banner {
  background: var(--terracotta);
  color: var(--cream-soft);
  padding: 100px 0;
  text-align: center;
  border-bottom: 2px solid var(--cocoa);
  position: relative;
  overflow: hidden;
}
.cta-banner .mono { color: var(--mustard); }
.cta-banner h2 { color: var(--cream-soft); }
.cta-banner p { font-family: var(--editorial); font-size: 20px; color: rgba(245, 234, 213, .9); margin-bottom: 30px; }

/* FOOTER  =========================================== */
.footer {
  background: var(--cocoa);
  color: var(--cream);
  padding: 80px 0 40px;
  font-family: var(--sans);
}
.footer h4 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--mustard);
  margin-bottom: 16px;
}
.footer p, .footer a { color: rgba(245, 234, 213, .85); font-size: 15px; text-decoration: none; line-height: 1.7; }
.footer a:hover { color: var(--mustard); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 234, 213, .18);
}
.footer-tagline { margin-top: 20px; max-width: 320px; font-family: var(--editorial); font-size: 17px; color: rgba(245, 234, 213, .8); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-legal-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 234, 213, .55);
}
.footer-legal-row a { color: rgba(245, 234, 213, .55); }
.footer-legal-row a:hover { color: var(--mustard); }
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 234, 213, .5);
  flex-wrap: wrap;
  gap: 14px;
}

/* SHOP page  ======================================== */
.shop-hero {
  background: var(--cream);
  padding: 60px 0 40px;
  border-bottom: 2px solid var(--cocoa);
  text-align: center;
}
.shop-hero h1 {
  font-family: var(--display);
  font-size: clamp(60px, 10vw, 132px);
  color: var(--cocoa);
  line-height: .9;
  margin: 12px 0 20px;
}
.shop-filter {
  background: var(--sky);
  padding: 20px 0;
  border-bottom: 2px solid var(--cocoa);
  position: sticky;
  top: 108px;
  z-index: 90;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  padding: 8px 16px;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 18px;
  color: var(--cocoa);
  cursor: pointer;
  transition: transform .2s, background .2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.chip:hover, .chip.active { background: var(--terracotta); color: var(--cream-soft); transform: translate(0, 2px); box-shadow: 0 0 0 var(--cocoa); }

/* Secondary filter row (councils) */
.filter-chips-secondary { margin-top: 12px; gap: 6px; }
.chip-mini {
  padding: 5px 12px;
  background: var(--cream-soft);
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cocoa);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.chip-mini:hover, .chip-mini.active { background: var(--cocoa); color: var(--cream-soft); }

/* Search input */
.filter-search { max-width: 480px; margin: 12px auto 0; }
.filter-search input {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--cocoa);
}
.filter-search input:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.filter-search input::placeholder { color: var(--ink-muted); }

/* Placeholder tile marker (when the real product photo isn't in the folder yet) */
.product-media img.is-placeholder {
  opacity: 0.9;
}
.product-media:has(img.is-placeholder)::after {
  content: 'Coming soon';
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cocoa);
  z-index: 2;
  pointer-events: none;
}

/* ====================================================================
   PRODUCT DETAIL MODAL — opens on tile click.
   Shows the product with a color swatch row, front/back toggle, sizes.
   ==================================================================== */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.product-modal.is-open { display: flex; }
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 36, 21, .55);
  animation: pmFade .25s ease;
}
.product-modal-panel {
  position: relative;
  z-index: 2;
  background: var(--cream-soft);
  border: 3px solid var(--cocoa);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--cocoa);
  max-width: 1120px;
  width: 100%;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  animation: pmSlide .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes pmFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pmSlide { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }
.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .2s, transform .2s;
}
.product-modal-close:hover { background: var(--terracotta); color: var(--cream-soft); transform: rotate(90deg); }
.pm-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 0;
  align-items: stretch;
}
.pm-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  position: relative;
  border-right: 2px solid var(--cocoa);
  overflow: hidden;
  min-height: 100%;
  transition: background-color .3s ease;
}
.pm-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pm-art {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 56px;
  text-align: center;
  line-height: .95;
  pointer-events: none;
  transition: color .3s ease;
}
.pm-art small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 8px;
}
.pm-info { padding: 28px 32px 26px; display: flex; flex-direction: column; }
.pm-info .lede { font-size: 14px; color: var(--ink-muted); }
.pm-info-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  padding-right: 50px; /* clear the close-X button in the top-right */
  border-bottom: 1px solid rgba(61, 36, 21, .12);
}
.pm-tagline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}
.pm-section { margin-bottom: 14px; }
.pm-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.pm-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  cursor: pointer;
  transition: transform .2s;
  padding: 0;
  background-clip: padding-box;
}
.pm-swatch:hover { transform: scale(1.08); }
.pm-swatch.active {
  box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4.5px var(--cocoa);
  transform: scale(1.08);
}

/* Letter-color swatches — smaller than the colorway swatches so the section
   fits alongside the other pickers. First chip is a text-labeled "Auto"
   that matches the colorway's default contrast. */
.pm-print-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.pm-print-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  cursor: pointer;
  padding: 0;
  background-clip: padding-box;
  transition: transform .18s ease;
}
.pm-print-swatch:hover { transform: scale(1.15); }
.pm-print-swatch.active {
  box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--cocoa);
  transform: scale(1.15);
}
/* "Auto" chip is text — sized like a pill, matches the swatch height */
.pm-print-swatch.is-auto {
  width: auto;
  padding: 0 10px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.pm-print-swatch.is-auto:hover { transform: scale(1.06); }
.pm-print-swatch.is-auto.active {
  background: var(--terracotta);
  color: var(--cream-soft);
  box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--cocoa);
}
.pm-print-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--ink-muted, var(--cocoa-soft));
  margin: 8px 0 0;
}
.pm-print-hint em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 700;
}

/* Outline color picker — appears just under the Print style pills the
   moment Outlined or Twill is chosen. Same visual grammar as the letter
   color row, but the first chip is a "Default" pill instead of "Auto". */
.pm-outline-color-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(61, 36, 21, .18);
}
.pm-outline-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.pm-outline-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  cursor: pointer;
  padding: 0;
  background-clip: padding-box;
  transition: transform .18s ease;
}
.pm-outline-swatch:hover { transform: scale(1.15); }
.pm-outline-swatch.active {
  box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--cocoa);
  transform: scale(1.15);
}
.pm-outline-swatch.is-default {
  width: auto;
  padding: 0 10px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.pm-outline-swatch.is-default:hover { transform: scale(1.06); }
.pm-outline-swatch.is-default.active {
  background: var(--terracotta);
  color: var(--cream-soft);
  box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--cocoa);
}

/* Big / Little role picker — a row of pills (None / Big / Little / G-Big /
   G-Little), plus a text input that appears the moment a real role is picked. */
.pm-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pm-role {
  padding: 8px 14px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.pm-role:hover { background: var(--cream-soft); }
.pm-role.active {
  background: var(--cocoa);
  color: var(--cream-soft);
}
.pm-role-input {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--cocoa);
  background: var(--cream);
  border: 2px solid var(--cocoa);
  border-radius: 12px;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .12s ease;
}
.pm-role-input:focus {
  box-shadow: 0 0 0 3px var(--sky-soft, #B5D9F9), var(--shadow-sm);
}
.pm-role-input::placeholder {
  color: var(--cocoa-soft);
  opacity: .55;
  font-style: italic;
}
/* Big/Little font sub-picker — appears below the name input when a role
   is picked. Same font-pill styles as the main font picker; only the
   heading is compacted so the section doesn't feel like a repeat. */
.pm-role-fonts-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(61, 36, 21, .18);
}
.pm-label-sub {
  font-size: 10px !important;
  margin-bottom: 8px !important;
  opacity: .82;
}
.pm-role-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--ink-muted, var(--cocoa-soft));
  margin: 8px 0 0;
}
.pm-role-hint em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 700;
}

/* When the role tag is applied, the main letters and the role text stack
   vertically so the customer can read the whole design at once. */
.pm-art-main {
  display: block;
  line-height: .95;
  position: relative;       /* positioning context for the role tag below */
}
/* Jeans-only variant: side-print letters run VERTICALLY down the outer
   leg. Each character sits on its own line with a tighter line-height so
   the stack reads as a leg print, not scattered glyphs. */
.pm-art-main--stacked { line-height: 1; }
.pm-art-main--stacked .pm-art-stack-line {
  display: block;
  line-height: 1.05;
}
/* The Big/Little tag hangs BELOW the main letters without shifting them
   upward. It's absolute-positioned relative to .pm-art-main so the main
   letters stay anchored to the placement's top/left coordinates regardless
   of whether a tag is present. */
.pm-art-role {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: .18em;
  font-family: var(--mono);
  font-size: .32em;         /* scales relative to the main letters' font-size */
  letter-spacing: .18em;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.pm-views, .pm-sizes, .pm-placements { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-view, .pm-size, .pm-placement {
  padding: 6px 12px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-family: var(--display);
  font-size: 13px;
  color: var(--cocoa);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pm-size { min-width: 38px; text-align: center; padding: 6px 10px; }
.pm-view:hover, .pm-view.active,
.pm-size:hover, .pm-size.active,
.pm-placement:hover, .pm-placement.active {
  background: var(--cocoa);
  color: var(--cream-soft);
}
/* Disabled view button — single-image products (cap, tote, sweatpants)
   don't have a back mockup yet, so Back gets a muted appearance and no
   hover response. Still visible so customers see the option exists. */
.pm-view.is-disabled,
.pm-view:disabled {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--cream);
  color: var(--cocoa);
}
.pm-actions { margin-top: auto; padding-top: 14px; }
.pm-actions .btn { padding: 12px 18px; font-size: 16px; }
.pm-actions p.mono { font-size: 10px; margin-top: 10px; }

/* Quantity picker sits above the Add-to-cart CTA. Uses the same cocoa/
   cream border language as the rest of the modal for consistency. */
.pm-qty-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 14px; gap: 12px;
}
.pm-qty-row label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cocoa);
}
.pm-qty-controls {
  display: inline-flex; align-items: stretch;
  border: 2px solid var(--cocoa); border-radius: var(--radius-pill);
  overflow: hidden;
}
.pm-qty-btn {
  background: var(--cream); color: var(--cocoa);
  border: none; padding: 4px 14px; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
}
.pm-qty-btn:hover { background: var(--cocoa); color: var(--cream-soft); }
.pm-qty-input {
  width: 52px; text-align: center;
  border: none; border-left: 2px solid var(--cocoa); border-right: 2px solid var(--cocoa);
  background: var(--cream-soft); color: var(--cocoa);
  font-family: var(--display); font-size: 16px; font-weight: 700;
  padding: 4px 0;
}
.pm-qty-input::-webkit-inner-spin-button,
.pm-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pm-qty-input[type=number] { -moz-appearance: textfield; }

/* Post-click confirmation on the Add-to-cart CTA. Quickly turns green so
   the customer sees the action registered before the label restores. */
#pm-add-to-cart.is-added {
  background: var(--kelly, #2FA84F) !important;
  border-color: var(--kelly, #2FA84F) !important;
  color: var(--cream-soft) !important;
}

/* Two-column body grid — chapter/custom on the left, colorway/view/size on the right */
.pm-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 4px;
}
.pm-body-left, .pm-body-right { min-width: 0; }

/* Custom letter builder */
.pm-custom-input {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius);
  background: var(--cream-soft);
  font-family: var(--display);
  font-size: 16px;
  color: var(--cocoa);
  letter-spacing: .04em;
  transition: border-color .2s, box-shadow .2s;
}
.pm-custom-input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, .18);
}
.pm-custom-preview {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--cream);
  border: 2px dashed var(--cocoa);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
}
.pm-custom-preview-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pm-custom-preview-letters {
  font-family: var(--display);
  font-size: 24px;
  color: var(--cocoa);
  line-height: 1;
  letter-spacing: .04em;
  text-align: right;
}
.pm-custom-preview.is-empty .pm-custom-preview-letters {
  color: var(--ink-muted);
  opacity: .5;
}
.pm-custom-help {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin: 6px 2px 0;
  line-height: 1.4;
}

/* ============================================================
   Font picker — 8 typography styles for chapter/custom letters.
   Each button is labeled in its own font so the customer sees
   what they're picking. Active button is highlighted cocoa.
   ============================================================ */
.pm-fonts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pm-font {
  padding: 7px 12px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  color: var(--cocoa);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.pm-font:hover { transform: translateY(-1px); background: var(--cream); }
.pm-font.active { background: var(--cocoa); color: var(--cream-soft); }

/* Each button labeled in its own font for a live preview */
.pm-font-bubble  { font-family: 'Bagel Fat One', 'Cooper Black', serif; letter-spacing: .01em; }
.pm-font-block   { font-family: 'Anton', 'Impact', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.pm-font-varsity { font-family: 'Alfa Slab One', 'Rockwell', serif; font-size: 13px; }
.pm-font-serif   { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 16px; font-style: italic; }
.pm-font-script  { font-family: 'Sacramento', 'Brush Script MT', cursive; font-size: 19px; padding: 4px 12px 6px; }
.pm-font-gothic  { font-family: 'UnifrakturCook', 'Blackletter', serif; font-weight: 700; font-size: 15px; }
.pm-font-modern  { font-family: 'Manrope', 'Helvetica', sans-serif; font-weight: 800; letter-spacing: -.01em; }
.pm-font-seal     { font-family: 'Cinzel', 'Trajan', serif; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.pm-font-slab     { font-family: 'Roboto Slab', 'Rockwell', serif; font-weight: 900; font-size: 14px; }
.pm-font-athletic { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.pm-font-garamond { font-family: 'EB Garamond', Georgia, serif; font-weight: 700; font-style: italic; font-size: 16px; }
.pm-font-formal   { font-family: 'Great Vibes', 'Brush Script MT', cursive; font-size: 20px; padding: 4px 12px 6px; }

/* ============================================================
   Print-style picker — outline treatment for the letters.
   Plain    → just the print color, no outline
   Outlined → letter + white outline (~3px)
   Twill    → letter + thin white inner + thick cocoa outer
   ============================================================ */
.pm-outlines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pm-outline {
  padding: 7px 14px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  color: var(--cocoa);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.pm-outline:hover { transform: translateY(-1px); background: var(--cream); }
.pm-outline.active { background: var(--cocoa); color: var(--cream-soft); }

/* Outline TREATMENTS applied to the on-shirt letter overlay (.pm-art). */
.pm-art[data-outline="plain"] {
  text-shadow: none;
  -webkit-text-stroke: 0;
}
/* Outline treatments use a --pm-outline-color CSS variable that the JS can
   set to a picked hex; when unset, defaults win (white for single, cocoa
   for the outer ring of Twill). */
.pm-art[data-outline="single"] {
  text-shadow:
    -2px -2px 0 var(--pm-outline-color, #FFFFFF), 0 -2px 0 var(--pm-outline-color, #FFFFFF), 2px -2px 0 var(--pm-outline-color, #FFFFFF),
    -2px  0   0 var(--pm-outline-color, #FFFFFF),                                            2px  0   0 var(--pm-outline-color, #FFFFFF),
    -2px  2px 0 var(--pm-outline-color, #FFFFFF), 0  2px 0 var(--pm-outline-color, #FFFFFF), 2px  2px 0 var(--pm-outline-color, #FFFFFF);
}
.pm-art[data-outline="double"] {
  text-shadow:
    /* thin cream inner outline (~2px) — always stays cream so the two
       rings visually separate; the "gap" between letter and outer color. */
    -2px -2px 0 #FBF6EC, 0 -2px 0 #FBF6EC, 2px -2px 0 #FBF6EC,
    -2px  0   0 #FBF6EC,                    2px  0   0 #FBF6EC,
    -2px  2px 0 #FBF6EC, 0  2px 0 #FBF6EC, 2px  2px 0 #FBF6EC,
    /* thick outer outline (~5px) — this is the color the customer picks. */
    -5px -5px 0 var(--pm-outline-color, #3D2415), 0 -5px 0 var(--pm-outline-color, #3D2415), 5px -5px 0 var(--pm-outline-color, #3D2415),
    -5px  0   0 var(--pm-outline-color, #3D2415),                                            5px  0   0 var(--pm-outline-color, #3D2415),
    -5px  5px 0 var(--pm-outline-color, #3D2415), 0  5px 0 var(--pm-outline-color, #3D2415), 5px  5px 0 var(--pm-outline-color, #3D2415);
}

/* The subline (small text like "The Row · 2026") stays clean — never
   picks up the letter outline treatment, always in mono font, and
   in the print color without any shadows. */
.pm-art[data-outline="single"] small,
.pm-art[data-outline="double"] small {
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.pm-art small {
  font-family: var(--mono) !important;
}

/* Big / Little role tag — a fraction of the main letters' font-size, so
   the parent's 2px/5px text-shadow outlines end up disproportionately
   thick and jagged on the smaller glyphs. Override with a scaled-down
   outline for the role span. */
.pm-art[data-outline="single"] .pm-art-role {
  text-shadow:
    -1px -1px 0 var(--pm-outline-color, #FFFFFF), 0 -1px 0 var(--pm-outline-color, #FFFFFF), 1px -1px 0 var(--pm-outline-color, #FFFFFF),
    -1px  0   0 var(--pm-outline-color, #FFFFFF),                                            1px  0   0 var(--pm-outline-color, #FFFFFF),
    -1px  1px 0 var(--pm-outline-color, #FFFFFF), 0  1px 0 var(--pm-outline-color, #FFFFFF), 1px  1px 0 var(--pm-outline-color, #FFFFFF);
}
.pm-art[data-outline="double"] .pm-art-role {
  text-shadow:
    /* thin cream inner (~1px) — fixed, the "gap" */
    -1px -1px 0 #FBF6EC, 0 -1px 0 #FBF6EC, 1px -1px 0 #FBF6EC,
    -1px  0   0 #FBF6EC,                    1px  0   0 #FBF6EC,
    -1px  1px 0 #FBF6EC, 0  1px 0 #FBF6EC, 1px  1px 0 #FBF6EC,
    /* thick outer (~2px) — picks up the customer's outline color */
    -2px -2px 0 var(--pm-outline-color, #3D2415), 0 -2px 0 var(--pm-outline-color, #3D2415), 2px -2px 0 var(--pm-outline-color, #3D2415),
    -2px  0   0 var(--pm-outline-color, #3D2415),                                            2px  0   0 var(--pm-outline-color, #3D2415),
    -2px  2px 0 var(--pm-outline-color, #3D2415), 0  2px 0 var(--pm-outline-color, #3D2415), 2px  2px 0 var(--pm-outline-color, #3D2415);
}

body.modal-open { overflow: hidden; }

/* ================================================================
   DESIGN STUDIO (custom page) — Photoshop-lite canvas
   ================================================================ */

.design-studio { background: var(--cream); padding: 60px 20px 80px; border-top: 2px solid var(--cocoa); border-bottom: 2px solid var(--cocoa); }
.design-studio .section-title { text-align: center; max-width: 700px; margin: 0 auto 44px; }

.studio {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

/* Sidebar shared */
.studio-left, .studio-right {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--cocoa);
  padding: 20px;
  position: sticky;
  top: 24px;
}
.studio-block { margin-bottom: 24px; }
.studio-block:last-child { margin-bottom: 0; }
.studio-block h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.studio-current { font-family: var(--display); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--terracotta); }
.studio-hint { font-family: var(--mono); font-size: 9px; color: var(--ink-muted); margin: 6px 0 0; letter-spacing: .04em; }
.studio-block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio-block-actions { margin-top: 30px; padding-top: 20px; border-top: 1px dashed rgba(61,36,21,.2); }

/* Garment picker */
.studio-garments { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.studio-garment {
  padding: 8px 10px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.studio-garment:hover { transform: translateY(-1px); }
.studio-garment.is-active { background: var(--cocoa); color: var(--cream-soft); }

/* Color swatches */
.studio-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  cursor: pointer;
  transition: transform .2s;
  padding: 0;
}
.studio-color:hover { transform: scale(1.1); }
.studio-color.is-active { box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--cocoa); }

/* View toggle */
.studio-views { display: flex; gap: 6px; }
.studio-view {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.studio-view.active { background: var(--cocoa); color: var(--cream-soft); }

/* Layers list */
.studio-layers-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.studio-layers-empty {
  font-family: var(--mono); font-size: 10px; color: var(--ink-muted);
  padding: 12px 8px; text-align: center; border: 1.5px dashed rgba(61,36,21,.2); border-radius: 8px;
}
.studio-layer-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1.5px solid var(--cocoa); border-radius: 8px;
  background: var(--cream); color: var(--cocoa); cursor: pointer;
  transition: background .15s;
  text-align: left; width: 100%;
}
.studio-layer-row:hover { background: var(--cream-soft); }
.studio-layer-row.is-active { background: var(--cocoa); color: var(--cream-soft); }
.studio-layer-row .studio-layer-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-layer-delete {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--display);
  font-size: 14px; line-height: 1;
  cursor: pointer;
  opacity: .5;
  transition: opacity .15s, background .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.studio-layer-row:hover .studio-layer-delete { opacity: 1; }
.studio-layer-delete:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream-soft) !important;
  opacity: 1;
}
.studio-layer-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--terracotta); color: var(--cream-soft);
  font-family: var(--display); font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.studio-layer-label { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.studio-add-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--cocoa);
  border-radius: 8px;
  background: transparent;
  color: var(--cocoa);
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 6px;
}
.studio-add-btn:last-child { margin-bottom: 0; }
.studio-add-btn:hover { background: var(--cream); }
.studio-add-image-btn { border-color: var(--terracotta); color: var(--terracotta); }
.studio-add-image-btn:hover { background: rgba(217, 93, 57, .08); }
.studio-download-btn {
  border-style: solid;
  background: var(--cocoa);
  color: var(--cream-soft);
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: 6px;
}
.studio-download-btn:hover { background: var(--terracotta); color: var(--cream-soft); }
.studio-download-btn:disabled { opacity: .5; cursor: wait; }

.studio-remove-bg-btn {
  border-color: var(--terracotta);
  color: var(--terracotta);
  font-weight: 700;
}
.studio-remove-bg-btn:hover { background: rgba(217, 93, 57, .08); }
.studio-remove-bg-btn:disabled { opacity: .5; cursor: wait; }

/* Checkered background in the image preview so transparent PNGs read as transparent
   (like Photoshop / Figma). Solid images just cover it. */
.studio-image-preview {
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: var(--cream);
}

/* When exporting to PNG, hide all editor chrome (selection outlines, guides, hints)
   so the exported image only shows the design itself. */
.studio-canvas.is-exporting .studio-layer { border-color: transparent !important; }
.studio-canvas.is-exporting .studio-canvas-hint,
.studio-canvas.is-exporting .studio-guide { display: none !important; }

/* During PNG export, strip the cream background, cocoa border, rounded
   corners, and drop-shadow so the downloaded file is a clean transparent
   PNG showing only the garment + user's design layers. html2canvas is
   already called with backgroundColor: null, but the canvas element itself
   paints its own background/border unless we override them here. */
.studio-canvas.is-exporting {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Image layer preview in the right panel */
.studio-image-preview {
  width: 100%;
  aspect-ratio: 1;
  max-height: 140px;
  background: var(--cream);
  border: 1.5px solid var(--cocoa);
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.studio-image-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Center stage */
.studio-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.studio-canvas {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 640px;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--cocoa);
  overflow: hidden;
  touch-action: none;
  transition: box-shadow .2s, border-color .2s;
}
.studio-canvas.is-drop-target {
  border-color: var(--terracotta);
  border-style: dashed;
  box-shadow: 8px 8px 0 var(--terracotta);
}
.studio-canvas.is-drop-target::before {
  content: "Drop image to add layer";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 24px;
  color: var(--terracotta);
  background: rgba(217, 93, 57, .06);
  pointer-events: none;
  z-index: 20;
}
.studio-garment-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  pointer-events: none;
  user-select: none;
}
.studio-canvas-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(255,255,255,.8);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px dashed rgba(61,36,21,.3);
  pointer-events: none;
}
.studio-stage-tip {
  font-family: var(--mono); font-size: 10px; color: var(--ink-muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.studio-stage-tip .mono { font-weight: 700; color: var(--terracotta); margin-right: 6px; }

/* Alignment guides — Canva-style dotted lines shown while dragging.
   Vertical line = horizontal center of canvas.
   Horizontal line = vertical center of canvas.
   Chest line    = ~42% down (typical chest-print position). */
.studio-guide {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 5;
}
.studio-guide.is-active { opacity: 1; }
.studio-guide-v {
  top: 20px; bottom: 20px;
  left: 50%;
  width: 0;
  border-left: 2px dashed var(--terracotta);
  transform: translateX(-1px);
}
.studio-guide-h {
  left: 20px; right: 20px;
  top: 50%;
  height: 0;
  border-top: 2px dashed var(--terracotta);
  transform: translateY(-1px);
}
.studio-guide-chest {
  left: 20px; right: 20px;
  top: 42%;
  height: 0;
  border-top: 2px dashed var(--mustard);
  transform: translateY(-1px);
}
/* Small label at the end of each guide so the customer knows what it is */
.studio-guide-v::after,
.studio-guide-h::after,
.studio-guide-chest::after {
  position: absolute;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--terracotta);
  color: var(--cream-soft);
  white-space: nowrap;
}
.studio-guide-v::after      { content: "CENTER"; top: 4px; left: 4px; }
.studio-guide-h::after      { content: "MIDDLE"; top: -18px; left: 4px; }
.studio-guide-chest::after  { content: "CHEST"; top: -18px; right: 4px; background: var(--mustard); color: var(--cocoa); }

/* Two chest-print targets — small dotted circles at the standard
   left / right chest print positions (traditional pocket-print placement).
   Half-shoulder-width from center (38% / 62% across), ~30% down. */
.studio-guide-left-chest,
.studio-guide-right-chest {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--peach);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
}
.studio-guide-left-chest  { top: 30%; left: 38%; }
.studio-guide-right-chest { top: 30%; left: 62%; }

/* Small crosshair dot in the middle of each target */
.studio-guide-left-chest::before,
.studio-guide-right-chest::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--peach);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Label below each target */
.studio-guide-left-chest::after,
.studio-guide-right-chest::after {
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--peach);
  color: var(--cocoa);
  padding: 3px 8px;
}
.studio-guide-left-chest::after  { content: "L. CHEST"; }
.studio-guide-right-chest::after { content: "R. CHEST"; }

/* Chapter picker in the design studio — searchable dropdown of 130 orgs */
.studio-chapter-picker { position: relative; }
.studio-chapter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 4px;
  background: var(--cream-soft);
  border: 1.5px solid var(--cocoa);
  border-radius: 12px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 6px 20px rgba(61, 36, 21, .18);
}
.studio-chapter-dropdown.is-open { display: block; }
.studio-chapter-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(61, 36, 21, .1);
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  color: var(--cocoa);
  transition: background .15s;
}
.studio-chapter-row:last-child { border-bottom: none; }
.studio-chapter-row:hover, .studio-chapter-row.is-active { background: var(--cream); }
.studio-chapter-row .studio-chapter-greek {
  font-family: var(--display);
  font-size: 20px;
  color: var(--terracotta);
  letter-spacing: .02em;
}
.studio-chapter-row .studio-chapter-org {
  font-family: var(--display);
  font-size: 14px;
  color: var(--cocoa);
  line-height: 1.2;
}
.studio-chapter-row .studio-chapter-council {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 3px 8px;
  background: var(--cream);
  border-radius: 999px;
}
.studio-chapter-empty {
  padding: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}

/* Text layers ON the canvas */
.studio-layer {
  position: absolute;
  cursor: grab;
  user-select: none;
  padding: 4px 8px;
  border: 2px dashed transparent;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
  transition: border-color .15s;
  touch-action: none;
}
.studio-layer:hover { border-color: rgba(217, 93, 57, .5); }
.studio-layer.is-selected { border-color: var(--terracotta); border-style: solid; }
.studio-layer:active { cursor: grabbing; }
.studio-layer[data-outline="single"] {
  text-shadow:
    -2px -2px 0 var(--outline-color, #FBF6EC), 0 -2px 0 var(--outline-color, #FBF6EC), 2px -2px 0 var(--outline-color, #FBF6EC),
    -2px  0   0 var(--outline-color, #FBF6EC),                                            2px  0   0 var(--outline-color, #FBF6EC),
    -2px  2px 0 var(--outline-color, #FBF6EC), 0  2px 0 var(--outline-color, #FBF6EC), 2px  2px 0 var(--outline-color, #FBF6EC);
}
/* Curved text is rendered as SVG (see custom-studio.js renderTextContent);
   the SVG has its own stroke, so we suppress the CSS text-shadow to avoid
   double-outlining. Also let the layer's bounding box grow with the SVG. */
.studio-layer.is-curved { text-shadow: none !important; line-height: 0; }
.studio-layer.is-curved svg { overflow: visible; }
.studio-layer[data-outline="double"] {
  text-shadow:
    -2px -2px 0 var(--outline-color, #FBF6EC), 0 -2px 0 var(--outline-color, #FBF6EC), 2px -2px 0 var(--outline-color, #FBF6EC),
    -2px  0   0 var(--outline-color, #FBF6EC),                                            2px  0   0 var(--outline-color, #FBF6EC),
    -2px  2px 0 var(--outline-color, #FBF6EC), 0  2px 0 var(--outline-color, #FBF6EC), 2px  2px 0 var(--outline-color, #FBF6EC),
    -5px -5px 0 #3D2415, 0 -5px 0 #3D2415, 5px -5px 0 #3D2415,
    -5px  0   0 #3D2415,                    5px  0   0 #3D2415,
    -5px  5px 0 #3D2415, 0  5px 0 #3D2415, 5px  5px 0 #3D2415;
}

/* Image layers on the canvas */
.studio-layer.is-image {
  padding: 0;
  display: block;
  background: transparent;
  overflow: visible;
}
.studio-layer.is-image img {
  display: block;
  max-width: none;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Right sidebar: props */
.studio-empty {
  text-align: center;
  padding: 20px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-muted);
  line-height: 1.5;
}
.studio-empty-icon {
  font-family: var(--display);
  font-size: 40px;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.studio-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--cocoa);
  border-radius: 8px;
  background: var(--cream);
  font-family: var(--display);
  font-size: 18px;
  color: var(--cocoa);
  letter-spacing: .04em;
}
.studio-input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(217,93,57,.15); }

/* Font pills */
.studio-fonts, .studio-outlines { display: flex; flex-wrap: wrap; gap: 4px; }
.studio-font, .studio-outline {
  padding: 6px 10px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cocoa);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.studio-font:hover, .studio-outline:hover { background: var(--cream-soft); }
.studio-font.active, .studio-outline.active { background: var(--cocoa); color: var(--cream-soft); }
.studio-outline { font-family: var(--display); }

/* Each font pill labeled in its own font */
.studio-font-bubble   { font-family: 'Bagel Fat One', 'Cooper Black', serif; letter-spacing: .01em; }
.studio-font-block    { font-family: 'Anton', 'Impact', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.studio-font-varsity  { font-family: 'Alfa Slab One', 'Rockwell', serif; font-size: 11px; }
.studio-font-slab     { font-family: 'Roboto Slab', 'Rockwell', serif; font-weight: 900; font-size: 12px; }
.studio-font-athletic { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.studio-font-serif    { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 14px; font-style: italic; }
.studio-font-garamond { font-family: 'EB Garamond', Georgia, serif; font-weight: 700; font-style: italic; font-size: 14px; }
.studio-font-script   { font-family: 'Sacramento', 'Brush Script MT', cursive; font-size: 17px; padding: 3px 10px 5px; }
.studio-font-formal   { font-family: 'Great Vibes', 'Brush Script MT', cursive; font-size: 17px; padding: 3px 10px 5px; }
.studio-font-gothic   { font-family: 'UnifrakturCook', 'Blackletter', serif; font-weight: 700; font-size: 13px; }
.studio-font-modern   { font-family: 'Manrope', 'Helvetica', sans-serif; font-weight: 800; letter-spacing: -.01em; }
.studio-font-seal     { font-family: 'Cinzel', 'Trajan', serif; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }

/* Color pickers */
input[type="color"] {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--cocoa);
  border-radius: 8px;
  background: var(--cream);
  cursor: pointer;
}

/* Range sliders */
input[type="range"] {
  width: 100%;
  accent-color: var(--terracotta);
}

/* Quick-color swatches — chapter-friendly presets */
.studio-color-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.studio-color-swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--cocoa);
  cursor: pointer;
  padding: 0;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.studio-color-swatch:hover { transform: scale(1.12); }
.studio-color-swatch:focus { outline: none; box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--cocoa); }
/* White swatch needs a visible border since it matches the panel color */
.studio-color-swatch[data-hex="#FFFFFF"] { border-color: var(--ink-muted); }

/* Delete button */
.studio-delete-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.studio-delete-btn:hover { background: var(--terracotta); color: var(--cream-soft); }

/* Actions row (below studio) */
.studio-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 40px auto 0;
  text-align: center;
}

/* Mobile: stack panels */
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio-left, .studio-right { position: static; }
  .studio-canvas { max-width: 100%; }
}

@media (max-width: 800px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-media { border-right: none; border-bottom: 2px solid var(--cocoa); padding: 24px; min-height: 320px; }
  .pm-art { font-size: 42px; }
  .pm-info { padding: 26px 22px; }
  .pm-body-grid { grid-template-columns: 1fr; gap: 4px; }
  .product-modal-panel { max-height: calc(100vh - 40px); }
  .product-modal { padding: 20px 12px; }
}

/* Make product tiles feel clickable */
.product { cursor: pointer; }

/* Product-type tiles are bigger, less busy — no Greek letters overlay */
.product-type-tile .product-media { padding: 30px; }
.product-type-tile .product-media img {
  width: 92%;
  max-height: 92%;
  object-fit: contain;
  animation: bobInSequence 8s ease-in-out infinite;
}
/* Sequential Mexican-wave — each tile bobs one at a time, top-left → bottom-right */
.product-type-tile:nth-child(1) .product-media img { animation-delay: 0s; }
.product-type-tile:nth-child(2) .product-media img { animation-delay: 1s; }
.product-type-tile:nth-child(3) .product-media img { animation-delay: 2s; }
.product-type-tile:nth-child(4) .product-media img { animation-delay: 3s; }
.product-type-tile:nth-child(5) .product-media img { animation-delay: 4s; }
.product-type-tile:nth-child(6) .product-media img { animation-delay: 5s; }
.product-type-tile:nth-child(7) .product-media img { animation-delay: 6s; }
.product-type-tile:nth-child(8) .product-media img { animation-delay: 7s; }
/* Each tile is at rest for most of the 8s cycle. It only rises during
   the first ~12.5% (its 1s window), then holds still until the loop restarts. */
@keyframes bobInSequence {
  0%   { transform: translateY(0); }
  6%   { transform: translateY(-18px); }
  12%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-type-tile .product-media img { animation: none; }
}

/* Chapter picker inside the modal */
.pm-chapter-picker { position: relative; }
.pm-chapter-picker input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--cocoa);
}
.pm-chapter-picker input:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
.pm-chapter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--cocoa);
  z-index: 20;
}
.pm-chapter-dropdown.is-open { display: block; }
.pm-chapter-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.pm-chapter-row:hover, .pm-chapter-row.is-active {
  background: var(--sky);
}
.pm-chapter-row:last-child { border-bottom: 0; }
.pm-chapter-greek {
  font-family: var(--display);
  font-size: 18px;
  color: var(--cocoa);
  line-height: 1;
}
.pm-chapter-org {
  font-family: var(--editorial);
  font-size: 15px;
  color: var(--cocoa);
  line-height: 1.2;
}
.pm-chapter-council {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pm-chapter-empty {
  padding: 20px;
  text-align: center;
  font-family: var(--editorial);
  color: var(--ink-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
}
.product {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.product:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--cocoa); }
.product-media {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  border-bottom: 2px solid var(--cocoa);
  overflow: hidden;
}
.product-media svg { width: 82%; }

/* ΚΨΣ preview mark on tiles — shows the customer what a printed garment looks like.
   The modal (expanded view) never renders this — it opens blank so the customer
   can customize with their own letters. */
.product-mark {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 34px;
  color: var(--cocoa);
  letter-spacing: .02em;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
/* Per-garment placement so ΚΨΣ lands where a real print would sit */
.product-mark-tee         { top: 46%; font-size: 34px; }
.product-mark-long-sleeve { top: 46%; font-size: 32px; }
.product-mark-crew        { top: 47%; font-size: 34px; }
.product-mark-hoodie      { top: 50%; font-size: 32px; }
.product-mark-cap         { top: 44%; font-size: 20px; letter-spacing: .05em; }
.product-mark-tote        { top: 48%; font-size: 30px; }
.product-mark-sweatpants  { top: 40%; font-size: 18px; letter-spacing: .06em; }
.product .art {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 42px;
  color: var(--cream-soft);
  text-align: center;
  line-height: .95;
  pointer-events: none;
  letter-spacing: -.01em;
}
.product .art small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; opacity: .85; }
.product-info { padding: 20px 22px; }
.product-info h3 { font-family: var(--display); font-size: 22px; color: var(--cocoa); margin: 0 0 4px; line-height: 1; }
.product-info .meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.product-info .price { font-family: var(--display); font-size: 22px; color: var(--terracotta); margin-top: 8px; }

/* CUSTOM page  ==================================== */
.uploader-mock {
  background: var(--cream-soft);
  border: 2px dashed var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  transition: background .3s;
  cursor: pointer;
  position: relative;
}
.uploader-mock:hover { background: #F7D7C8; }
.uploader-mock .icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid var(--cocoa);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 40px;
  color: var(--cocoa);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.uploader-mock h3 { font-family: var(--display); font-size: 30px; color: var(--cocoa); margin: 0 0 8px; }
.uploader-mock p { color: var(--cocoa-soft); font-size: 15px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 2px solid var(--cocoa);
  padding: 20px 0;
}
.faq-q {
  font-family: var(--display);
  font-size: 24px;
  color: var(--cocoa);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
  line-height: 1.15;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-family: var(--display);
  font-size: 32px;
  color: var(--terracotta);
  transition: transform .3s;
  flex: 0 0 auto;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 12px 0 0; color: var(--cocoa-soft); font-family: var(--editorial); font-size: 18px; line-height: 1.5; }

/* ABOUT page  ================================== */
.about-hero {
  background: var(--sky);
  padding: 80px 0 100px;
  border-bottom: 2px solid var(--cocoa);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-story {
  padding: 100px 0;
  max-width: 720px;
  margin: 0 auto;
}
.about-story p {
  font-family: var(--editorial);
  font-size: 20px;
  line-height: 1.6;
  color: var(--cocoa-soft);
  margin-bottom: 24px;
}
.about-story h2 { margin-top: 40px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.value {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.value:nth-child(1) { background: #F7D7C8; }
.value:nth-child(2) { background: var(--sky); }
.value:nth-child(3) { background: #F0DFA8; }
.value h4 { font-family: var(--display); font-size: 26px; color: var(--cocoa); margin: 0 0 8px; line-height: 1; }
.value p { font-size: 15px; color: var(--cocoa-soft); margin: 0; }

/* CONTACT page  =============================== */
.contact-hero {
  background: var(--terracotta);
  color: var(--cream-soft);
  padding: 80px 0 100px;
  border-bottom: 2px solid var(--cocoa);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-hero .hero-char {
  position: absolute;
  right: 80px;
  bottom: 30px;
  width: 260px;
  height: auto;
  max-width: none;
  z-index: 1;
  pointer-events: none;
  animation: charBreathe 3.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@media (max-width: 900px) {
  .contact-hero .hero-char { display: none; }
}
.contact-hero h1 { color: var(--cream-soft); }
.contact-hero .mono { color: var(--mustard); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 0;
}
.contact-info h3 { font-family: var(--display); font-size: 30px; color: var(--cocoa); margin: 0 0 10px; }
.contact-info .info-block { padding: 24px 0; border-bottom: 2px solid var(--cocoa); }
.contact-info p { margin: 4px 0; font-size: 16px; color: var(--cocoa-soft); }
.contact-form {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cocoa);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* Waves  ========================================== */
.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--cream);
}

/* Prose (legal pages)  =========================== */
.prose { max-width: 720px; margin: 0 auto; padding: 60px 32px; }
.prose h2 { font-family: var(--display); font-size: 30px; color: var(--cocoa); margin: 40px 0 12px; }
.prose p, .prose li { font-family: var(--editorial); font-size: 18px; line-height: 1.55; color: var(--cocoa-soft); }
.prose a { color: var(--terracotta); border-bottom: 1px solid var(--terracotta); }

/* Responsive  ==================================== */
@media (max-width: 1000px) {
  .greek-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid, .testi-grid, .values-grid { grid-template-columns: 1fr; }
  .custom-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-inner { grid-template-columns: auto 1fr auto; padding: 14px 20px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cart { font-size: 10px; padding: 6px 12px; }
  .rr-logo-img { height: 46px; border-radius: 10px; }
  .footer .rr-logo-img { height: 60px; }
  .hero { padding: 60px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner .hero-col { display: none; }
  .hero-sun { width: 130px; }
  section { padding: 60px 0; }
  .feature-strip, .greek-section, .custom-section { padding: 70px 0; }
  .greek-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-row { flex-direction: column; gap: 8px; }
  .marquee { font-size: 20px; }
  .cta-banner { padding: 70px 0; }
  .contact-form { padding: 26px 22px; }
}

/* Reveal on scroll  =============================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .hero-sun { animation: none !important; }
  * { transition: none !important; }
}

/* Focus a11y  ===================================== */
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible, .greek-tile:focus-visible, .faq-q:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

/* ====================================================================
   JOURNAL PAGE — chapter features, category chips, newsletter signup
   ==================================================================== */

.journal-hero {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--cream) 100%);
  border-bottom: 2px solid var(--cocoa);
  padding: 74px 20px 68px;
  position: relative;
  overflow: hidden;
}
.journal-hero .lede { font-family: var(--editorial); font-size: 20px; color: var(--cocoa-soft); }
.journal-hero-marquee {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  opacity: .75;
}
.journal-hero-marquee span:nth-child(odd) { color: var(--cocoa); }

/* --- Featured hero post (large) --- */
.post-featured {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: var(--cream-soft);
  border: 3px solid var(--cocoa);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--cocoa);
  margin-bottom: 40px;
}
.post-featured-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 2px solid var(--cocoa);
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.post-featured-photo {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, var(--peach), var(--terracotta) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s ease;
}
.post-featured-media:hover .post-featured-photo { transform: scale(1.04); }
.post-featured-letters {
  font-family: var(--display);
  font-size: 120px;
  color: var(--cream-soft);
  text-shadow: 6px 6px 0 var(--cocoa);
  line-height: 1;
}
.post-featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--cocoa);
  color: var(--cream-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.post-featured-body .mono { display: block; margin-bottom: 8px; }
.post-featured-body h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--cocoa);
  line-height: 1.02;
  margin: 8px 0 14px;
}
.post-featured-body p {
  font-family: var(--editorial);
  font-size: 17px;
  color: var(--cocoa-soft);
  line-height: 1.55;
  margin: 0 0 18px;
}

/* --- Category chips --- */
.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(61, 36, 21, .12);
}
.post-chip {
  padding: 8px 16px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  font-family: var(--display);
  font-size: 14px;
  color: var(--cocoa);
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.post-chip:hover { transform: translateY(-1px); }
.post-chip.active { background: var(--cocoa); color: var(--cream-soft); }

/* --- Post cards grid --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--cocoa);
}
.post-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  border-bottom: 2px solid var(--cocoa);
  text-decoration: none;
  overflow: hidden;
}
.post-card-letters {
  font-family: var(--display);
  font-size: 84px;
  color: var(--cocoa);
  text-shadow: 3px 3px 0 rgba(61, 36, 21, .12);
  line-height: 1;
  letter-spacing: .02em;
  transition: transform .35s ease;
}
.post-card-media:hover .post-card-letters { transform: scale(1.06) rotate(-2deg); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.post-card-body h3 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--cocoa);
  line-height: 1.1;
  margin: 0 0 10px;
}
.post-card-body p {
  font-family: var(--editorial);
  font-size: 15px;
  color: var(--cocoa-soft);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.post-card .post-meta { margin-top: auto; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

/* --- Newsletter card --- */
.newsletter-cta {
  padding: 60px 20px;
}
.newsletter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream-soft);
  border: 3px solid var(--cocoa);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--cocoa);
  overflow: hidden;
}
.newsletter-copy {
  padding: 44px 40px;
  background: linear-gradient(160deg, var(--mustard) 0%, var(--peach) 100%);
  color: var(--cocoa);
  border-right: 2px solid var(--cocoa);
}
.newsletter-copy .mono { color: var(--cocoa); opacity: .8; }
.newsletter-copy h2 { color: var(--cocoa); margin: 10px 0 14px; }
.newsletter-copy p { font-family: var(--editorial); font-size: 16px; color: var(--cocoa); line-height: 1.55; margin: 0 0 22px; }
.newsletter-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cocoa);
}
.newsletter-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.newsletter-perks li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--cocoa);
  color: var(--mustard);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 13px;
  flex-shrink: 0;
}

.newsletter-form { padding: 44px 40px; display: flex; flex-direction: column; }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--cocoa);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--editorial);
  font-size: 16px;
  color: var(--cocoa);
  transition: border-color .2s, box-shadow .2s;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, .18);
}
.newsletter-interests {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(61, 36, 21, .2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--editorial);
  font-size: 15px;
  color: var(--cocoa);
  cursor: pointer;
}
.newsletter-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  cursor: pointer;
}
.newsletter-submit {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 17px;
}
.newsletter-fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink-muted);
  margin: 14px 0 0;
  text-align: center;
  line-height: 1.5;
}
.newsletter-thanks {
  display: none;
  text-align: center;
  padding: 30px 10px 10px;
}
.newsletter-thanks h3 {
  font-family: var(--display);
  font-size: 32px;
  color: var(--cocoa);
  margin: 0 0 8px;
  line-height: 1;
}
.newsletter-thanks p {
  font-family: var(--editorial);
  font-size: 16px;
  color: var(--cocoa-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .newsletter-card { grid-template-columns: 1fr; }
  .newsletter-copy { border-right: none; border-bottom: 2px solid var(--cocoa); padding: 32px 26px; }
  .newsletter-form { padding: 32px 26px; }
}
@media (max-width: 500px) {
  .journal-hero { padding: 50px 16px 46px; }
  .post-card-letters { font-size: 64px; }
  .post-featured-letters { font-size: 84px; }
}

/* =========================================================
   CART + CHECKOUT
   ---------------------------------------------------------
   Two-column layout: cart items / order preview on the left,
   summary sidebar on the right. Collapses to a single column
   on narrow screens with the sidebar dropping below.
   ========================================================= */

.cart-page {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .cart-page { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Item list ------------------------------------------ */
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cart-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 6px 6px 0 var(--cocoa);
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; }
}
.cart-item-media {
  position: relative;                        /* positioning context for letter overlay */
  aspect-ratio: 1;
  background: var(--cream);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-media img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.cart-item-media img.is-placeholder { opacity: 0.7; }
/* On-garment letter preview — scales to the small thumbnail, positioned
   via percentages from the placement snapshot saved with the cart item. */
.cart-item-art {
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.cart-item-body {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.cart-item-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.cart-item-head h3 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--cocoa);
  margin: 0;
  line-height: 1.1;
}
.cart-item-remove {
  background: transparent;
  border: 1.5px solid var(--cocoa);
  color: var(--cocoa);
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.cart-item-remove:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream-soft); }

.cart-item-letters {
  font-family: var(--editorial);
  font-size: 16px;
  color: var(--cocoa);
  margin: 0;
}
.cart-item-letters .mono {
  font-size: 10px; color: var(--cocoa-soft); margin-right: 8px;
}
.cart-item-spec {
  font-family: var(--body);
  font-size: 12px;
  color: var(--cocoa-soft);
  margin: 0;
  line-height: 1.5;
}
.cart-item-attrs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.cart-attr {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-family: var(--mono, 'Space Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cocoa);
  background: var(--cream);
}
.cart-attr-swatch {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--cocoa);
  display: inline-block;
}

.cart-item-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; flex-wrap: wrap; gap: 12px;
}

/* Per-item quantity controls — same visual language as modal quantity picker */
.cart-item-qty {
  display: inline-flex; align-items: stretch;
  border: 2px solid var(--cocoa); border-radius: var(--radius-pill);
  overflow: hidden;
}
.cart-qty-btn {
  background: var(--cream); color: var(--cocoa);
  border: none; padding: 4px 12px; font-size: 16px; font-weight: 700;
  cursor: pointer;
}
.cart-qty-btn:hover { background: var(--cocoa); color: var(--cream-soft); }
.cart-qty-input {
  width: 44px; text-align: center;
  border: none; border-left: 2px solid var(--cocoa); border-right: 2px solid var(--cocoa);
  background: var(--cream-soft); color: var(--cocoa);
  font-family: var(--display); font-size: 14px; font-weight: 700;
  padding: 4px 0;
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-price {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.cart-item-unit {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cocoa-soft);
  font-family: var(--mono, 'Space Mono', monospace);
}
.cart-item-line {
  font-family: var(--display);
  font-size: 24px;
  color: var(--terracotta);
}

/* --- Empty state ---------------------------------------- */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--cream-soft);
  border: 2px dashed var(--cocoa);
  border-radius: var(--radius-lg);
}
.cart-empty .mono { color: var(--cocoa-soft); font-size: 11px; }
.cart-empty h2 { margin: 8px 0 12px; font-size: 38px; }

/* --- Summary sidebar ------------------------------------ */
.cart-summary {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 6px 6px 0 var(--cocoa);
  position: sticky;
  top: 100px;
}
.cart-summary h3 {
  font-size: 11px;
  margin: 0 0 18px;
  color: var(--cocoa-soft);
  letter-spacing: 0.2em;
}
.cart-summary hr {
  border: none;
  border-top: 1.5px solid var(--cocoa);
  margin: 14px 0;
  opacity: 0.35;
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-family: var(--body);
  font-size: 14px;
  color: var(--cocoa);
}
.cart-summary-note {
  font-size: 11px; color: var(--cocoa-soft);
  font-family: var(--mono, 'Space Mono', monospace);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cart-summary-total {
  font-family: var(--display); font-size: 20px; color: var(--cocoa);
}
.cart-summary-total span:last-child { color: var(--terracotta); }
.cart-summary-fine {
  font-size: 10px; color: var(--cocoa-soft); text-align: center;
  margin: 12px 0 0; line-height: 1.6;
}
.cart-continue {
  display: block; text-align: center; margin-top: 14px;
  color: var(--cocoa-soft); text-decoration: none;
  font-family: var(--mono, 'Space Mono', monospace); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.cart-continue:hover { color: var(--terracotta); }

.btn.is-disabled { opacity: 0.5; pointer-events: none; }

/* --- Checkout form -------------------------------------- */
.checkout-form { display: flex; flex-direction: column; gap: 26px; }
.checkout-block {
  background: var(--cream-soft);
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 6px 6px 0 var(--cocoa);
}
.checkout-block h3 {
  font-size: 11px; letter-spacing: 0.2em; margin: 0 0 16px;
  color: var(--cocoa-soft);
}
.checkout-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) {
  .checkout-grid-2, .checkout-grid-3 { grid-template-columns: 1fr; }
}
.checkout-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.checkout-field-full { grid-column: 1 / -1; }
.checkout-field span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cocoa); font-family: var(--mono, 'Space Mono', monospace);
}
.checkout-field input,
.checkout-field textarea {
  border: 2px solid var(--cocoa);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--cocoa);
  background: var(--cream);
  outline: none;
  transition: border-color .15s;
}
.checkout-field input:focus,
.checkout-field textarea:focus { border-color: var(--terracotta); }
.checkout-fine { font-size: 10px; color: var(--cocoa-soft); margin-top: 8px; }
.checkout-actions { text-align: center; }
.checkout-submit { padding: 14px 40px; font-size: 16px; }

/* Mini order preview in the checkout sidebar */
.checkout-mini-list {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px;
}
.checkout-mini-item {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px;
  align-items: center;
  font-size: 12px;
}
.checkout-mini-swatch {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--cocoa);
}
.checkout-mini-body { display: flex; flex-direction: column; }
.checkout-mini-body strong {
  font-family: var(--display); font-size: 13px; color: var(--cocoa); font-weight: 400;
}
.checkout-mini-body span {
  font-size: 10px; color: var(--cocoa-soft);
  font-family: var(--mono, 'Space Mono', monospace);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.checkout-mini-price {
  font-family: var(--display); font-size: 14px; color: var(--terracotta);
}
