/* ============================================================
   CCWORLDWIDE — blog
   Static, JS-free reading layout on the site's design system:
   black void, three golds, bone; Cormorant / Archivo / Inter.
   ============================================================ */

:root {
  --black-void: #050505;
  --black-panel: #0C0C0C;
  --gold-core: #C9A227;
  --gold-high: #EDCB6A;
  --gold-shadow: #7A5C1E;
  --bone: #E8E4DA;
  --bone-dim: rgba(232, 228, 218, 0.62);
  --gold-line: rgba(201, 162, 39, 0.28);
  --gold-gradient: linear-gradient(180deg, var(--gold-high) 0%, var(--gold-core) 52%, var(--gold-shadow) 100%);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-label: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --measure: 44rem;
  --gutter: clamp(16px, 5vw, 48px);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-var.woff2') format('woff2-variations'),
       url('/fonts/CormorantGaramond-var.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo-var.woff2') format('woff2-variations'),
       url('/fonts/Archivo-var.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-var.woff2') format('woff2-variations'),
       url('/fonts/Inter-var.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { background: var(--black-void); }
body {
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100svh;
  display: flex; flex-direction: column;
  /* faint gold vignette at the head of the page, as on the brand OG image */
  background-image: radial-gradient(ellipse 70% 42% at 50% -6%, rgba(201, 162, 39, 0.13), transparent 70%);
  background-repeat: no-repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--gold-high); outline-offset: 4px; }
::selection { background: rgba(201, 162, 39, 0.35); color: var(--bone); }

.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

/* ---------- typography primitives ---------- */
.kicker {
  font-family: var(--font-label);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-core);
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--bone);
  text-wrap: balance;
}
.rule { height: 1px; background: var(--gold-gradient); opacity: 0.55; }
.gold-link {
  color: var(--gold-core);
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux);
}
.gold-link:hover, .gold-link:focus-visible { color: var(--gold-high); border-color: var(--gold-high); }
.label-link {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-core);
  padding: 12px 2px; /* tap target */
  position: relative;
  transition: color 0.4s var(--ease-lux);
}
.label-link::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 6px;
  height: 1px; background: var(--gold-core);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-lux);
}
.label-link:hover, .label-link:focus-visible { color: var(--gold-high); }
.label-link:hover::after, .label-link:focus-visible::after { transform: scaleX(1); }
.label-link[aria-current="page"] { color: var(--gold-high); }
.label-link[aria-current="page"]::after { transform: scaleX(1); opacity: 0.5; }

/* ---------- header / footer chrome ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 3svh, 30px) clamp(20px, 3.2vw, 40px);
}
.site-mark img { height: clamp(30px, 3vw, 38px); width: auto; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); }

.site-footer {
  margin-top: auto;
  padding: clamp(28px, 6svh, 56px) clamp(20px, 3.2vw, 40px) clamp(22px, 4svh, 36px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  border-top: 1px solid rgba(201, 162, 39, 0.16);
}
.site-footer p {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bone);
  opacity: 0.42;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2.4vw, 32px); }

/* ---------- breadcrumb ---------- */
.crumbs { margin-top: clamp(28px, 6svh, 64px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bone-dim);
}
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--gold-shadow); }
.crumbs a { color: var(--gold-core); }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--gold-high); }
.crumbs [aria-current="page"] { color: var(--bone-dim); }

/* ---------- article head ---------- */
.post-head { margin-top: clamp(22px, 5svh, 48px); }
.post-head .kicker { display: block; margin-bottom: 18px; }
.post-head h1 { font-size: clamp(36px, 5.4vw, 66px); }
.post-lede {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.4;
  color: var(--bone);
  opacity: 0.86;
  text-wrap: pretty;
}
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--font-label);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-dim);
}
.byline .author { color: var(--gold-core); }
.byline .author a:hover, .byline .author a:focus-visible { color: var(--gold-high); }
.byline span + span::before { content: '·'; margin-right: 18px; color: var(--gold-shadow); }

/* ---------- in-brief / contents panels ---------- */
.panel {
  margin-top: clamp(30px, 5svh, 48px);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  background: var(--black-panel);
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-left: 2px solid var(--gold-core);
  position: relative;
}
.panel .kicker { display: block; margin-bottom: 14px; }
.panel ul, .panel ol { padding-left: 1.15em; }
.panel li { margin-top: 8px; text-wrap: pretty; }
.panel li::marker { color: var(--gold-core); }
.brief li { font-size: clamp(15px, 1vw, 17px); opacity: 0.94; }
.contents { border-left-width: 1px; background: transparent; }
.contents ol { list-style: none; padding-left: 0; columns: 2; column-gap: 32px; }
.contents li { break-inside: avoid; margin-top: 6px; font-size: 14px; line-height: 1.5; }
.contents a { color: var(--bone); opacity: 0.8; border-bottom: 1px solid transparent; transition: color 0.4s var(--ease-lux), opacity 0.4s var(--ease-lux); }
.contents a:hover, .contents a:focus-visible { color: var(--gold-high); opacity: 1; }
.contents li::before { content: counter(toc, decimal-leading-zero); counter-increment: toc; font-family: var(--font-label); font-size: 10px; letter-spacing: 0.2em; color: var(--gold-core); margin-right: 12px; }
.contents ol { counter-reset: toc; }
@media (max-width: 600px) { .contents ol { columns: 1; } }

/* ---------- article body ---------- */
.post-body { margin-top: clamp(36px, 7svh, 72px); }
.post-body > * + * { margin-top: 1.35em; }
.post-body h2, .faq h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--bone);
  margin-top: clamp(48px, 8svh, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--gold-line);
  scroll-margin-top: 24px;
  text-wrap: balance;
}
.post-body h2::before, .faq h2::before {
  content: attr(data-num);
  display: block;
  font-family: var(--font-label);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold-core);
  margin-bottom: 14px;
}
.post-body h3, .faq-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.2;
  color: var(--bone);
  margin-top: 2.1em;
  scroll-margin-top: 24px;
}
.post-body p { text-wrap: pretty; opacity: 0.92; }
.post-body p a { color: var(--gold-core); border-bottom: 1px solid var(--gold-line); transition: color 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux); }
.post-body p a:hover, .post-body p a:focus-visible { color: var(--gold-high); border-color: var(--gold-high); }
.post-body strong { font-weight: 600; color: var(--bone); }
.post-body em { font-style: italic; }
.post-body ul, .post-body ol { padding-left: 1.2em; }
.post-body li { margin-top: 0.5em; text-wrap: pretty; opacity: 0.92; }
.post-body li::marker { color: var(--gold-core); }

/* doctrine */
.doctrine { list-style: none; padding: 0; display: grid; gap: 22px; margin-top: 1.6em; }
.doctrine li {
  padding: 22px 0 0;
  border-top: 1px solid var(--gold-line);
  margin: 0;
}
.doctrine .num { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.3em; color: var(--gold-core); }
.doctrine .word {
  display: block;
  font-family: var(--font-label);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  margin-top: 8px;
}
.doctrine .tagline { display: block; font-family: var(--font-display); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.35; margin-top: 8px; opacity: 0.9; }
.doctrine p { margin-top: 12px; font-size: clamp(15px, 1vw, 17px); }

/* faq */
.faq { margin-top: clamp(48px, 8svh, 84px); padding-top: 26px; border-top: 1px solid var(--gold-line); }
.faq h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.faq-item { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(201, 162, 39, 0.12); }
.faq-item:first-of-type { border-top: 0; }
.faq-item h3 { margin-top: 0; }
.faq-item p { margin-top: 10px; opacity: 0.92; text-wrap: pretty; }
.faq-item p a { color: var(--gold-core); border-bottom: 1px solid var(--gold-line); }

/* author */
.author-box {
  margin-top: clamp(48px, 8svh, 84px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--black-panel);
  border: 1px solid rgba(201, 162, 39, 0.16);
  display: grid; grid-template-columns: auto 1fr; gap: 22px clamp(18px, 2.4vw, 30px); align-items: start;
}
.author-box img { width: clamp(54px, 5vw, 72px); height: auto; mix-blend-mode: screen; }
.author-box .kicker { display: block; }
.author-name {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-label);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.author-box p { margin-top: 12px; font-size: clamp(15px, 1vw, 16.5px); opacity: 0.9; text-wrap: pretty; }
.author-links { display: flex; flex-wrap: wrap; gap: 2px clamp(16px, 2.4vw, 28px); margin-top: 10px; margin-left: -2px; }
@media (max-width: 480px) { .author-box { grid-template-columns: 1fr; } }

/* end-of-post navigation */
.post-nav { margin-top: clamp(36px, 6svh, 56px); display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 40px); }

/* ---------- blog index ---------- */
.index-head { margin-top: clamp(22px, 5svh, 48px); }
.index-head .kicker { display: block; margin-bottom: 18px; }
.index-head h1 { font-size: clamp(34px, 4.8vw, 60px); }
.index-head .post-lede { max-width: 38rem; }
.post-list { list-style: none; margin-top: clamp(40px, 7svh, 72px); }
.post-card {
  padding: clamp(26px, 4svh, 40px) 0;
  border-top: 1px solid var(--gold-line);
}
.post-card:last-child { border-bottom: 1px solid var(--gold-line); }
.post-card .meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--font-label);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-dim);
}
.post-card .meta span + span::before { content: '·'; margin-right: 18px; color: var(--gold-shadow); }
.post-card h2 { margin-top: 16px; font-size: clamp(27px, 3.2vw, 38px); }
.post-card h2 a { transition: color 0.4s var(--ease-lux); }
.post-card h2 a:hover, .post-card h2 a:focus-visible { color: var(--gold-high); }
.post-card .excerpt { margin-top: 14px; max-width: 40rem; opacity: 0.88; text-wrap: pretty; }
.post-card .more { display: inline-block; margin-top: 18px; margin-left: -2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  list-style: none;
  font-family: var(--font-label);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-core);
  border: 1px solid var(--gold-line);
  padding: 6px 10px;
}
.index-about { margin-top: clamp(48px, 8svh, 84px); }
.index-about h2 { font-size: clamp(26px, 3vw, 36px); }
.index-about p { margin-top: 16px; opacity: 0.9; text-wrap: pretty; }
.index-about ul { margin-top: 14px; padding-left: 1.2em; }
.index-about li { margin-top: 8px; opacity: 0.9; }
.index-about li::marker { color: var(--gold-core); }
.index-about a { color: var(--gold-core); border-bottom: 1px solid var(--gold-line); }
.index-about a:hover, .index-about a:focus-visible { color: var(--gold-high); border-color: var(--gold-high); }

/* narrow screens: metadata rows stack, so drop the inline separators
   (kept last so it wins over the byline and post-card rules above) */
@media (max-width: 480px) {
  .byline, .post-card .meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .byline span + span::before, .post-card .meta span + span::before { content: none; margin: 0; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .contents, .post-nav { display: none; }
}
