/*
Theme Name: Capsule Corp
Theme URI: https://hacktivity.fr
Author: Capsule Corp
Description: Modular block theme with a framed card-grid front page, filterable blog archive, split-hero single posts and a floating table of contents. Locale-aware (fr / en / es) via core locales or multisite.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: capsule-corp
Tags: block-theme, blog, custom-colors, full-site-editing
*/

/* ===========================================================================
   1. Theme tokens
   Light values live on :root, dark overrides on [data-theme="dark"].
   Accent + surface hues are injected from the Customizer (inc/customizer.php),
   which prints a small <style> block after this file.
   =========================================================================== */

:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Google Sans', 'Product Sans', system-ui, sans-serif;

  --brand-purple: #6000e6;
  --brand-purple-tint: #dfccfa;
  --brand-orange: #e6703a;
  --brand-red: #c5273c;
  --fixed-ink: #0f0e10;
  --color-text-light: #ffffff;

  --radius-frame: 34px;
  --radius-card: 22px;

  --color-page-bg-1: #dbdadc;
  --color-page-bg-2: #948f97;
  --color-frame: #ffffff;
  --color-surface: #ffffff;
  --color-dark: #0f0e10;
  --color-blog: #ebeaec;
  --color-text-primary: #0f0e10;
  --color-label-muted: #706975;
  --color-signup-bg: #000000;
  --color-login-bg: #ebeaec;
  --color-login-text: #0f0e10;
  --color-border: #ebeaec;
  --color-chip: #ebeaec;
  --color-chip-text: #0f0e10;
  --color-input: #f4f3f5;
}

[data-theme="dark"] {
  --color-page-bg-1: #0b001a;
  --color-page-bg-2: #13002e;
  --color-frame: #0f0e10;
  --color-surface: #1e1b21;
  --color-dark: #050409;
  --color-blog: #1e1b21;
  --color-text-primary: #ebeaec;
  --color-label-muted: #948f97;
  --color-signup-bg: #6000e6;
  --color-login-bg: #2e2931;
  --color-login-text: #ebeaec;
  --color-border: #2e2931;
  --color-chip: #2e2931;
  --color-chip-text: #ebeaec;
  --color-input: #1e1b21;
}

/* ===========================================================================
   2. Shell — page background + white frame
   =========================================================================== */

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Body font on every possible wrapper: the front end, the editor canvas and
   any embedded preview of the frame. */
body.cc-body,
.editor-styles-wrapper,
.cc-frame {
  font-family: var(--font-body);
  color: var(--color-text-primary);
}

body.cc-body {
  margin: 0;
  min-height: 100dvh;
  padding: 32px;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.35), rgba(255,255,255,0) 45%),
    radial-gradient(90% 80% at 80% 80%, rgba(96,0,230,.16), rgba(96,0,230,0) 55%),
    linear-gradient(135deg, var(--color-page-bg-1), var(--color-page-bg-2));
  background-attachment: fixed;
}

.cc-frame {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 28px 22px;
  background: var(--color-frame);
  border-radius: var(--radius-frame);
  box-shadow: 0 40px 90px rgba(15,14,16,.28);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

/* ===========================================================================
   3. Header
   =========================================================================== */

.cc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 12px 24px;
}
.cc-nav__left { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.cc-brand { display: flex; align-items: center; gap: 14px; }
.cc-brand svg, .cc-brand img { display: block; width: 44px; height: 44px; }
.cc-brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--color-text-primary);
}
.cc-menu ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.cc-menu a { font-size: 15px; color: var(--color-text-primary); }
.cc-menu a:hover { color: var(--brand-purple); }

.cc-nav__right { display: flex; align-items: center; gap: 12px; position: relative; }
.cc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
}
.cc-pill--login { background: var(--color-login-bg); color: var(--color-login-text); }
.cc-pill--signup { background: var(--color-signup-bg); color: #fff; padding: 14px 30px; }

.cc-round-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-login-bg);
  color: var(--color-login-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Language + theme popover */
.cc-popover {
  position: absolute;
  top: 52px; right: 0;
  z-index: 50;
  width: 220px;
  padding: 14px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(15,14,16,.3);
}
.cc-popover[hidden] { display: none; }
.cc-popover__label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--color-label-muted);
  margin: 2px 0 8px;
}
.cc-popover__list { display: flex; flex-direction: column; gap: 4px; }
.cc-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.cc-opt:hover { background: var(--color-input); }
.cc-opt[aria-current="true"], .cc-opt.is-active {
  background: var(--color-input);
  border-color: var(--color-border);
  font-weight: 700;
}
.cc-opt__dot { color: var(--brand-purple); opacity: 0; font-size: 11px; }
.cc-opt[aria-current="true"] .cc-opt__dot, .cc-opt.is-active .cc-opt__dot { opacity: 1; }
.cc-divider { height: 1px; background: var(--color-border); margin: 12px 0; }
.cc-theme-row { display: flex; gap: 8px; }
.cc-theme-row .cc-opt { justify-content: center; }

/* Mobile drawer */
.cc-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-login-bg);
  color: var(--color-login-text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.cc-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15,14,16,.45);
  border: 0;
}
.cc-scrim[hidden], .cc-drawer[hidden] { display: none; }
.cc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 61;
  width: min(84vw, 320px);
  padding: 22px 22px 28px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: -20px 0 50px rgba(15,14,16,.35);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.cc-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cc-drawer__close {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: inherit;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.cc-drawer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-drawer nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.cc-drawer nav a:hover { background: var(--color-input); }
.cc-drawer__actions { display: flex; gap: 10px; margin-top: 16px; }
.cc-drawer__actions .cc-pill { flex: 1; padding: 14px 0; }

/* ===========================================================================
   4. Front page — hero + card grid
   =========================================================================== */

.cc-home { display: flex; flex-direction: column; gap: 16px; }
.cc-grid {
  display: grid;
  grid-template-columns: 1.16fr .86fr .86fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 480px;
}
.cc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}
.cc-card__title {
  margin: auto 0 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -.01em;
}
.cc-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.35;
}
.cc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* Hero */
.cc-hero { grid-column: 1; grid-row: 1 / span 2; background: var(--color-dark); }
.cc-hero__bg { position: absolute; inset: 0; }
.cc-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-hero__bg--empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  color: var(--color-label-muted);
  font-size: 13px;
}
.cc-hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,4,9,.92) 0%, rgba(5,4,9,.78) 40%, rgba(5,4,9,.30) 100%),
    linear-gradient(0deg, rgba(96,0,230,.38), rgba(96,0,230,0) 55%);
}
.cc-hero__inner {
  position: relative; z-index: 2;
  height: 100%;
  padding: 34px 38px;
  display: flex; flex-direction: column;
}
.cc-hero__label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--color-text-light); opacity: .85;
}
.cc-hero__title {
  margin: 18px 0 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--color-text-light);
  max-width: 14ch;
  text-wrap: pretty;
}
.cc-hero__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 22px;
  width: max-content;
  padding: 6px 6px 6px 22px;
  background: var(--color-frame);
  border-radius: 14px;
}
.cc-hero__cta small {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--color-label-muted);
}
.cc-hero__cta strong { font-size: 17px; font-weight: 700; color: var(--color-text-primary); }
.cc-hero__cta span {
  width: 56px; height: 52px;
  border-radius: 10px;
  background: var(--brand-purple);
  display: flex; align-items: center; justify-content: center;
}

/* Link cards */
.cc-card--blog { grid-column: 2 / span 2; grid-row: 1; background: var(--color-blog); padding: 30px 34px; color: var(--color-text-primary); }
.cc-card--purple { grid-column: 2; grid-row: 2; background: var(--brand-purple); padding: 26px 30px; color: var(--color-text-light); }
.cc-card--orange { grid-column: 3; grid-row: 2; background: var(--brand-orange); padding: 26px 30px; color: var(--fixed-ink); }
.cc-card--dark { background: var(--color-dark); padding: 26px 30px; color: var(--color-text-light); }
.cc-card__media {
  position: absolute; right: 22px; top: 24px;
  width: 238px; height: 190px;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-frame);
}
.cc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-label-muted); font-size: 12px;
}
.cc-card--blog .cc-card__top, .cc-card--blog .cc-card__title { position: relative; z-index: 2; }
.cc-card:hover .cc-card__title { opacity: .82; }

/* ===========================================================================
   5. Featured carousel
   =========================================================================== */

.cc-featured { display: flex; flex-direction: column; gap: 12px; padding-top: 2px; }
.cc-featured__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--brand-purple); }
.cc-featured__track {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.cc-featured__track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cc-featured .cc-post-card { flex: 0 0 260px; scroll-snap-align: start; }
.cc-featured .cc-post-card__media { height: 132px; }
.cc-featured .cc-post-card__title { font-size: 16px; }

/* ===========================================================================
   6. Post cards (archive, search, carousel)
   =========================================================================== */

.cc-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.cc-post-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cc-post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,14,16,.14); }
.cc-post-card__media {
  position: relative;
  margin: 10px 10px 0;
  height: 172px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-blog);
}
.cc-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-post-card__tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,14,16,.72);
  color: #fff;
  backdrop-filter: blur(4px);
}
.cc-post-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.cc-post-card__date { font-size: 12px; font-weight: 600; color: var(--color-label-muted); }
.cc-post-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: -.01em;
  color: var(--color-text-primary);
  text-wrap: pretty;
}
.cc-post-card__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--color-label-muted); margin: 0; }
.cc-post-card__more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  color: var(--brand-purple);
}

/* ===========================================================================
   7. Archive header + filters
   =========================================================================== */

.cc-archive-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 22px;
}
.cc-archive-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 46px;
  letter-spacing: -.02em;
  color: var(--color-text-primary);
}
.cc-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-login-bg);
  border: 1px solid var(--color-border);
  padding: 11px 18px;
  border-radius: 999px;
}
.cc-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-input);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 6px 4px 20px;
  margin-bottom: 18px;
}
.cc-search input {
  flex: 1; min-width: 0;
  padding: 12px 0;
  border: 0; background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}
.cc-search__clear {
  border: 0; cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-chip);
  color: var(--color-chip-text);
  font-size: 15px; line-height: 1;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.cc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cc-pills--years { align-items: center; margin-bottom: 28px; }
.cc-pills__label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--color-label-muted);
  margin-right: 4px;
}
.cc-chip {
  font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-chip);
  color: var(--color-chip-text);
  cursor: pointer;
}
.cc-chip:hover { border-color: var(--brand-purple); }
.cc-chip.is-active { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }

.cc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 0; text-align: center; }
.cc-empty__title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--color-text-primary); }
.cc-empty__hint { font-size: 14px; color: var(--color-label-muted); }

.cc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.cc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 14px; font-weight: 600;
  color: var(--color-text-primary);
}
.cc-pagination .page-numbers.current { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }

/* ===========================================================================
   8. Single post / page
   =========================================================================== */

.cc-single { padding: 6px 6px 20px; }
.cc-single__back { font-size: 14px; font-weight: 600; color: var(--color-label-muted); }
.cc-split {
  display: flex; gap: 40px; align-items: flex-start;
  margin: 22px 0 34px;
}
.cc-split__media { flex: 0 0 50%; max-width: 50%; }
.cc-split__media img { width: 100%; border-radius: 18px; display: block; }
.cc-split__text { flex: 1 1 auto; min-width: 0; }
.cc-split__date { font-size: 13px; color: var(--color-label-muted); margin-bottom: 8px; }
.cc-split__title {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--color-text-primary);
  text-wrap: pretty;
}
.cc-split__desc {
  margin: 0;
  font-size: 17px; line-height: 1.6;
  color: var(--color-label-muted);
}

.cc-content { font-size: 15px; line-height: 1.7; color: var(--color-text-primary); }
.cc-content > * + * { margin-top: 16px; }
.cc-content h1, .cc-content h2, .cc-content h3, .cc-content h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  scroll-margin-top: 24px;
}
.cc-content h1 { font-size: 26px; }
.cc-content h2 { font-size: 22px; margin-top: 32px; }
.cc-content h3 { font-size: 18px; margin-top: 26px; }
.cc-content p { margin: 0 0 16px; }
.cc-content img { border-radius: 14px; margin: 18px 0; }
.cc-content a { color: var(--brand-purple); text-decoration: underline; }
.cc-content ul, .cc-content ol { margin: 0 0 16px 20px; }
.cc-content blockquote {
  margin: 0 0 16px;
  padding: 8px 18px;
  border-left: 3px solid var(--brand-purple);
  color: var(--color-label-muted);
}
.cc-content figure { margin: 18px 0; }

.cc-meta { border-top: 1px solid var(--color-border); margin-top: 34px; padding-top: 24px; }
.cc-meta__label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--color-label-muted);
  margin-bottom: 10px;
}
.cc-meta__row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cc-tag { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--color-chip); color: var(--color-chip-text); }
.cc-tag--cat { background: var(--brand-purple); color: #fff; }

/* ===========================================================================
   9. Floating table of contents
   =========================================================================== */

.cc-toc { position: fixed; right: 26px; bottom: 26px; z-index: 60; }
.cc-toc__btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--brand-purple);
  color: #fff;
  box-shadow: 0 12px 30px rgba(96,0,230,.4);
  display: flex; align-items: center; justify-content: center;
}
.cc-toc__panel {
  position: absolute; right: 0; bottom: 66px;
  width: 266px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 16px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.cc-toc__panel[hidden] { display: none; }
.cc-toc__label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-label-muted);
  margin: 0 6px 10px;
}
.cc-toc__list { display: flex; flex-direction: column; gap: 1px; }
.cc-toc__link {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--color-text-primary);
}
.cc-toc__link:hover { color: var(--brand-purple); background: var(--color-input); }
.cc-toc__link[data-level="3"] { padding-left: 22px; font-size: 12.5px; color: var(--color-label-muted); }

/* ===========================================================================
   10. Footer
   =========================================================================== */

.cc-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: 34px;
  padding: 20px 12px 6px;
  font-size: 13px;
  color: var(--color-label-muted);
}

/* ===========================================================================
   11. Responsive
   =========================================================================== */

@media (max-width: 960px) {
  body.cc-body { padding: 24px; }
  .cc-frame { padding: 22px 20px 24px; }
  .cc-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .cc-hero { grid-column: 1 / span 2; grid-row: 1; min-height: 440px; }
  .cc-card--blog { grid-column: 1 / span 2; grid-row: 2; min-height: 260px; }
  .cc-card--purple { grid-column: 1; grid-row: 3; min-height: 220px; }
  .cc-card--orange { grid-column: 2; grid-row: 3; min-height: 220px; }
}

@media (max-width: 900px) {
  .cc-split { flex-direction: column; gap: 0; margin-bottom: 24px; }
  .cc-split__media { flex-basis: auto; max-width: 100%; width: 100%; margin-bottom: 18px; order: -1; }
  .cc-split__desc { display: none; }
  .cc-split__title { font-size: 30px; }
}

@media (max-width: 620px) {
  body.cc-body { padding: 0; }
  .cc-frame { padding: 14px 14px 16px; border-radius: 0; min-height: 100dvh; }
  .cc-nav { gap: 10px; padding: 2px 2px 12px; }
  .cc-nav__left { gap: 0; }
  .cc-menu, .cc-nav__actions { display: none; }
  .cc-burger { display: flex; }
  .cc-brand svg, .cc-brand img { width: 30px; height: 30px; }
  .cc-brand__name { font-size: 13px; }
  .cc-grid { grid-template-columns: 1fr 1fr; min-height: 0; }
  .cc-hero { min-height: 380px; }
  .cc-hero__title { font-size: 34px; }
  .cc-hero__inner { padding: 24px 22px; }
  .cc-card__title { font-size: 26px; }
  .cc-card__media { width: 150px; height: 120px; right: 14px; top: 16px; }
  .cc-post-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cc-archive-title { font-size: 32px; }
  .cc-post-card__title { font-size: 15px; }
  .cc-post-card__excerpt, .cc-post-card__more { display: none; }
  .cc-post-card__media { height: 110px; }
  .cc-toc { right: 16px; bottom: 16px; }
}

/* Editor parity: the block editor canvas gets the frame look too. */
.editor-styles-wrapper { background: var(--color-frame); }
