/* ============================================
   THE KRISTEN SAM — Brand Design System
   Version 1.0 — February 2026

   Vibe: Quietly Sharp
   Primary: Light Sea Green #20B2AA
   Dark: Deep Navy #1E2D3A
   Accent: Soft Coral #ED6A5E
   ============================================ */

/* === Custom Properties === */
:root {
  /* --- Brand Colors --- */
  --tks-primary: #20B2AA;
  --tks-primary-light: #3CC5BD;
  --tks-primary-soft: rgba(32, 178, 170, 0.10);
  --tks-primary-hover: #1A9A93;
  --tks-primary-deep: #157F79;

  --tks-dark: #1E2D3A;
  --tks-dark-deep: #141F28;

  --tks-accent: #ED6A5E;
  --tks-accent-light: #F28A80;
  --tks-accent-soft: rgba(237, 106, 94, 0.10);
  --tks-accent-hover: #E05347;

  --tks-warm: #D4A574;
  --tks-warm-soft: rgba(212, 165, 116, 0.12);

  /* --- Backgrounds --- */
  --tks-bg: #FAF8F5;
  --tks-bg-alt: #F3EFE9;
  --tks-bg-card: #FFFFFF;

  /* --- Text --- */
  --tks-text-primary: #1E2D3A;
  --tks-text-body: #3A4A58;
  --tks-text-light: #6B7C8A;
  --tks-text-faint: #9EAAB5;

  /* --- Borders --- */
  --tks-border: rgba(30, 45, 58, 0.08);
  --tks-border-strong: rgba(30, 45, 58, 0.15);

  /* --- Typography --- */
  --tks-font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --tks-font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --tks-font-accent: 'Cormorant Garamond', Georgia, serif;

  /* --- Type Scale (fluid) --- */
  --tks-h1: clamp(2.2rem, 5vw, 3.2rem);
  --tks-h2: clamp(1.6rem, 3.5vw, 2.4rem);
  --tks-h3: clamp(1.1rem, 2.5vw, 1.5rem);
  --tks-h4: clamp(1rem, 2vw, 1.15rem);
  --tks-body: 1.05rem;
  --tks-small: 0.85rem;
  --tks-eyebrow: 0.72rem;

  /* --- Spacing (8px base) --- */
  --tks-space-xs: 4px;
  --tks-space-sm: 8px;
  --tks-space-md: 16px;
  --tks-space-lg: 24px;
  --tks-space-xl: 32px;
  --tks-space-2xl: 48px;
  --tks-space-3xl: 64px;
  --tks-space-4xl: 80px;

  /* --- Layout --- */
  --tks-container: 1100px;
  --tks-content: 680px;
  --tks-nav-height: 72px;

  /* --- Radius --- */
  --tks-radius: 8px;
  --tks-radius-lg: 12px;
  --tks-radius-xl: 16px;
  --tks-radius-pill: 999px;

  /* --- Shadows --- */
  --tks-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --tks-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --tks-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --tks-shadow-primary: 0 4px 16px rgba(32, 178, 170, 0.3);

  /* --- Transitions --- */
  --tks-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tks-duration: 0.3s;
  --tks-duration-slow: 0.9s;
}


/* === Base Styles === */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tks-font-body);
  font-size: var(--tks-body);
  line-height: 1.7;
  color: var(--tks-text-body);
  background-color: var(--tks-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--tks-primary-soft);
  color: var(--tks-dark);
}


/* === Typography === */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tks-font-heading);
  color: var(--tks-text-primary);
  line-height: 1.2;
}

h1 {
  font-size: var(--tks-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-size: var(--tks-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

h3 {
  font-size: var(--tks-h3);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: var(--tks-h4);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin-bottom: 1.5em;
}

a {
  color: var(--tks-primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--tks-duration) ease;
}

a:hover {
  color: var(--tks-primary);
}

small {
  font-size: var(--tks-small);
  color: var(--tks-text-light);
}

blockquote {
  font-family: var(--tks-font-accent);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--tks-text-light);
  line-height: 1.5;
  border-left: 3px solid var(--tks-primary);
  padding-left: var(--tks-space-lg);
  margin: var(--tks-space-xl) 0;
}


/* === Utility Classes === */

.tks-eyebrow {
  font-family: var(--tks-font-body);
  font-size: var(--tks-eyebrow);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tks-primary);
}

.tks-accent-text {
  font-family: var(--tks-font-accent);
  font-style: italic;
}

.tks-container {
  max-width: var(--tks-container);
  margin: 0 auto;
  padding: 0 var(--tks-space-xl);
}

.tks-content {
  max-width: var(--tks-content);
  margin: 0 auto;
}

.tks-section {
  padding: var(--tks-space-4xl) 0;
}

.tks-section--alt {
  background: var(--tks-bg-alt);
}

.tks-section--dark {
  background: var(--tks-dark);
  color: var(--tks-bg);
}

.tks-section--dark h1,
.tks-section--dark h2,
.tks-section--dark h3 {
  color: var(--tks-bg);
}

.tks-section--dark p {
  color: rgba(250, 248, 245, 0.7);
}

.tks-section--dark .tks-eyebrow {
  color: var(--tks-primary-light);
}


/* === Buttons === */

.tks-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--tks-radius);
  font-family: var(--tks-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  line-height: 1;
}

.tks-btn--primary {
  background: var(--tks-primary);
  color: #fff;
}
.tks-btn--primary:hover {
  background: var(--tks-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--tks-shadow-primary);
  text-decoration: none;
}

.tks-btn--secondary {
  background: transparent;
  color: var(--tks-primary);
  border: 1.5px solid var(--tks-primary);
}
.tks-btn--secondary:hover {
  background: var(--tks-primary-soft);
  color: var(--tks-primary);
  text-decoration: none;
}

.tks-btn--accent {
  background: var(--tks-accent);
  color: #fff;
}
.tks-btn--accent:hover {
  background: var(--tks-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.tks-btn--dark {
  background: var(--tks-dark);
  color: var(--tks-bg);
}
.tks-btn--dark:hover {
  background: var(--tks-dark-deep);
  color: var(--tks-bg);
  transform: translateY(-2px);
  text-decoration: none;
}

.tks-btn--white {
  background: transparent;
  color: var(--tks-bg);
  border: 1.5px solid var(--tks-bg);
}
.tks-btn--white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tks-bg);
  text-decoration: none;
}


/* === Cards === */

.tks-card {
  background: var(--tks-bg-card);
  border: 1px solid var(--tks-border);
  border-radius: var(--tks-radius-lg);
  padding: var(--tks-space-xl);
  transition: transform var(--tks-duration) var(--tks-ease),
              box-shadow var(--tks-duration) var(--tks-ease);
}

.tks-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tks-shadow-lg);
}

.tks-card--flat {
  border: 1px solid var(--tks-border);
}
.tks-card--flat:hover {
  transform: none;
  box-shadow: none;
}


/* === Tags === */

.tks-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--tks-radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.tks-tag--primary {
  background: var(--tks-primary-soft);
  color: var(--tks-primary-deep);
}

.tks-tag--accent {
  background: var(--tks-accent-soft);
  color: var(--tks-accent);
}

.tks-tag--warm {
  background: var(--tks-warm-soft);
  color: #8B6D4A;
}


/* === Scroll Reveal Animation === */

.tks-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--tks-duration-slow) var(--tks-ease),
              transform var(--tks-duration-slow) var(--tks-ease);
}

.tks-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* === Blog / Newsletter Specific === */

.tks-blog-content {
  max-width: var(--tks-content);
  margin: 0 auto;
}

.tks-blog-content p {
  font-size: var(--tks-body);
  line-height: 1.8;
  color: var(--tks-text-body);
}

.tks-blog-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.tks-blog-content h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.tks-blog-content blockquote {
  margin: 2em 0;
}

.tks-blog-content img {
  border-radius: var(--tks-radius);
  margin: 2em 0;
  max-width: 100%;
  height: auto;
}

/* Drop cap for first paragraph */
.tks-drop-cap::first-letter {
  font-family: var(--tks-font-accent);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--tks-primary);
  font-weight: 600;
}


/* === Responsive === */

@media (max-width: 768px) {
  :root {
    --tks-space-4xl: 48px;
    --tks-space-3xl: 40px;
    --tks-nav-height: 64px;
  }

  .tks-container {
    padding: 0 20px;
  }

  .tks-btn {
    padding: 12px 24px;
  }

  .tks-card {
    padding: var(--tks-space-lg);
  }
}
