/* ============================================================================
   CANOPUS.LK – RESPONSIVE TYPOGRAPHY
   ============================================================================ */

html {
  font-size: clamp(14px, 1.15vw, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

/* WEIGHT HELPERS */
.font-thin       { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light      { font-weight: 300; }
.font-regular    { font-weight: 400; }
.font-medium     { font-weight: 500; }
.font-semibold   { font-weight: 600; }
.font-bold       { font-weight: 700; }
.font-extrabold  { font-weight: 800; }
.font-black      { font-weight: 900; }

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  margin: 0 0 0.75rem 0;
  color: #124f32;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.9rem, 3.9vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.3px;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
}

h6 {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 500;
}

/* BODY TEXT */
p {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  margin-bottom: 1.1rem;
  line-height: 1.75;
  color: #3a3a3a;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 300;
  color: #444;
}

.text-soft    { color: var(--c-text-soft); }
.text-muted   { color: var(--c-muted) !important; }
.text-accent  { color: var(--c-primary); }

/* LISTS */
ul, ol {
  padding-left: 1.3rem;
  margin-bottom: 1.2rem;
}
li {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 0.55rem;
  color: #3f3f3f;
}

/* LINKS */
a {
  color: var(--c-primary);
  transition: 0.2s;
}
a:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

/* BUTTON TEXT */
button,
.btn {
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn-lg {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

/* SPECIAL TYPO CLASSES */
.subheading {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #124f32;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.hero-subtext {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 300;
  color: #f2f2f2;
  line-height: 1.6;
}

/* SMALL DEVICES FINE TUNE */
@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  p  { font-size: 0.98rem; }
  li { font-size: 0.98rem; }
}

@media (min-width: 1600px) {
  html { font-size: 19px; }
}
