/* ==========================================================================
   Kuba & Leia Theme — main.css v1.2.0
   --------------------------------------------------------------------------
   v1.2.0 changes:
     - Hero now uses photographic image (cat on ledge) with text overlay
     - Stamp watermark removed (no longer needed)
     - Hero text is white with text-shadow for contrast on image
     - BrushPod card now has a photographic image at the top instead of icon
     - My Feline card retains icon (real screenshot pending from James)
     - Card structure refactored to accommodate optional image header
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS variables
   -------------------------------------------------------------------------- */

:root {
  --colour-text: #504F49;
  --colour-panel: #D2D3CD;
  --colour-accent: #1EA0AC;
  --colour-accent-hover: #16808A;
  --colour-warm: #C97B5D;
  --colour-warm-hover: #B36649;
  --colour-bg: #FBFAF6;
  --colour-bg-warmer: #F5F2E9;
  --colour-bg-dark: #504F49;
  --colour-card: #FFFFFF;
  --colour-border: rgba(80, 79, 73, 0.12);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-label: 'Quicksand', system-ui, -apple-system, sans-serif;

  --size-xs: 0.8125rem;
  --size-s: 0.9375rem;
  --size-base: 1.0625rem;
  --size-m: 1.25rem;
  --size-l: 1.5rem;
  --size-xl: 2rem;
  --size-2xl: 2.5rem;
  --size-3xl: 3.5rem;
  --size-4xl: 4.5rem;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --max-width: 1180px;
  --max-width-narrow: 760px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 24px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--colour-bg);
  color: var(--colour-text);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--colour-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--colour-accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--colour-text);
  margin: 0 0 var(--space-m);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--size-3xl); font-weight: 700; }
h2 { font-size: var(--size-2xl); }
h3 { font-size: var(--size-xl); }

p {
  margin: 0 0 var(--space-m);
}

p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   4. Site header
   -------------------------------------------------------------------------- */

.site-header {
  background-color: rgba(251, 250, 246, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-m) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--colour-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-header__logo {
  display: inline-block;
  line-height: 0;
}

.site-header__wordmark {
  height: 44px;
  width: auto;
  display: block;
}

.site-header__stamp {
  display: none;
  height: 44px;
  width: 44px;
}


/* --------------------------------------------------------------------------
   5. Hero (image-led)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 580px;
  max-height: 720px;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #6E8090;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.25) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero__content {
  width: 100%;
  max-width: 520px;
  color: #FFFFFF;
  text-align: right;
}

.hero__rule {
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--colour-accent);
  margin: 0 0 var(--space-l) auto;
  border: none;
  border-radius: 2px;
}

.hero__headline {
  font-size: clamp(2.5rem, 6vw, var(--size-4xl));
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--space-l);
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__subhead {
  font-size: var(--size-m);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  max-width: 480px;
  margin-left: auto;
}


/* --------------------------------------------------------------------------
   6. Ventures
   -------------------------------------------------------------------------- */

.ventures {
  padding: var(--space-2xl) 0;
  background-color: var(--colour-panel);
  position: relative;
  background-image:
    radial-gradient(circle, rgba(80, 79, 73, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.ventures__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
  position: relative;
  z-index: 1;
}

.ventures__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ventures__title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-m);
}

.ventures__intro {
  font-size: var(--size-m);
  opacity: 0.85;
  line-height: 1.55;
}

.ventures__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
}

.venture-card {
  background-color: var(--colour-card);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: currentColor;
  z-index: 3;
}

.venture-card--myfeline { color: var(--colour-accent); }
.venture-card--brushpod { color: var(--colour-warm); }

.venture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(80, 79, 73, 0.10);
}

.venture-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background-color: var(--colour-panel);
}

.venture-card__body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.venture-card--has-photo .venture-card__body {
  padding-top: var(--space-l);
}

.venture-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-m);
  display: block;
}

.venture-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.venture-card__name {
  font-size: var(--size-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  color: var(--colour-text);
}

.venture-card__name sup {
  font-size: 0.45em;
  font-weight: 500;
  position: relative;
  top: -0.8em;
  margin-left: 0.1em;
  opacity: 0.65;
}

.venture-card__tagline {
  font-family: var(--font-label);
  font-size: var(--size-base);
  font-weight: 500;
  color: currentColor;
  margin-bottom: var(--space-m);
  letter-spacing: 0.005em;
}

.venture-card__body-text {
  font-size: var(--size-base);
  line-height: 1.65;
  color: var(--colour-text);
  opacity: 0.82;
  margin-bottom: var(--space-l);
  flex-grow: 1;
}

.venture-card__cta {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--size-s);
  letter-spacing: 0.02em;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  align-self: flex-start;
  transition: gap var(--transition-base), color var(--transition-fast);
}

.venture-card--myfeline .venture-card__cta:hover {
  color: var(--colour-accent-hover);
  gap: calc(var(--space-xs) + 4px);
}

.venture-card--brushpod .venture-card__cta:hover {
  color: var(--colour-warm-hover);
  gap: calc(var(--space-xs) + 4px);
}

.venture-card__arrow {
  font-size: 1.15em;
  line-height: 1;
}


/* --------------------------------------------------------------------------
   7. Why section
   -------------------------------------------------------------------------- */

.why {
  padding: var(--space-2xl) 0;
  background-color: var(--colour-bg);
}

.why__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-l);
  text-align: center;
}

.why__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-l);
  opacity: 0.85;
  display: block;
}

.why__title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-l);
}

.why__divider {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--colour-accent);
  border: none;
  margin: 0 auto var(--space-xl);
  border-radius: 1px;
}

.why__body {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}

.why__body p {
  font-size: var(--size-m);
  line-height: 1.75;
  margin-bottom: var(--space-l);
  opacity: 0.88;
}

.why__body p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   8. Site footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--colour-bg-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.site-footer__brand {
  margin-bottom: var(--space-xl);
}

.site-footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-m);
  opacity: 0.95;
}

.site-footer__contact {
  font-size: var(--size-base);
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__contact a {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}

.site-footer__contact a:hover {
  color: var(--colour-accent);
  border-bottom-color: var(--colour-accent);
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
}

.site-footer__nav a {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: var(--size-s);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: rgba(255, 255, 255, 1);
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-l);
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.site-footer__legal p {
  margin: 0 0 var(--space-xs);
}

.site-footer__trademark {
  margin-top: var(--space-s);
}


/* --------------------------------------------------------------------------
   9. Single post and page
   -------------------------------------------------------------------------- */

.single-post__inner,
.single-page__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-l);
}

.single-post__title,
.single-page__title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-m);
}

.single-post__excerpt {
  font-size: var(--size-m);
  opacity: 0.78;
  margin-bottom: var(--space-xl);
}

.single-post__content,
.single-page__content {
  font-size: var(--size-base);
  line-height: 1.75;
}


/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --space-2xl: 4rem;
    --space-3xl: 5.5rem;
  }

  .ventures__grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .hero {
    min-height: 480px;
    height: 60vh;
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

@media (max-width: 640px) {
  :root {
    --size-3xl: 2.5rem;
    --size-4xl: 3rem;
    --size-2xl: 1.875rem;
    --size-xl: 1.5rem;
  }

  .site-header__wordmark {
    display: none;
  }

  .site-header__stamp {
    display: block;
  }

  .site-header__inner,
  .hero__inner,
  .ventures__inner,
  .why__inner,
  .site-footer__inner {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }

  .venture-card__body {
    padding: var(--space-l);
  }

  .hero {
    min-height: 520px;
    height: 70vh;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.55) 100%
    );
  }

  .hero__inner {
    justify-content: flex-start;
    align-items: flex-end;
    height: 100%;
    padding-bottom: var(--space-xl);
  }

  .hero__content {
    text-align: left;
    max-width: 100%;
  }

  .hero__rule {
    margin: 0 0 var(--space-l) 0;
  }

  .hero__subhead {
    margin-left: 0;
  }

  .site-footer__nav ul {
    gap: var(--space-m);
  }

  .ventures {
    background-size: 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
