/*
 * wunderlich.ca — Source theme CSS overrides
 * Per-section colour system using CSS custom properties
 * Follows Source theme variable naming conventions
 */

/* ============================================================
   GLOBAL OVERRIDES — applied across all sections
   ============================================================ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Consulting / default palette — JWA brand */
  --color-primary:       #2a3f5f;
  --color-accent:        #2a3f5f;
  --color-accent-hover:  #1e2f47;
  --color-border:        #d8dde3;
  --color-surface:       #ffffff;
  --color-surface-2:     #f4f6f8;
  --color-text:          #1a1f24;
  --color-text-secondary:#4a5568;

  /* Art Deco border radius — slightly less rounded than Source default */
  --border-radius:       3px;
  --border-radius-sm:    2px;
}

/* ============================================================
   WEBISTEMOLOGY SECTION
   Body gets class .section-webistemology via template
   Palette: deep teal — privacy, digital, considered
   ============================================================ */

body.section-webistemology {
  --color-primary:        #1a4a4a;
  --color-accent:         #1e6060;
  --color-accent-hover:   #144040;
  --color-border:         #c8d8d8;
  --color-surface:        #f4f8f8;
  --color-surface-2:      #e8f0f0;
  --color-text:           #0f2020;
  --color-text-secondary: #3a5858;
}

body.section-webistemology .gh-head {
  background-color: #1a4a4a;
  color: #e8f4f4;
}

body.section-webistemology .gh-head a,
body.section-webistemology .gh-head-logo {
  color: #e8f4f4;
}

body.section-webistemology .gh-head a:hover {
  color: #ffffff;
}

body.section-webistemology .section-banner {
  background-color: #1a4a4a;
  color: #e8f4f4;
}

/* ============================================================
   EAST OF THE DON SECTION
   Body gets class .section-east-of-the-don via template
   Palette: poster red + cool off-white — political, direct
   ============================================================ */

body.section-east-of-the-don {
  --color-primary:        #b83225;
  --color-accent:         #b83225;
  --color-accent-hover:   #8f2118;
  --color-border:         #d8c8c6;
  --color-surface:        #eef0f2;
  --color-surface-2:      #e4e6e8;
  --color-text:           #1a1208;
  --color-text-secondary: #5a4040;
}

body.section-east-of-the-don .gh-head {
  background-color: #1a1208;
  color: #eef0f2;
}

body.section-east-of-the-don .gh-head a,
body.section-east-of-the-don .gh-head-logo {
  color: #eef0f2;
}

body.section-east-of-the-don .gh-head a:hover {
  color: #ffffff;
}

body.section-east-of-the-don .section-banner {
  background-color: #1a1208;
  color: #eef0f2;
}

/* ============================================================
   SECTION BANNER COMPONENT
   Used in section-specific header partials
   ============================================================ */

.section-banner {
  padding: 4rem 4vmin 3rem;
  margin-bottom: 0;
}

.section-banner-inner {
  max-width: 720px;
}

.section-banner-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.section-banner-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-banner-description {
  font-size: 1.1rem;
  line-height: 1.65;
  opacity: 0.8;
  max-width: 560px;
  margin: 0;
}

/* Art Deco horizontal rule — used in section banners */
.section-banner-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.section-banner-rule::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

.section-banner-rule::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.section-banner-rule-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================================================
   EAST OF THE DON — HERO PHOTOGRAPH
   Full-width section hero with Tommy Thompson Park photo
   ============================================================ */

.section-hero-east {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: 0;
}

.section-hero-east img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.section-hero-east-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(26, 18, 8, 0.75) 100%
  );
}

.section-hero-east-text {
  position: absolute;
  bottom: 2.5rem;
  left: 4vmin;
  color: #eef0f2;
}

.section-hero-east-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  line-height: 1;
}

.section-hero-east-text h1 span {
  color: #b83225;
}

.section-hero-east-text p {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0.5rem 0 0;
}

/* Art Deco accent line under hero */
.section-hero-east-rule {
  height: 3px;
  background: #b83225;
  width: 100%;
}

.section-hero-east-rule-thin {
  height: 1px;
  background: #b8962a;
  width: 100%;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION — three-section awareness
   ============================================================ */

.gh-nav-section-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.gh-nav-section-indicator.consulting { background: #2a3f5f; }
.gh-nav-section-indicator.webistemology { background: #1e6060; }
.gh-nav-section-indicator.east-of-the-don { background: #b83225; }

/* ============================================================
   ART DECO TYPOGRAPHIC DETAILS
   Applied globally, visible across all sections
   ============================================================ */

/* Post card tag labels — small caps treatment */
.gh-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Post title — tighter tracking for large display sizes */
.gh-article-title {
  letter-spacing: -0.025em;
}

/* Blockquote — left border rule, Art Deco weight */
blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin-left: 0;
  font-style: italic;
}

blockquote::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
  margin-bottom: 1rem;
}
