/* ========================================
   DESIGN TOKENS
   Global CSS Variables
======================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@400;500;600&family=Crimson+Pro:wght@400;500;600&display=swap");

:root {
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, serif;

  --dark: #10182b;
  --dark-2: #070d1a;

  --text: #263247;
  --muted: #667085;
  --soft-text: #8a94a6;

  --white: #ffffff;

  --background: #ffffff;
  --background-soft: #f8fafc;
  --background-muted: #eef6f8;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --blue-soft: #d4e6ef;
  --blue: #5f8ea3;
  --blue-dark: #244b5f;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  --container: 1160px;
  --transition: 0.25s ease;
}

/* ========================================
   BASE RESET
   Browser Defaults Normalization
======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style-position: inside;
}

/* ========================================
   TEXT SELECTION
   Highlight Styling
======================================== */

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

/* ========================================
   CUSTOM SCROLLBAR
   WebKit Scrollbar Styling
======================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

/* ========================================
   LAYOUT FOUNDATION
   Containers & Section Spacing
======================================== */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section-light {
  background:
    radial-gradient(circle at top left, rgba(212, 230, 239, 0.32), transparent 34%),
    var(--background-soft);
}

/* ========================================
   TYPOGRAPHY SYSTEM
   Headings, Paragraphs & Section Headers
======================================== */

h1,
h2,
h3,
h4 {
  color: var(--dark);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 640px;
  font-size: clamp(3.2rem, 4.9vw, 5.2rem);
}

h2 {
  font-size: clamp(2.35rem, 3.4vw, 3.8rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  color: var(--text);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 66px;
  text-align: center;
}

.section-heading .tag {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

/* ========================================
   REVEAL ANIMATIONS
   Scroll-Based Entrance States
======================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

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