/*--------------------------------------------------------------
# TRU Funding Base
  - Variables
  - Base elements
  - Typography
  - Forms
--------------------------------------------------------------*/

:root {
  /* Brand colors */
  --tf-primary: #38bdf8;
  --tf-secondary: #8b5cf6;
  --tf-text: #0e2938;
  --tf-text-muted: #5b5b5b;
  --tf-link: #8b5cf6;
  --tf-border: #0e2938;

  /* Gradient */
  --tf-grad: linear-gradient(162deg, #38bdf8 31.72%, #8b5cf6 80.47%);

  /* Typography */
  --tf-font-heading: "Sora", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --tf-font-body: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Base sizes */
  --tf-font-base: 16px;
  --tf-line-base: 1.4;

  /* Layout */
  --tf-container-max: 1440px;
}

/* Base elements */

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--tf-text);
  font-family: var(--tf-font-body);
  font-size: var(--tf-font-base);
  line-height: var(--tf-line-base);
}

/* Links */

a {
  color: var(--tf-link);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, transform 0.15s ease;
}

a:hover,
a:focus-visible {
  color: #6d28d9;
}

a:focus-visible {
  outline: 2px solid #6d28d9;
  outline-offset: 2px;
}

/* Paragraphs */

p {
  margin: 0 0 1rem;
  color: var(--tf-text-muted);
  font-family: var(--tf-font-body);
  font-size: 1rem;
  line-height: 1.4;
}

p:last-child {
	margin: 0;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75em;
  font-family: var(--tf-font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: #000000;
}

/* Gradient title utility */
.tf-heading-gradient {
  background: var(--tf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mobile-first heading sizes (<= 768px) */
h1 {
  font-size: 2.25rem;
} /* ~36px */
h2 {
  font-size: 1.75rem;
} /* ~28px */
h3 {
  font-size: 1.5rem;
} /* 24px */
h4 {
  font-size: 1.25rem;
} /* 20px */

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  } /* ~44px */
  h2 {
    font-size: 2rem;
  } /* 32px */
}

/* Laptop ≥ 1024px */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  } /* 48px */
  h2 {
    font-size: 2.25rem;
  } /* 36px */
}

/* Desktop ≥ 1680px */
@media (min-width: 1680px) {
  h1 {
    font-size: 4rem;
  } /* 64px */
}

/* Lists */

ul,
ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/* Images and media */

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

embed,
iframe,
object {
  max-width: 100%;
}

/* Tables */

table {
  border-collapse: collapse;
  width: 100%;
}

/* Forms – neutral base */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border-radius: 0;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Inputs */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  color: #111;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--tf-font-body);
  font-size: 1rem;
  line-height: 1.4;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--tf-secondary);
  box-shadow: 0 0 0 1px var(--tf-secondary);
}

textarea {
  width: 100%;
}