@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Nunito+Sans:wght@300;400;600&display=swap');

:root {
  --cream: #F7EDE2;
  --soft: #D8E2DC;
  --pink: #F5CAC3;
  --sage: #84A59D;
  --coral: #F28482;
  --text: #333333;
  --muted: #666666;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(132,165,157,0.12) 39px,
      rgba(132,165,157,0.12) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(132,165,157,0.12) 39px,
      rgba(132,165,157,0.12) 40px
    );
  min-height: 100vh;
  padding: 40px 16px 80px;
  position: relative;
  overflow-x: hidden;
}

body.site-gingham {
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(132, 165, 157, 0.14) 50%, rgba(0, 0, 0, 0) 50%),
    linear-gradient(180deg, rgba(132, 165, 157, 0.14) 50%, rgba(0, 0, 0, 0) 50%);
  background-size: 180px 180px;
  background-position: 0 0, 0 0;
  background-attachment: fixed;
}

.smoke-screen-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 30% 76%, rgba(255, 255, 255, 0.10), transparent 26%),
    rgba(247, 237, 226, 0.06);
  backdrop-filter: blur(10px) saturate(0.95);
  -webkit-backdrop-filter: blur(10px) saturate(0.95);
  transition: opacity 0.45s ease, backdrop-filter 0.45s ease, -webkit-backdrop-filter 0.45s ease;
}

.smoke-screen-page .smoke-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.smoke-screen-page.is-gated::before {
  opacity: 1;
  backdrop-filter: blur(16px) saturate(0.92);
  -webkit-backdrop-filter: blur(16px) saturate(0.92);
}

.smoke-screen-page:not(.is-gated)::before {
  opacity: 0;
  backdrop-filter: blur(0) saturate(1);
  -webkit-backdrop-filter: blur(0) saturate(1);
}

.smoke-screen-page .smoke-gate {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.smoke-screen-page .smoke-gate__inner {
  max-width: min(92vw, 28rem);
  padding: 0.95rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(53, 47, 44, 0.46);
  color: rgba(255, 247, 241, 0.98);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.smoke-screen-page:not(.is-gated) .smoke-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.smoke-screen-page .visit-counter {
  justify-content: center;
  margin-top: 1.5rem;
}

.smoke-screen-page .visit-counter .count-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(242, 132, 130, 0.28);
  color: #6a4a4c;
  box-shadow: 0 10px 24px rgba(90, 70, 50, 0.08);
  white-space: normal;
  text-align: center;
  line-height: 1.45;
}

.smoke-screen-page .noise,
.smoke-screen-page .lang-en.visible,
.smoke-screen-page .lang-es.visible {
  position: relative;
  z-index: 2;
}

.smoke-screen-page .noise {
  z-index: 5;
}

.smoke-screen-page .lang-en.visible,
.smoke-screen-page .lang-es.visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(250, 246, 240, 0.62)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(242, 132, 130, 0.07), transparent 24%),
    radial-gradient(circle at 24% 78%, rgba(132, 165, 157, 0.07), transparent 26%),
    linear-gradient(115deg,
      transparent 0%,
      rgba(0, 0, 0, 0.03) 16%,
      transparent 28%,
      rgba(255, 255, 255, 0.18) 38%,
      transparent 48%,
      rgba(0, 0, 0, 0.025) 62%,
      transparent 74%,
      rgba(255, 255, 255, 0.14) 84%,
      transparent 100%);
}

.wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 28px;
}

header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 92px 32px 56px;
  position: relative;
  border-bottom: 1px solid rgba(51, 51, 51, 0.12);
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 8px 0 0 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(242, 132, 130, 0.16), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(245, 202, 195, 0.22) 38%, rgba(255, 255, 255, 0) 76%);
  pointer-events: none;
  z-index: 0;
}

header::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 58px;
  width: 72px;
  height: 3px;
  background: var(--coral);
  border-radius: 999px;
  box-shadow: 18px 10px 0 rgba(132, 165, 157, 0.45);
}

header > * {
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-block;
  padding: 6px 0;
  margin: 0 auto 26px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  position: relative;
}

.tag::before {
  display: none;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 8.2ch;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  max-width: 30ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #5b5b5b;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  padding-left: 0;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.subtitle::before {
  display: none;
}

/* lang toggle */
.lang-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.lang-toggle--inset {
  position: absolute;
  top: 22px;
  right: 28px;
  margin-bottom: 0;
  z-index: 3;
}

.lang-toggle-inner {
  display: flex;
  border: 1.5px solid var(--sage);
  border-radius: 100px;
  overflow: hidden;
}

.lang-btn {
  padding: 5px 16px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--sage);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--sage);
  color: white;
}

/* cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.card-pink {
  background: #fff5f5;
  border-color: var(--pink);
}

.card-soft {
  background: #f4f8f6;
  border-color: var(--soft);
}

/* post header */
.post-eyebrow {
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.post-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.post-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
}

.post-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  font-style: italic;
}

.platform-divider {
  color: var(--pink);
}

.post-date {
  font-size: 12px;
  color: var(--muted);
}

/* music badge */
.music-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--soft);
  border-radius: 100px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.music-badge strong { color: var(--text); }

/* body text */
p { margin-bottom: 20px; color: var(--text); }
p:last-child { margin-bottom: 0; }

.unstyled-list {
  list-style: none;
  margin: 0 0 20px;
  padding-left: 0;
}

.unstyled-list li + li {
  margin-top: 8px;
}

/* pull quote */
.pullquote {
  background: var(--pink);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 8px 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #5a3535;
  font-style: italic;
}

blockquote {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.35rem 1.35rem 1.25rem 1.6rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 202, 195, 0.22)),
    linear-gradient(180deg, rgba(216, 226, 220, 0.18), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(242, 132, 130, 0.18);
  box-shadow:
    0 10px 22px rgba(90, 70, 50, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #6d4447;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.45rem;
  left: 0.9rem;
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  line-height: 1;
  color: rgba(242, 132, 130, 0.55);
}

/* section tag */
.section-tag {
  display: inline-block;
  background: var(--soft);
  color: var(--sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* divider */
.divider {
  text-align: center;
  color: var(--pink);
  letter-spacing: 0.3em;
  font-size: 13px;
  margin: 8px 0;
}

/* closing */
.closing {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* language visibility */
.lang-en, .lang-es {
  display: none;
}

.lang-en.visible,
.lang-es.visible {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(250, 246, 240, 0.72)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.46), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(242, 132, 130, 0.08), transparent 24%),
    radial-gradient(circle at 24% 78%, rgba(132, 165, 157, 0.08), transparent 26%),
    linear-gradient(115deg,
      transparent 0%,
      rgba(0, 0, 0, 0.03) 16%,
      transparent 28%,
      rgba(255, 255, 255, 0.20) 38%,
      transparent 48%,
      rgba(0, 0, 0, 0.025) 62%,
      transparent 74%,
      rgba(255, 255, 255, 0.16) 84%,
      transparent 100%);
  box-shadow:
    0 22px 60px rgba(90, 70, 50, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.lang-en.visible::before,
.lang-es.visible::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(8deg,
      transparent 0%,
      rgba(0, 0, 0, 0.028) 12%,
      transparent 20%,
      rgba(255, 255, 255, 0.16) 31%,
      transparent 42%,
      rgba(0, 0, 0, 0.024) 58%,
      transparent 68%,
      rgba(255, 255, 255, 0.14) 79%,
      transparent 100%),
    linear-gradient(88deg,
      transparent 0%,
      rgba(0, 0, 0, 0.018) 18%,
      transparent 30%,
      rgba(255, 255, 255, 0.14) 46%,
      transparent 58%,
      rgba(0, 0, 0, 0.018) 74%,
      transparent 100%);
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

.lang-en.visible::after,
.lang-es.visible::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.65;
  pointer-events: none;
}

.lang-en.visible > .card,
.lang-es.visible > .card,
.lang-en.visible > header,
.lang-es.visible > header,
.lang-en.visible > article,
.lang-es.visible > article {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.lang-en.visible > .card,
.lang-es.visible > .card {
  margin-bottom: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.lang-en.visible > .card + .card,
.lang-es.visible > .card + .card {
  border-top: 1px solid rgba(132, 165, 157, 0.18);
  padding-top: 22px;
}

/* inline emphasis */
em { font-style: italic; color: var(--coral); }
strong { font-weight: 700; }

.highlight {
  display: inline;
  padding: 0.08em 0.4em 0.14em;
  border-radius: 0.45em;
  background: linear-gradient(180deg, rgba(242, 132, 130, 0.18) 0%, rgba(245, 202, 195, 0.7) 100%);
  color: #7e3e3d;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(242, 132, 130, 0.12);
}

a.highlight-link {
  color: #7e3e3d;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(242, 132, 130, 0.1) 0%, rgba(245, 202, 195, 0.72) 100%);
  padding: 0.08em 0.4em 0.14em;
  border-radius: 0.45em;
  box-shadow: 0 0 0 1px rgba(242, 132, 130, 0.14);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

a.highlight-link:hover,
a.highlight-link:focus-visible {
  color: #5f2d2d;
  background: linear-gradient(180deg, rgba(242, 132, 130, 0.2) 0%, rgba(245, 202, 195, 0.92) 100%);
  box-shadow: 0 0 0 1px rgba(242, 132, 130, 0.2), 0 4px 12px rgba(242, 132, 130, 0.16);
  outline: none;
}

@media (max-width: 500px) {
  body { padding: 24px 12px 60px; }
  .card { padding: 20px 20px; }
  .smoke-screen-page.is-gated::before {
    backdrop-filter: blur(12px) saturate(0.92);
    -webkit-backdrop-filter: blur(12px) saturate(0.92);
  }
  .smoke-screen-page .smoke-gate {
    padding: 18px;
  }
  .smoke-screen-page .smoke-gate__inner {
    width: min(100%, 22rem);
    padding: 0.9rem 1rem;
    border-radius: 22px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    line-height: 1.4;
    white-space: normal;
  }
  .smoke-screen-page .visit-counter {
    margin-top: 1rem;
  }
  .smoke-screen-page .visit-counter .count-pill {
    width: min(100%, 26rem);
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
  }
  .lang-en.visible,
  .lang-es.visible {
    padding: 16px;
    border-radius: 24px;
  }
  .lang-en.visible > .card,
  .lang-es.visible > .card {
    padding-left: 4px;
    padding-right: 4px;
  }
  header { padding: 76px 20px 36px; }
  .lang-toggle--inset {
    top: 16px;
    right: 18px;
  }
  header::after {
    left: 20px;
    top: 44px;
    width: 54px;
  }
  .tag {
    margin-left: auto;
    margin-right: auto;
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .tag::before {
    display: none;
  }
  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
    max-width: 9ch;
    line-height: 0.98;
  }
  .subtitle {
    padding-left: 0;
    max-width: 24ch;
  }
  .subtitle::before {
    display: none;
  }
}

@media (max-width: 360px) {
  .smoke-screen-page .smoke-gate__inner {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .smoke-screen-page .visit-counter .count-pill {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-screen-page::before {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .smoke-screen-page .smoke-screen {
    display: none;
  }

  .smoke-screen-page .lang-en.visible,
  .smoke-screen-page .lang-es.visible,
  .smoke-screen-page .noise {
    transition: none;
  }
}

.post-image {
  width: min(100%, 320px);
  display: block;
  margin: 18px auto 26px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 237, 226, 0.92));
  border: 1px solid rgba(132, 165, 157, 0.22);
  border-radius: 20px;
  box-shadow:
    0 18px 32px rgba(89, 77, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: rotate(-1.4deg);
}

.post-image:hover {
  transform: rotate(-0.5deg) translateY(-2px);
}

.post-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.image-caption {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 8px !important;
}

/* article footer */
.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.footer-home-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(132, 165, 157, 0.28);
  border-radius: 999px;
  color: rgba(104, 111, 108, 0.9);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-home-link:hover,
.footer-home-link:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(132, 165, 157, 0.42);
  color: var(--sage);
}

/* funny progress bar */
.progress-container {
  position: relative;
  margin-top: 1.5rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(132, 165, 157, 0.26);
  background: rgba(110, 121, 117, 0.24);
  padding: 4px;
  border-radius: 7px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1);
  opacity: 0.68;
}

.progress-bar {
  display: none; /* kept for backwards compatibility, not used */
}

.progress-blocks {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  height: 18px;
  padding: 1px;
  background: rgba(111, 122, 118, 0.18);
  border: 1px solid rgba(132, 165, 157, 0.22);
}

.progress-block {
  background: rgba(108, 118, 115, 0.2);
  border: 1px solid rgba(132, 165, 157, 0.18);
  border-radius: 2px;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  text-indent: -9999px;
}

.progress-block.filled {
  background: var(--sage);
  border-color: rgba(132, 165, 157, 0.88);
}

/* no shimmer
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
*/

.progress-text {
  position: relative;
  margin: 0 0 0.35rem;
  font-family: 'Courier New', monospace;
  font-size: 0.54rem;
  font-weight: 700;
  color: rgba(104, 111, 108, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .progress-bar {
    height: 22px;
  }
  .progress-text {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    white-space: normal;
    line-height: 1.2;
    max-width: 95%;
  }
}
