/*
Theme Name: Casual Scribbles Child
Theme URI: https://casualscribbles.com
Description: An editorial child theme for GeneratePress.
Author: Casual Scribbles
Version: 1.0.0
Template: generatepress
Text Domain: casual-scribbles-child
*/

:root {
  --cream: #F7EFE1;
  --blush: #EFDCD1;
  --panel: #EAE0CC;
  --ink: #241F1C;
  --ink-soft: #7a6f63;
  --rose: #9C3D3D;
  --sage: #41573F;
  --navy: #1B2430;
  --gold: #C79243;
  --line: rgba(36, 31, 28, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(199, 146, 67, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(156, 61, 61, 0.08), transparent 55%),
    var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

img, svg, iframe { max-width: 100%; }
.cs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 60px; }
.cs-media, .cs-spotlight-media, .cs-writer-photo, .cs-tile { position: relative; overflow: hidden; }
.cs-media img, .cs-spotlight-media img, .cs-writer-photo img, .cs-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cs-media::before, .cs-spotlight-media::before, .cs-writer-photo::before, .cs-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.22;
}
.cs-placeholder {
  width: 100%;
  height: 100%;
  min-height: 80px;
  background: linear-gradient(145deg, var(--panel), var(--blush));
}
.cs-empty { color: var(--ink-soft); padding: 20px 0; }

/* Ticker and custom chrome. The GeneratePress chrome is visually suppressed in favor of these hooks. */
.cs-ticker {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 239, 225, 0.1);
}
.cs-ticker-track { display: inline-flex; gap: 48px; animation: cs-scroll-ticker 22s linear infinite; }
.cs-ticker-track span {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 239, 225, 0.8);
}
.cs-ticker-track span b { color: var(--gold); }
@keyframes cs-scroll-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-header, .site-footer { display: none !important; }
.cs-site-header {
  padding: 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.cs-site-header.scrolled { box-shadow: 0 10px 24px -18px rgba(36, 31, 28, 0.35); }
.cs-site-header.scrolled .cs-header-top { padding-bottom: 12px; }
.cs-site-header.scrolled .cs-brand { font-size: 30px; }
.cs-header-top { padding: 30px 0 24px; color: var(--cream); background: #1c1123; transition: padding 0.3s ease; }
.cs-header-top .cs-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-brand, .cs-brand:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 0 10px;
  isolation: isolate;
  font-family: "Libre Caslon Text", serif;
  font-size: clamp(2rem, 3.1vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
.cs-header-top .cs-logo-primary, .cs-footer-brand .cs-logo-primary { color: var(--cream); }
.cs-header-top .cs-logo-accent, .cs-footer-brand .cs-logo-accent { color: var(--gold); }
.cs-logo-tagline { max-width: 560px; margin: 12px auto 0; color: rgba(247, 239, 225, 0.78); font: 400 14px/1.55 "Inter", sans-serif; letter-spacing: 0.01em; animation: cs-tagline-in 720ms ease-out 820ms both; }
.cs-brand::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 52%;
  right: -18px;
  left: -18px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(199, 146, 67, 0.12) 12%, rgba(199, 146, 67, 0.62) 42%, rgba(156, 61, 61, 0.48) 70%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-70%) scaleX(0.5);
  transform-origin: left center;
  animation: cs-logo-glint 720ms cubic-bezier(0.16, 1, 0.3, 1) 130ms both;
}
.cs-brand::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: -9px;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: var(--rose);
  opacity: 0;
  transform: rotate(45deg) scale(0);
  animation: cs-diamond-in 420ms cubic-bezier(0.16, 1, 0.3, 1) 780ms both;
}
.cs-logo-mark, .cs-logo-text, .cs-logo-underline { position: relative; z-index: 2; }
.cs-logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: visible;
  opacity: 0;
  transform: translateX(-14px) rotate(-8deg) scale(0.7);
  animation: cs-mark-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cs-mark-ring, .cs-mark-c, .cs-mark-i {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-mark-ring { stroke: var(--gold); stroke-width: 1.8; stroke-dasharray: 113; stroke-dashoffset: 113; animation: cs-path-draw 680ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both; }
.cs-mark-c { stroke: var(--cream); stroke-width: 2.1; stroke-dasharray: 58; stroke-dashoffset: 58; animation: cs-path-draw 580ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both; }
.cs-mark-i { stroke: var(--rose); stroke-width: 1.8; stroke-dasharray: 22; stroke-dashoffset: 22; animation: cs-path-draw 420ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both; }
.cs-mark-spark { fill: var(--rose); opacity: 0; transform-origin: 36px 14px; transform: scale(0); animation: cs-spark-in 420ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both; }
.cs-mark-dot { fill: var(--gold); opacity: 0; animation: cs-dot-in 360ms ease-out 640ms both; }
.cs-logo-text {
  display: inline-block;
  font-size: inherit;
  font-weight: 600;
  line-height: 1;
  animation: cs-wordmark-in 720ms cubic-bezier(0.16, 1, 0.3, 1) 130ms both;
}
.cs-logo-primary, .cs-logo-accent { display: inline-block; transition: color 0.28s ease; }
.cs-logo-primary { color: var(--cream); }
.cs-logo-accent { color: var(--gold); animation: cs-accent-in 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 390ms both; }
.cs-logo-underline {
  position: absolute;
  right: -3px;
  bottom: 1px;
  left: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rose) 48%, var(--gold));
  box-shadow: 0 2px 0 rgba(36, 31, 28, 0.16);
  transform: scaleX(0);
  transform-origin: center center;
  animation: cs-line-in 760ms cubic-bezier(0.16, 1, 0.3, 1) 500ms both;
}
.cs-brand:hover .cs-logo-primary, .cs-brand:focus-visible .cs-logo-primary { color: var(--rose); }
.cs-brand:hover .cs-logo-accent, .cs-brand:focus-visible .cs-logo-accent { color: var(--cream); }
.cs-brand:hover .cs-logo-underline, .cs-brand:focus-visible .cs-logo-underline { transform: scaleX(1); }
@keyframes cs-mark-in { 0% { opacity: 0; transform: translateX(-14px) rotate(-8deg) scale(0.7); } 100% { opacity: 1; transform: none; } }
@keyframes cs-path-draw { to { stroke-dashoffset: 0; } }
@keyframes cs-wordmark-in { 0% { opacity: 0; transform: translateY(8px) scale(0.96); } 100% { opacity: 1; transform: none; } }
@keyframes cs-accent-in { 0% { opacity: 0; transform: translateX(10px); } 100% { opacity: 1; transform: none; } }
@keyframes cs-line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cs-logo-glint { 0% { opacity: 0; transform: translateX(-70%) scaleX(0.5); } 28% { opacity: 0.9; } 100% { opacity: 0.38; transform: translateX(60%) scaleX(1); } }
@keyframes cs-diamond-in { from { opacity: 0; transform: rotate(45deg) scale(0); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes cs-spark-in { from { opacity: 0; transform: rotate(45deg) scale(0); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes cs-dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes cs-tagline-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cs-brand::before, .cs-brand::after, .cs-logo-mark, .cs-logo-text, .cs-logo-accent, .cs-logo-tagline { opacity: 1; transform: none; animation: none !important; }
  .cs-mark-ring, .cs-mark-c, .cs-mark-i { stroke-dashoffset: 0; animation: none !important; }
  .cs-mark-spark, .cs-mark-dot { opacity: 1; transform: none; animation: none !important; }
  .cs-logo-underline { transform: scaleX(1); animation: none !important; }
}
.cs-brand img { max-height: 52px; width: auto; }
.cs-categories { display: flex; gap: 32px; justify-content: center; padding: 15px 0; border-top: 1px solid var(--line); }
.cs-categories ul { list-style: none; display: flex; gap: 32px; padding: 0; margin: 0; }
.cs-categories li { margin: 0; }
.cs-categories a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.cs-categories a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rose); transition: right 0.25s ease; }
.cs-categories a:hover::after, .cs-categories a:focus-visible::after { right: 0; }
body.cs-search-open { overflow: hidden; }
.cs-search-modal[hidden] { display: none; }
.cs-search-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: clamp(24px, 10vh, 110px) 20px; }
.cs-search-backdrop { position: absolute; inset: 0; background: rgba(27, 36, 48, 0.9); backdrop-filter: blur(8px); }
.cs-search-dialog { position: relative; z-index: 1; width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: clamp(32px, 6vw, 64px); color: var(--ink); background: var(--cream); border: 1px solid rgba(247, 239, 225, 0.25); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35); }
.cs-search-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.cs-search-close:hover, .cs-search-close:focus-visible { background: var(--rose); border-color: var(--rose); color: var(--cream); }
.cs-search-dialog h2 { margin: 0 0 12px; font-family: "Libre Caslon Text", serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.1; }
.cs-search-dialog > .cs-eyebrow, .cs-search-popular > .cs-eyebrow { color: var(--rose); }
.cs-search-intro { margin: 0 0 30px; color: var(--ink-soft); }
.cs-modal-search-form { display: flex; gap: 10px; }
.cs-modal-search-form input { flex: 1; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-bottom: 2px solid var(--rose); background: #fffaf2; color: var(--ink); font: inherit; outline: none; }
.cs-modal-search-form input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(156, 61, 61, 0.12); }
.cs-modal-search-form button { display: inline-flex; align-items: center; gap: 18px; padding: 0 20px; border: 0; background: var(--rose); color: var(--cream); font-weight: 700; cursor: pointer; transition: background-color .2s ease; }
.cs-modal-search-form button:hover, .cs-modal-search-form button:focus-visible { background: var(--gold); color: var(--navy); }
.cs-modal-search-form button b { font-size: 22px; font-weight: 400; }
.cs-search-popular { margin-top: 38px; }
.cs-search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-search-tag { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px; border: 1px solid var(--rose); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .04em; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.cs-search-tag:hover, .cs-search-tag:focus-visible { border-color: var(--gold); background: var(--gold); color: var(--navy); }

/* Front-page hero and cards. */
.cs-main { padding: 0 !important; }
.cs-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2px; margin: 2px 0 0; background: var(--line); }
.cs-hero-main, .cs-hero-side a { background: var(--cream); text-decoration: none; color: inherit; display: block; }
.cs-hero-main { position: relative; }
.cs-hero-main .cs-media { height: 460px; }
.cs-hero-main .cs-media::before { background: linear-gradient(150deg, var(--sage), var(--gold) 120%); }
.cs-hero-main .cs-media img { transform: scale(1.12); }
.cs-hero-main:hover .cs-media img { transform: scale(1); }
.cs-hero-main .cs-copy { padding: 30px 8px 6px; }
.cs-hero-side { display: flex; flex-direction: column; gap: 2px; }
.cs-hero-side a { display: flex; flex: 1; min-height: 0; gap: 16px; padding: 14px 8px; align-items: center; transition: background-color 0.2s ease; }
.cs-hero-side a:hover { background-color: rgba(36, 31, 28, 0.03); }
.cs-hero-side .cs-media { width: 120px; height: 90px; flex: none; background: var(--panel); }
.cs-hero-side a:hover .cs-media { transform: scale(1.08); }
.cs-hero-side a:nth-child(1) .cs-media::before { background: linear-gradient(150deg, var(--rose), var(--panel)); }
.cs-hero-side a:nth-child(2) .cs-media::before { background: linear-gradient(150deg, var(--gold), var(--panel)); }
.cs-hero-side a:nth-child(3) .cs-media::before { background: linear-gradient(150deg, var(--navy), var(--panel)); }
.cs-eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); font-weight: 700; margin: 0 0 10px; }
.cs-hero-main h1 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 2.5rem; line-height: 1.15; margin: 0 0 12px; max-width: 520px; }
.cs-hero-main p { color: var(--ink-soft); max-width: 460px; margin: 0; }
.cs-hero-side h3 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 1.05rem; margin: 0 0 6px; line-height: 1.3; transition: color 0.2s ease; }
.cs-hero-side a:hover h3 { color: var(--rose); }
.cs-hero-side .cs-eyebrow { margin: 0 0 6px; font-size: 11px; }

.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); margin-top: 2px; }
.cs-stat { background: var(--cream); padding: 30px 20px; text-align: center; }
.cs-stat strong { display: block; font-family: "Libre Caslon Text", serif; font-size: 2.2rem; color: var(--rose); }
.cs-stat span { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.cs-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 64px 0 30px; }
.cs-section-head h2 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 1.6rem; margin: 0; }
.cs-section-head a { font-size: 13px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.cs-section-head a:hover { color: var(--rose); border-color: var(--rose); }

.cs-article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cs-article-grid a { text-decoration: none; color: inherit; display: block; }
.cs-article-grid .cs-media { height: 190px; margin-bottom: 16px; background: var(--panel); }
.cs-article-grid .cs-media::after { content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none; }
.cs-article-grid a:nth-child(1) .cs-media::before { background: linear-gradient(150deg, var(--rose), var(--panel)); }
.cs-article-grid a:nth-child(2) .cs-media::before { background: linear-gradient(150deg, var(--sage), var(--panel)); }
.cs-article-grid a:nth-child(3) .cs-media::before { background: linear-gradient(150deg, var(--gold), var(--panel)); }
.cs-article-grid a:nth-child(4) .cs-media::before { background: linear-gradient(150deg, var(--navy), var(--panel)); }
.cs-article-grid .cs-media::before { display: none; }
.cs-article-grid a:hover .cs-media img { transform: scale(1.1); }
.cs-article-grid h3 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 1.15rem; margin: 0 0 8px; line-height: 1.3; transition: color 0.2s ease; }
.cs-article-grid a:hover h3 { color: var(--rose); }
.cs-article-grid p:not(.cs-eyebrow) { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Dark spotlight and category band. */
.cs-spotlight { background: var(--navy); color: var(--cream); margin-top: 70px; padding: 64px 0; position: relative; overflow: hidden; }
.cs-spotlight::before, .cs-newsletter::before { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cs-spotlight::before { width: 420px; height: 420px; background: radial-gradient(circle, rgba(199, 146, 67, 0.25), transparent 70%); top: -160px; right: -120px; animation: cs-float-blob 9s ease-in-out infinite; }
@keyframes cs-float-blob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(24px) scale(1.06); } }
.cs-spotlight-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.cs-spotlight .cs-eyebrow { color: var(--gold); }
.cs-spotlight h2 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 2rem; margin: 0 0 14px; }
.cs-spotlight p { color: rgba(247, 239, 225, 0.72); margin: 0 0 24px; max-width: 440px; }
.cs-play-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--gold); color: var(--navy); text-decoration: none; padding: 13px 22px; font-weight: 600; font-size: 14px; border-radius: 2px; }
.cs-play-btn .cs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); animation: cs-pulse-dot 1.6s ease-in-out infinite; }
@keyframes cs-pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }
.cs-spotlight-media { height: 280px; border-radius: 4px; background: var(--panel); }
.cs-spotlight-media::before { background: linear-gradient(150deg, var(--rose), var(--gold) 140%); }
.cs-spotlight-media:hover img { transform: scale(1.06); }
.cs-spotlight-embed, .cs-spotlight-embed iframe { width: 100%; height: 100%; border: 0; }
.cs-band { background: var(--blush); padding: 64px 0; }
.cs-band .cs-section-head { margin-top: 0; }
.cs-band-grid { display: grid; grid-template-columns: 0.9fr 1fr 1fr; gap: 30px; }
.cs-band-grid.cs-band-grid--one-list { grid-template-columns: 0.9fr 1fr; }
.cs-band-feature { text-decoration: none; color: inherit; }
.cs-band-feature .cs-media { height: 280px; margin-bottom: 16px; background: var(--cream); }
.cs-band-feature .cs-media::before { background: linear-gradient(150deg, var(--navy), var(--gold) 130%); }
.cs-band-feature:hover .cs-media img { transform: scale(1.08); }
.cs-band-feature h3 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 1.5rem; margin: 0 0 10px; transition: color 0.2s ease; }
.cs-band-feature:hover h3 { color: var(--rose); }
.cs-band-feature p { color: var(--ink-soft); margin: 0; }
.cs-band-list { display: flex; flex-direction: column; gap: 22px; }
.cs-band-list a { display: flex; gap: 16px; text-decoration: none; color: inherit; align-items: center; transition: background-color 0.2s ease; padding: 6px; border-radius: 3px; }
.cs-band-list a:hover { background-color: rgba(36, 31, 28, 0.04); }
.cs-band-list .cs-media { width: 100px; height: 76px; flex: none; background: var(--cream); transition: transform 0.35s ease; }
.cs-band-list a:hover .cs-media { transform: scale(1.08); }
.cs-band-list a:hover h4 { color: var(--rose); }
.cs-band-list h4 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 1rem; margin: 0 0 4px; line-height: 1.3; transition: color 0.2s ease; }
.cs-band-list span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }

/* Shop, gallery, quote, writer, newsletter, and footer. */
.cs-shop { padding: 70px 0; }
.cs-shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.cs-shop-card { display: block; background: var(--panel); position: relative; overflow: hidden; color: inherit; text-decoration: none; }
.cs-shop-card .cs-media { height: 220px; background: var(--blush); }
.cs-shop-card:nth-child(1) .cs-media::before { background: linear-gradient(160deg, var(--rose), var(--panel)); }
.cs-shop-card:nth-child(2) .cs-media::before { background: linear-gradient(160deg, var(--sage), var(--panel)); }
.cs-shop-card:nth-child(3) .cs-media::before { background: linear-gradient(160deg, var(--gold), var(--panel)); }
.cs-shop-card:nth-child(4) .cs-media::before { background: linear-gradient(160deg, var(--navy), var(--panel)); }
.cs-shop-card:hover .cs-media img { transform: scale(1.1) rotate(1deg); }
.cs-shop-card .cs-info { padding: 16px; }
.cs-shop-card .cs-name { font-size: 14.5px; margin: 0 0 4px; font-weight: 500; }
.cs-shop-card .cs-price { font-size: 13px; color: var(--rose); margin: 0; font-weight: 600; }
.cs-shop-card .cs-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--cream); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; z-index: 2; }
.cs-gallery { padding: 20px 0 70px; }
.cs-gallery-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cs-gallery-row .cs-tile { aspect-ratio: 1; background: var(--panel); }
.cs-gallery-row .cs-tile > a { display: block; width: 100%; height: 100%; }
.cs-gallery-row .cs-tile:nth-child(1)::before { background: linear-gradient(160deg, var(--rose), var(--panel)); }
.cs-gallery-row .cs-tile:nth-child(2)::before { background: linear-gradient(160deg, var(--gold), var(--panel)); }
.cs-gallery-row .cs-tile:nth-child(3)::before { background: linear-gradient(160deg, var(--sage), var(--panel)); }
.cs-gallery-row .cs-tile:nth-child(4)::before { background: linear-gradient(160deg, var(--navy), var(--panel)); }
.cs-gallery-row .cs-tile:nth-child(5)::before { background: linear-gradient(160deg, var(--panel), var(--rose)); }
.cs-gallery-row .cs-tile:nth-child(6)::before { background: linear-gradient(160deg, var(--panel), var(--gold)); }
.cs-gallery-row .cs-tile:hover img { transform: scale(1.12); }
.cs-gallery-row .cs-ig-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity 0.25s ease; z-index: 1; font-size: 22px; background: rgba(27, 36, 48, 0.25); }
.cs-gallery-row .cs-tile:hover .cs-ig-icon { opacity: 1; }
.cs-statement { text-align: center; padding: 90px 0 70px; }
.cs-statement p { font-family: "Libre Caslon Text", serif; font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 760px; margin: 0 auto; line-height: 1.5; color: var(--ink); }
.cs-statement .cs-who { margin-top: 18px; font-family: "Inter", sans-serif; font-style: normal; font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.cs-writer { padding: 70px 0; }
.cs-writer-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; align-items: center; }
.cs-writer-photo { aspect-ratio: 1; border-radius: 4px; background: var(--panel); }
.cs-writer-photo::after { content: ""; position: absolute; inset: 0; border: 6px solid var(--cream); z-index: 2; }
.cs-writer h2 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 2rem; margin: 0 0 14px; }
.cs-writer p { color: var(--ink-soft); margin: 0 0 16px; max-width: 520px; }
.cs-writer .cs-signature { font-family: "Libre Caslon Text", serif; font-style: italic; font-size: 1.3rem; color: var(--rose); }
.cs-newsletter { background: var(--navy); color: var(--cream); padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.cs-newsletter::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(156, 61, 61, 0.22), transparent 70%); bottom: -260px; left: -140px; animation: cs-float-blob 11s ease-in-out infinite reverse; }
.cs-newsletter > .cs-wrap { position: relative; z-index: 1; }
.cs-newsletter h2 { font-family: "Libre Caslon Text", serif; font-weight: 400; font-size: 2rem; margin: 0 0 10px; }
.cs-newsletter > .cs-wrap > p { color: rgba(247, 239, 225, 0.72); margin: 0 0 28px; }
.cs-signup { display: flex; justify-content: center; gap: 10px; }
.cs-signup input { background: transparent; border: 1px solid rgba(247, 239, 225, 0.35); color: var(--cream); padding: 13px 18px; font-size: 14px; min-width: 280px; font-family: "Inter", sans-serif; }
.cs-signup input::placeholder { color: rgba(247, 239, 225, 0.5); }
.cs-signup button { background: var(--gold); color: var(--navy); border: none; font-weight: 600; padding: 13px 24px; font-size: 14px; cursor: pointer; transition: background-color 0.2s ease; }
.cs-signup button:hover { background: var(--rose); color: #fff; }
.cs-footer { padding: 56px 0 40px; }
.cs-footer-brand { text-align: center; padding: 46px 24px 40px; margin-bottom: 34px; background: #1c1123; }
.cs-footer-brand .cs-brand { margin-bottom: 10px; }
.cs-footer-brand p { color: rgba(247, 239, 225, 0.78); font-size: 14px; max-width: 430px; margin: 0 auto; }
.cs-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-footer-grid h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.cs-footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-footer-grid a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.cs-footer-grid a:hover { color: var(--rose); }
.cs-footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 10px; }
.cs-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--rose); z-index: 100; width: 0%; }

/* Interior templates retain the same editorial language without replacing GeneratePress internals. */
.cs-interior { padding: 70px 0; }
.cs-interior-header { max-width: 760px; margin-bottom: 42px; }
.cs-interior h1, .cs-interior h2, .cs-interior h3 { font-family: "Libre Caslon Text", serif; font-weight: 400; line-height: 1.2; }
.cs-interior h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin: 0 0 16px; }
.cs-interior .cs-meta { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.cs-entry-content { max-width: 760px; font-size: 1.05rem; }
.cs-entry-content img { height: auto; }
.cs-entry-content a { color: var(--rose); }
.cs-post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cs-post-list .cs-card { text-decoration: none; color: inherit; }
.cs-post-list .cs-media { height: 220px; background: var(--panel); margin-bottom: 14px; }
.cs-post-list h2 { font-size: 1.35rem; margin: 0 0 8px; }
.cs-post-list p { color: var(--ink-soft); margin: 0; }
.cs-pagination { margin-top: 40px; }
.cs-pagination .page-numbers { color: var(--ink); margin-right: 12px; text-decoration: none; }
.cs-search-form { display: flex; gap: 10px; max-width: 620px; }
.cs-search-form input[type="search"] { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fffaf2; color: var(--ink); padding: 13px 16px; font: inherit; }
.cs-search-form button { border: 0; background: var(--ink); color: var(--cream); padding: 13px 22px; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
  .cs-wrap { padding: 0 24px; }
  .cs-categories, .cs-categories ul { flex-wrap: wrap; gap: 16px; }
  .cs-hero { grid-template-columns: 1fr; }
  .cs-hero-main .cs-media { height: 320px; }
  .cs-article-grid, .cs-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-spotlight-grid, .cs-band-grid, .cs-writer-grid { grid-template-columns: 1fr; }
  .cs-post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cs-gallery-row { grid-template-columns: repeat(3, 1fr); }
  .cs-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cs-header-top { padding: 24px 0 20px; }
  .cs-brand { gap: 6px; font-size: 28px; }
  .cs-logo-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .cs-logo-tagline { max-width: 310px; margin-top: 10px; font-size: 12.5px; }
  .cs-hero-main h1 { font-size: 2rem; }
  .cs-article-grid, .cs-shop-grid, .cs-post-list { grid-template-columns: 1fr; }
  .cs-search-form { flex-direction: column; }
  .cs-search-modal { padding: 18px 12px; }
  .cs-search-dialog { width: 100%; padding: 42px 20px 30px; }
  .cs-search-close { top: 10px; right: 10px; }
}
@media (max-width: 360px) {
  .cs-logo-mark { display: none; }
}
@media (max-width: 480px) {
  .cs-signup { flex-direction: column; align-items: center; }
  .cs-signup input { min-width: min(280px, 100%); width: 100%; }
  .cs-modal-search-form { flex-direction: column; }
  .cs-modal-search-form button { min-height: 48px; justify-content: space-between; }
}
