/*
Theme Name: Kandinsky Riposte
Theme URI:    https://riposte.levelflow.org
Author:       The Riposte
Description:  Child theme of Kandinsky for The Riposte — applies the 2026 Scandinavian editorial design system: Cormorant Garamond typography, white background, navy accent, refined reading layout.
Version:      1.0.3
Template:     kandinsky
Text Domain:  kandinsky-riposte
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --riposte-white:       #FFFFFF;
  --riposte-paper:       #F2F2F2;
  --riposte-ink:         #18160F;
  --riposte-ink-soft:    #47433A;
  --riposte-ink-muted:   #888077;
  --riposte-rule:        #E0E0E0;
  --riposte-accent:      #1B3A5C;
  --riposte-accent-dark: #122740;
  --riposte-highlight:   #EFEFEF;
  --riposte-serif:   'Cormorant Garamond', Georgia, serif;
  --riposte-sans:    'Instrument Sans', system-ui, sans-serif;
  --riposte-mono:    'JetBrains Mono', monospace;
  --knd-page-bg-color:        #FFFFFF;
  --knd-page-bg-color-dark:   #F2F2F2;
  --knd-color-main:           #1B3A5C;
  --knd-color-main-active:    #122740;
  --knd-color-base:           #47433A;
  --knd-color-headings:       #18160F;
  --knd-font-family-base:     'Cormorant Garamond', Georgia, serif;
  --knd-font-family-headings: 'Cormorant Garamond', Georgia, serif;
  --knd-font-weight-base:     400;
  --knd-font-weight-headings: 700;
  --knd-font-size-base:       1.5rem;
  --knd-header-background:    #FFFFFF;
  --knd-footer-background:    #F5F2EB;
  --knd-footer-color:         #7A7268;
  --knd-footer-heading-color: #18160F;
  --knd-footer-link-color:    #5A5650;
  --knd-footer-link-color-hover: #18160F;
}

body {
  background-color: #FFFFFF;
  color: var(--riposte-ink);
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .entry-title, .knd-section-title {
  font-family: var(--riposte-serif);
  color: var(--riposte-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1, .entry-title { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 600; }
h2 { font-size: 2.1rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 600; }
h5, h6 { font-size: 1.2rem; font-weight: 600; }

.knd-header-nav, .knd-header-nav a, nav, nav a {
  font-family: var(--riposte-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.knd-header-nav a:hover, nav a:hover {
  color: var(--riposte-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.knd-header, .site-header, header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--riposte-rule);
  box-shadow: none;
}

/* ── Header layout ── */
.knd-header .knd-container-fluid { padding-inline: 2rem; }

.knd-header__inner-desktop {
  height: 72px;
  display: flex;
  align-items: center;
}

/* Logo */
.knd-header-logo .logo img { height: 52px !important; width: auto !important; }

/* Nav links — small mono, muted */
.knd-header-nav .menu { display: flex; align-items: center; gap: 0; }

.knd-header-nav .menu-item a {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--riposte-ink-muted) !important;
  padding: 0.4rem 0.9rem !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
  display: block;
}

.knd-header-nav .menu-item a:hover,
.knd-header-nav .menu-item.current-menu-item a {
  color: var(--riposte-ink) !important;
  text-decoration: none !important;
}

/* Subscribe — CTA button */
.knd-header-nav .menu-item:last-child a {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  background: #1B3A5C !important;
  border: 1px solid #1B3A5C !important;
  padding: 0.45rem 1rem !important;
  margin-left: 0.5rem !important;
  transition: all 0.15s !important;
  border-radius: 0 !important;
}



/* Hide button, hamburger, search on desktop only */
@media (min-width: 1025px) {
  .knd-header .knd-button,
  .knd-header .knd-offcanvas-toggle,
  .knd-header .knd-search-toggle { display: none !important; }
}

.knd-header-logo, .knd-header-mobile-logo, .site-title, .site-title a {
  font-family: var(--riposte-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--riposte-ink);
}

/* Hide text block next to logo image */
.knd-header-logo .text,
.knd-header-logo .logo-name,
.knd-header-logo .logo-desc {
  display: none !important;
}

/* Make logo image bigger */
.knd-header-logo .logo img,
.knd-header-logo__inner .logo img {
  height: 80px !important;
  width: auto !important;
  max-width: none !important;
}

.single-post-section .entry-title, .single .entry-title {
  font-family: var(--riposte-serif);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--riposte-ink);
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.entry-meta, .knd-entry-cats, .knd-post-meta {
  font-family: var(--riposte-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--riposte-accent);
  margin-bottom: 1rem;
}
.entry-meta a, .knd-entry-cats a { color: var(--riposte-accent); }

.entry-lead, .entry-lead p, .post-excerpt {
  font-family: var(--riposte-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--riposte-ink-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 66ch;
}

.entry-content,
.the-content,
.entry-content.the-content,
.knd-post-text,
.knd-post-text .wp-block-paragraph,
.entry-content p,
.the-content p,
.entry-content .wp-block-paragraph,
.wp-block-post-content p,
.wp-block-post-content .wp-block-paragraph,
.single-post-section p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: var(--riposte-ink) !important;
  margin-bottom: 1.25rem;
}

.entry-content a, .the-content a {
  color: var(--riposte-ink);
  text-decoration: underline;
  text-decoration-color: var(--riposte-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s;
}
.entry-content a:hover, .the-content a:hover { text-decoration-color: var(--riposte-ink); }

.entry-content h2, .the-content h2 {
  font-size: 2.1rem;
  font-weight: 600;
  padding-top: 2.5rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  border-top: 1px solid var(--riposte-rule);
  letter-spacing: -0.015em;
}
.entry-content h3, .the-content h3 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content blockquote, .the-content blockquote, blockquote {
  border-left: 2px solid var(--riposte-accent);
  border-right: none; border-top: none; border-bottom: none;
  background: transparent;
  padding: 0.25rem 0 0.25rem 1.75rem;
  margin: 2.75rem 0;
  font-family: var(--riposte-serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--riposte-ink-soft);
}
blockquote p { font-size: 1.6rem !important; line-height: 1.5 !important; color: var(--riposte-ink-soft) !important; }
blockquote cite {
  font-family: var(--riposte-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--riposte-ink-muted);
}

.knd-share-list, .knd-social-share, #knd_sharing { display: flex; flex-direction: column; gap: 0.5rem; }
.knd-share-list a, .knd-share-list button, .knd-social-share a, #knd_sharing a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--riposte-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--riposte-ink-muted) !important;
  transition: all 0.15s;
}
.knd-share-list a:hover, .knd-social-share a:hover, #knd_sharing a:hover {
  border-color: var(--riposte-accent) !important;
  color: var(--riposte-accent) !important;
}
.knd-share-list .share-label { display: none; }

.knd-reading-progress, #reading-progress { height: 2px; background: var(--riposte-accent); }

.knd-card, .knd-post-card, .post-card { border: none; border-radius: 0; box-shadow: none; background: transparent; }
.knd-card:hover, .knd-post-card:hover { box-shadow: none; transform: none; }
.knd-card .entry-title, .knd-post-card .entry-title, .knd-card h2, .knd-card h3 {
  font-family: var(--riposte-serif);
  font-size: 1.5rem; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--riposte-ink);
}
.knd-card .entry-title a:hover, .knd-post-card .entry-title a:hover { color: var(--riposte-accent); }
.knd-card .entry-excerpt, .knd-post-card .entry-excerpt, .knd-card p {
  font-family: var(--riposte-serif); font-size: 1.15rem; line-height: 1.7; color: var(--riposte-ink-soft);
}
.knd-card img, .knd-post-card img, .knd-card .wp-post-image { border-radius: 0 !important; }

.knd-section-title, .section-title, .widget-title {
  font-family: var(--riposte-serif);
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--riposte-ink);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--riposte-ink);
  margin-bottom: 2rem;
}

.btn, .button, .knd-btn, .wp-block-button__link, input[type="submit"], button[type="submit"] {
  font-family: var(--riposte-mono);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 0 !important;
  background: var(--riposte-accent); color: #FFFFFF;
  border: 1px solid var(--riposte-accent);
  padding: 0.65rem 1.5rem; transition: all 0.15s;
}
.btn:hover, .button:hover, .knd-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
  background: transparent; color: var(--riposte-accent);
}

input[type="text"], input[type="email"], input[type="search"], textarea, select {
  font-family: var(--riposte-sans); font-size: 0.9rem;
  border: 1px solid var(--riposte-rule); border-radius: 0 !important;
  padding: 0.65rem 0.85rem; background: #FFFFFF; color: var(--riposte-ink);
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--riposte-accent); outline: none; box-shadow: none; }

.knd-tag, .tag-cloud-link, .knd-entry-tags a {
  font-family: var(--riposte-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--riposte-rule); border-radius: 0 !important;
  padding: 0.2rem 0.6rem; color: var(--riposte-ink-muted); background: transparent; transition: all 0.15s;
}
.knd-tag:hover, .tag-cloud-link:hover, .knd-entry-tags a:hover { border-color: var(--riposte-accent); color: var(--riposte-accent); }

.page-numbers, .knd-pagination a, .knd-pagination span {
  font-family: var(--riposte-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  border-radius: 0 !important; border: 1px solid var(--riposte-rule);
  color: var(--riposte-ink-muted); background: transparent;
}
.page-numbers:hover, .knd-pagination a:hover { border-color: var(--riposte-ink); color: var(--riposte-ink); }
.page-numbers.current, .knd-pagination .current { background: var(--riposte-ink); color: #FFFFFF; border-color: var(--riposte-ink); }

img, .knd-img, .wp-post-image, .attachment-thumbnail { border-radius: 0 !important; }
.knd-card, .knd-post-card, .knd-block-news { box-shadow: none !important; }
hr { border: none; border-top: 1px solid var(--riposte-rule); margin: 2.5rem 0; }
.reading-progress-bar { background: var(--riposte-accent) !important; height: 2px !important; border-radius: 0 !important; }

/* ── Hero — Option E: text left + navy accent, image right ── */
html body .knd-block-news-type-2.knd-block-col-1 {
    border-left: 3px solid #1B3A5C !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .knd-post-entry-content {
    padding: 2rem 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .entry-title {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    color: #18160F !important;
    margin-bottom: 1rem !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .entry-title a {
    font-size: inherit !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .entry-title a {
    color: #18160F !important;
    text-decoration: none !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .entry-title a:hover {
    color: #1B3A5C !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .knd-block-post-category,
html body .knd-block-news-type-2.knd-block-col-1 .knd-block-post-category a {
    color: #1B3A5C !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .entry-excerpt {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-style: italic !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #47433A !important;
    margin-bottom: 1rem !important;
}

html body .knd-block-news-type-2.knd-block-col-1 .knd-block-featured-image,
html body .knd-block-news-type-2.knd-block-col-1 .knd-block-featured-image img {
    border-radius: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── Homepage block layout ── */

/* Separators */
html body .wp-block-separator {
    border: none !important;
    border-top: 1px solid #E0E0E0 !important;
    margin: 2rem 0 !important;
    background: none !important;
    height: 1px !important;
}

html body .knd-block-news { margin-bottom: 0 !important; }

/* ── HERO — full-width image, content overlaid at bottom ── */
html body .knd-block-news-type-1 {
    position: relative !important;
    overflow: hidden !important;
}

html body .knd-block-news-type-1 .knd-block-featured-image {
    position: relative !important;
    aspect-ratio: 21/9 !important;
    overflow: hidden !important;
}
@media (max-width: 768px) {
    html body .knd-block-news-type-1 .knd-block-featured-image { aspect-ratio: 4/3 !important; }
}

html body .knd-block-news-type-1 .knd-block-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Gradient overlay */
html body .knd-block-news-type-1 .knd-block-featured-image::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(10,10,11,0.88) 0%, rgba(10,10,11,0.4) 50%, rgba(10,10,11,0.05) 100%) !important;
    pointer-events: none !important;
}

/* Content over image */
html body .knd-block-news-type-1 .knd-entry-data {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 2.5rem 3rem !important;
    z-index: 2 !important;
    background: none !important;
}
@media (max-width: 768px) {
    html body .knd-block-news-type-1 .knd-entry-data { padding: 1.5rem !important; }
}

/* Hero category label */
html body .knd-block-news-type-1 .entry-cats,
html body .knd-block-news-type-1 .entry-meta {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.65) !important;
    margin-bottom: 0.65rem !important;
    display: block !important;
}

/* Hero title */
html body .knd-block-news-type-1 .entry-title {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(1.8rem, 4vw, 3.2rem) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    color: #FFFFFF !important;
    margin-bottom: 0.75rem !important;
    max-width: 22ch !important;
}
html body .knd-block-news-type-1 .entry-title a { color: #FFFFFF !important; text-decoration: none !important; }

/* Hero excerpt */
html body .knd-block-news-type-1 .entry-excerpt {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.1rem !important;
    font-style: italic !important;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.55 !important;
    max-width: 60ch !important;
    margin-bottom: 0.75rem !important;
}

/* Hero date */
html body .knd-block-news-type-1 .entry-date,
html body .knd-block-news-type-1 time {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.5) !important;
}

/* ── Section headers — mono uppercase ── */
html body .knd-block-news .section-heading,
html body .knd-block-news .knd-block-heading {
    border-top: 2px solid #18160F !important;
    border-bottom: none !important;
    padding: 0.5rem 0 0 !important;
    margin-bottom: 1.5rem !important;
    background: none !important;
}
html body .knd-block-news .section-heading .section-title,
html body .knd-block-news .knd-block-heading h2,
html body .knd-block-news h2.section-title {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: #18160F !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* ── Card meta — mono ── */
html body .knd-block-news .entry-cats a,
html body .knd-block-news .entry-meta,
html body .knd-block-news .entry-date,
html body .knd-block-news time,
html body .knd-block-news .knd-entry-meta {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 9px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #888077 !important;
}

/* ── Card titles ── */
html body .knd-block-news:not(.knd-block-news-type-1) .entry-title {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    letter-spacing: -0.015em !important;
    line-height: 1.2 !important;
    color: #18160F !important;
}
html body .knd-block-news:not(.knd-block-news-type-1) .entry-title a { color: #18160F !important; text-decoration: none !important; }
html body .knd-block-news:not(.knd-block-news-type-1) .entry-title a:hover { color: #1B3A5C !important; }

/* Remove Kandinsky border radius on images */
html body .knd-block-news .knd-block-featured-image,
html body .knd-block-news .knd-block-featured-image img {
    border-radius: 0 !important;
}

/* ── Mobile typography ── */
@media (max-width: 768px) {
  body { font-size: 14px !important; line-height: 1.6 !important; }
  .entry-content,
  .the-content,
  .knd-post-text,
  .entry-content p,
  .the-content p,
  .entry-content .wp-block-paragraph,
  .knd-post-text .wp-block-paragraph,
  .single-post-section p { font-size: 14px !important; line-height: 1.6 !important; }
  .entry-lead, .entry-lead p { font-size: 15px !important; }
  h1, .entry-title,
  .single-post-section .entry-title,
  .single .entry-title { font-size: clamp(1.4rem, 6vw, 1.8rem) !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.1rem !important; }
  blockquote, blockquote p { font-size: 14px !important; }
}

/* ── Header: hide text next to logo ── */
.knd-header-logo .text,
.knd-header-logo .logo-name,
.knd-header-logo .logo-desc,
.knd-header-logo__inner .text,
.knd-header-logo__inner .logo-name,
.knd-header-logo__inner .logo-desc { display: none !important; }

/* Logo image size */
.knd-header-logo .logo img,
.knd-header-logo__inner .logo img { height: 52px !important; width: auto !important; max-width: none !important; }

/* ── Header layout ── */
.knd-header__inner-desktop { height: 72px; }

/* Nav links — small, muted mono */
.knd-header-nav .menu { display: flex; align-items: center; gap: 0; }

.knd-header-nav .menu-item a {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--riposte-ink-muted) !important;
  padding: 0.4rem 0.9rem !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}
.knd-header-nav .menu-item a:hover,
.knd-header-nav .menu-item.current-menu-item a {
  color: var(--riposte-ink) !important;
}

/* Subscribe — CTA button */
.knd-header-nav .menu-item:last-child a {
  color: #FFFFFF !important;
  background: var(--riposte-accent) !important;
  padding: 0.45rem 1rem !important;
  margin-left: 0.5rem !important;
  transition: background 0.15s !important;
}
.knd-header-nav .menu-item:last-child a:hover {
  background: var(--riposte-accent-dark) !important;
  color: #FFFFFF !important;
}

/* Hide Kandinsky's CTA button, hamburger, search toggle */
.knd-header .knd-button,
.knd-header .knd-offcanvas-toggle,
.knd-offcanvas-toggle,
.knd-header .knd-search-toggle { display: none !important; }

/* ── Category & date — mono throughout ── */
html body .knd-block-post-category,
html body .knd-block-post-category a,
html body .knd-block-post-date,
html body .knd-block-post-date time {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #888077 !important;
}