/* CopyMesh.com — shared stylesheet
   Editorial publication aesthetic
   Brand purple #381858 + warm cream + gold accent
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #381858;
  --ink-soft: #4a2870;
  --ink-deep: #261039;
  --paper: #faf7f2;
  --paper-warm: #f3ede2;
  --rule: #d8cfc0;
  --muted: #6a5a78;
  --accent: #c9a14a;
  --accent-soft: #e6cf8a;
  --accent-warm: #b8843e;
  --highlight: #f4d35e;
  --link: #5a2d8c;
  --link-hover: #b8843e;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.94);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent-warm); }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; font-size: 22px; color: var(--ink);
}
@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column;
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--rule);
  }
  .menu-toggle { display: block; }
  .brand img { height: 32px; }
}

/* === Hero === */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--rule); }
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent-warm);
  margin-bottom: 20px; display: inline-block;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 24px; color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-warm); }
.hero-lede {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5; color: var(--muted);
  max-width: 640px; margin-bottom: 36px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-family: var(--sans);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border-radius: 4px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-deep); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-large { padding: 18px 34px; font-size: 16px; }

/* === Section === */
.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: 28px;
  letter-spacing: -0.02em; color: var(--ink);
}
.section-link {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent-warm); text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* === Article Grid === */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; gap: 48px; } }

.article-card { display: block; text-decoration: none; color: inherit; }
.article-card-image {
  aspect-ratio: 4/3; background: var(--paper-warm);
  margin-bottom: 16px; border: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.article-card-image-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 64px;
  font-weight: 400; font-style: italic; color: var(--ink);
  background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper) 100%);
}
.article-card-image-inner.accent {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--highlight);
}
.article-card-image-inner.warm {
  background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-soft) 100%);
  color: var(--paper);
}
.article-meta {
  display: flex; gap: 12px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-warm); margin-bottom: 10px;
}
.article-meta-divider { color: var(--rule); }
.article-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: 10px; color: var(--ink); transition: color 0.2s;
}
.article-card:hover h3 { color: var(--accent-warm); }
.article-excerpt { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* === About strip === */
.about-strip { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
@media (max-width: 800px) { .about-strip { grid-template-columns: 1fr; gap: 24px; } }
.about-label {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent-warm);
  border-top: 2px solid var(--ink); padding-top: 12px;
}
.about-strip h2 {
  font-family: var(--serif); font-size: 32px; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 18px; color: var(--ink);
}
.about-strip p {
  font-size: 17px; color: var(--ink-deep);
  margin-bottom: 14px; line-height: 1.65;
}

/* === Recent posts list === */
.recent-list { display: flex; flex-direction: column; }
.recent-item {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 32px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit; transition: background 0.2s;
}
.recent-item:hover {
  background: var(--paper-warm);
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.recent-item:last-child { border-bottom: none; }
.recent-date {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}
.recent-title {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.35; color: var(--ink);
}
.recent-cat {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent-warm);
  border: 1px solid var(--accent-warm);
  padding: 4px 8px; border-radius: 2px;
}
@media (max-width: 700px) {
  .recent-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .recent-cat { justify-self: start; }
}

/* === Featured CTA band === */
.featured-band {
  background: var(--ink); color: var(--paper);
  padding: 72px 0; text-align: center;
  position: relative; overflow: hidden;
}
.featured-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 211, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201, 161, 74, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.featured-band-eyebrow {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--highlight);
  margin-bottom: 14px; position: relative;
}
.featured-band h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 18px; font-weight: 600; position: relative;
}
.featured-band h2 em { font-style: italic; color: var(--highlight); }
.featured-band-sub {
  font-size: 17px; color: rgba(250, 247, 242, 0.78);
  margin-bottom: 32px; max-width: 560px;
  margin-left: auto; margin-right: auto;
  position: relative; font-family: var(--serif);
}
.featured-band .btn-primary {
  background: var(--highlight); color: var(--ink-deep); position: relative;
}
.featured-band .btn-primary:hover { background: var(--accent-soft); }

/* === Footer === */
.site-footer { background: var(--paper); padding: 64px 0 32px; border-top: 1px solid var(--rule); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer-brand .brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 360px;
}
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--ink); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-warm); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.05em;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 12px; text-align: center; } }

/* === Article === */
.article-page { padding: 64px 0 96px; }
.article-header { text-align: left; max-width: 720px; margin: 0 auto 48px; }
.article-eyebrow {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent-warm);
  margin-bottom: 20px; display: inline-block;
}
.article-header h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.1;
  letter-spacing: -0.025em; margin-bottom: 22px; color: var(--ink);
}
.article-header h1 em { font-style: italic; color: var(--accent-warm); }
.article-deck {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5; color: var(--muted); margin-bottom: 28px;
}
.article-byline {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 14px 0; flex-wrap: wrap;
}
.article-byline strong { color: var(--ink); }
.article-body {
  max-width: 680px; margin: 0 auto;
  font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink-deep);
}
.article-body > * + * { margin-top: 1.4em; }
.article-body h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  margin-top: 2.4em; margin-bottom: 0.6em; line-height: 1.2;
}
.article-body h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink); margin-top: 2em; margin-bottom: 0.4em;
}
.article-body p { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--link); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.article-body a:hover { color: var(--link-hover); }
.article-body a.btn {
  text-decoration: none;
}
.article-body a.btn-primary {
  color: var(--paper);
}
.article-body a.btn-primary:hover {
  color: var(--paper);
}
.article-body a.btn-secondary {
  color: var(--ink);
}
.article-body a.btn-secondary:hover {
  color: var(--paper);
}
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  border-left: 3px solid var(--accent-warm);
  padding-left: 24px; margin: 1.8em 0;
  font-style: italic; color: var(--ink);
  font-size: 22px; line-height: 1.45;
}
.article-body hr { border: none; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.article-body .pullquote {
  font-family: var(--serif); font-size: 28px; line-height: 1.3;
  color: var(--ink); font-weight: 500; text-align: center;
  padding: 30px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  margin: 2em 0;
}

/* === CTA box === */
.cta-box {
  background: var(--paper-warm); border: 1px solid var(--rule);
  padding: 36px; border-radius: 6px;
  margin: 2em 0; text-align: center;
}
.cta-box h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  margin-bottom: 10px; color: var(--ink);
  text-transform: none; letter-spacing: -0.01em;
}
.cta-box p {
  font-size: 16px; color: var(--muted); margin-bottom: 20px; font-family: var(--sans);
}

/* === Pre-sell video === */
.presell-video {
  max-width: 720px;
  margin: 0 auto 2.5em;
}
.presell-video > div {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(56, 24, 88, 0.18);
  background: var(--ink-deep);
}
.presell-caption {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

/* === Bridge page === */
.bridge-page .article-body > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 64px; font-weight: 600;
  float: left; line-height: 0.9;
  margin-right: 8px; margin-top: 4px; color: var(--accent-warm);
}
.disclaimer-box {
  background: var(--paper-warm); border-left: 3px solid var(--accent-warm);
  padding: 20px 24px; margin: 2em 0;
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  color: var(--ink-deep); border-radius: 0 4px 4px 0;
}
.disclaimer-box strong {
  color: var(--ink); display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* === Legal pages === */
.legal-page { padding: 64px 0 96px; background: var(--paper); }
.legal-page h1 {
  font-family: var(--serif); font-size: 44px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 8px; color: var(--ink);
}
.legal-effective {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 36px; border-bottom: 1px solid var(--rule); padding-bottom: 24px;
}
.legal-page h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  margin-top: 2em; margin-bottom: 0.6em; color: var(--ink); letter-spacing: -0.01em;
}
.legal-page p { font-size: 16px; line-height: 1.7; color: var(--ink-deep); margin-bottom: 1em; }
.legal-page ul { padding-left: 22px; margin-bottom: 1em; }
.legal-page li { font-size: 16px; line-height: 1.7; color: var(--ink-deep); margin-bottom: 0.5em; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: var(--link); text-decoration: underline; }
.legal-page a:hover { color: var(--link-hover); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }
.contact-block {
  background: var(--paper-warm); padding: 28px; border-radius: 4px; border: 1px solid var(--rule);
}
.contact-block h3 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent-warm); margin-bottom: 12px;
}
.contact-block p { font-family: var(--serif); font-size: 18px; color: var(--ink); line-height: 1.6; }
.contact-block a { color: var(--link); text-decoration: underline; }

/* === Decorative === */
.divider-mark {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  margin: 3em 0; color: var(--accent-warm);
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.3em;
}
.divider-mark::before, .divider-mark::after {
  content: ''; flex: 1; max-width: 80px; height: 1px; background: var(--rule);
}

@media print {
  .site-header, .site-footer, .featured-band { display: none; }
}
