/* =============================================================
   TFC — The Frausto Connection
   Brand Stylesheet · v1.0 · April 2026
   Single source of truth. Every TFC doc imports this.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Allura&display=swap');

:root {
  /* — Brand colors — */
  --tfc-teal:        #0097B2;   /* primary, sampled from logo */
  --tfc-teal-deep:   #006B80;   /* hover, focused text */
  --tfc-teal-dark:   #004D5C;   /* deepest, headings on light */
  --tfc-teal-soft:   #E6F7FA;   /* tint backgrounds */
  --tfc-teal-mist:   #F5FCFD;   /* whisper backgrounds */

  --tfc-ink:         #0A0A0A;   /* logo black */
  --tfc-charcoal:    #1A1A1A;   /* primary text */
  --tfc-graphite:    #4A5568;   /* secondary text */
  --tfc-fog:         #718096;   /* tertiary text */
  --tfc-mist:        #CBD5E0;   /* dividers */
  --tfc-cloud:       #E2E8F0;   /* card borders */
  --tfc-snow:        #F7FAFC;   /* off-white surfaces */
  --tfc-paper:       #FFFFFF;   /* canvas */

  /* — Status accents (used sparingly) — */
  --tfc-success:     #2F9E44;
  --tfc-warning:     #F59F00;
  --tfc-danger:      #E03131;

  /* — Type — */
  --tfc-font-display: 'Montserrat', 'Helvetica Neue', sans-serif;
  --tfc-font-heading: 'Montserrat', 'Helvetica Neue', sans-serif;
  --tfc-font-body:    'Inter', 'Helvetica Neue', sans-serif;
  --tfc-font-script:  'Allura', cursive;        /* logo-mood accents only */
  --tfc-font-mono:    'JetBrains Mono', 'Menlo', monospace;

  /* — Geometry — */
  --tfc-radius-sm: 6px;
  --tfc-radius:    10px;
  --tfc-radius-lg: 16px;
  --tfc-radius-pill: 999px;

  --tfc-shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 1px 3px rgba(10,10,10,.06);
  --tfc-shadow:    0 4px 6px rgba(10,10,10,.04), 0 10px 15px rgba(10,10,10,.06);
  --tfc-shadow-lg: 0 20px 25px rgba(10,10,10,.08), 0 10px 10px rgba(10,10,10,.04);

  --tfc-page-max: 1100px;
  --tfc-content-max: 760px;

  /* — Spacing scale — */
  --tfc-space-1: 4px;
  --tfc-space-2: 8px;
  --tfc-space-3: 12px;
  --tfc-space-4: 16px;
  --tfc-space-5: 24px;
  --tfc-space-6: 32px;
  --tfc-space-7: 48px;
  --tfc-space-8: 64px;
  --tfc-space-9: 96px;
}

/* =============================================================
   BASE
   ============================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--tfc-paper);
  color: var(--tfc-charcoal);
  font-family: var(--tfc-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--tfc-charcoal);
  margin: 0 0 var(--tfc-space-4);
  line-height: 1.2;
}

h1 { font-family: var(--tfc-font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-family: var(--tfc-font-heading); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-family: var(--tfc-font-heading); font-size: 1.5rem;   font-weight: 700; letter-spacing: -0.01em; }
h4 { font-family: var(--tfc-font-heading); font-size: 1.25rem;  font-weight: 600; }
h5 { font-family: var(--tfc-font-heading); font-size: 1.0625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tfc-graphite); }
h6 { font-family: var(--tfc-font-heading); font-size: 0.875rem;  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tfc-fog); }

p { margin: 0 0 var(--tfc-space-4); }
strong { font-weight: 600; color: var(--tfc-ink); }
em { font-style: italic; }

a {
  color: var(--tfc-teal-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--tfc-teal-dark); border-bottom-color: var(--tfc-teal); }

hr {
  border: 0;
  height: 1px;
  background: var(--tfc-cloud);
  margin: var(--tfc-space-6) 0;
}

code, pre {
  font-family: var(--tfc-font-mono);
  font-size: 0.875em;
}
code {
  background: var(--tfc-teal-mist);
  color: var(--tfc-teal-dark);
  padding: 2px 6px;
  border-radius: var(--tfc-radius-sm);
}

/* =============================================================
   LAYOUT — page chrome
   ============================================================= */

.tfc-page {
  max-width: var(--tfc-page-max);
  margin: 0 auto;
  padding: var(--tfc-space-7) var(--tfc-space-5);
}

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

/* — Header / branding — */

.tfc-header {
  display: flex;
  align-items: center;
  gap: var(--tfc-space-4);
  padding-bottom: var(--tfc-space-5);
  margin-bottom: var(--tfc-space-7);
  border-bottom: 1px solid var(--tfc-cloud);
}

.tfc-header__logo {
  height: 56px;
  width: 56px;
  flex-shrink: 0;
}

.tfc-header__title {
  font-family: var(--tfc-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--tfc-charcoal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.tfc-header__sub {
  font-family: var(--tfc-font-body);
  color: var(--tfc-graphite);
  font-size: 0.9375rem;
  font-weight: 400;
  margin: 4px 0 0;
  text-transform: none;
  letter-spacing: 0;
}

.tfc-header__spacer { flex: 1; }

.tfc-header__meta {
  font-size: 0.8125rem;
  color: var(--tfc-fog);
  text-align: right;
}

/* — Footer — */

.tfc-footer {
  margin-top: var(--tfc-space-9);
  padding-top: var(--tfc-space-5);
  border-top: 1px solid var(--tfc-cloud);
  display: flex;
  align-items: center;
  gap: var(--tfc-space-4);
  font-size: 0.8125rem;
  color: var(--tfc-fog);
}

.tfc-footer__logo {
  height: 28px;
  width: 28px;
  opacity: 0.6;
}

/* =============================================================
   COMPONENTS
   ============================================================= */

/* — Buttons — */
.tfc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tfc-space-2);
  font-family: var(--tfc-font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 18px;
  border-radius: var(--tfc-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
  letter-spacing: 0.01em;
}

.tfc-btn--primary {
  background: var(--tfc-teal);
  color: var(--tfc-paper);
}
.tfc-btn--primary:hover {
  background: var(--tfc-teal-deep);
  border-bottom-color: transparent;
}

.tfc-btn--secondary {
  background: var(--tfc-paper);
  color: var(--tfc-teal-deep);
  border-color: var(--tfc-teal);
}
.tfc-btn--secondary:hover {
  background: var(--tfc-teal-mist);
  border-bottom-color: var(--tfc-teal);
}

.tfc-btn--ghost {
  background: transparent;
  color: var(--tfc-graphite);
  border-color: var(--tfc-cloud);
}
.tfc-btn--ghost:hover {
  background: var(--tfc-snow);
  color: var(--tfc-charcoal);
}

/* — Cards — */
.tfc-card {
  background: var(--tfc-paper);
  border: 1px solid var(--tfc-cloud);
  border-radius: var(--tfc-radius);
  padding: var(--tfc-space-5);
  box-shadow: var(--tfc-shadow-sm);
}

.tfc-card--accent {
  border-top: 3px solid var(--tfc-teal);
}

.tfc-card--soft {
  background: var(--tfc-teal-mist);
  border-color: var(--tfc-teal-soft);
}

/* — Badges / tags — */
.tfc-badge {
  display: inline-block;
  font-family: var(--tfc-font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--tfc-radius-pill);
  background: var(--tfc-teal-soft);
  color: var(--tfc-teal-dark);
}

.tfc-badge--ink    { background: var(--tfc-ink);     color: var(--tfc-paper); }
.tfc-badge--teal   { background: var(--tfc-teal);    color: var(--tfc-paper); }
.tfc-badge--cloud  { background: var(--tfc-cloud);   color: var(--tfc-graphite); }
.tfc-badge--success{ background: #DCFCE7; color: #166534; }
.tfc-badge--warn   { background: #FEF3C7; color: #854D0E; }
.tfc-badge--danger { background: #FEE2E2; color: #991B1B; }

/* — Callouts — */
.tfc-callout {
  border-left: 3px solid var(--tfc-teal);
  background: var(--tfc-teal-mist);
  padding: var(--tfc-space-4) var(--tfc-space-5);
  border-radius: 0 var(--tfc-radius) var(--tfc-radius) 0;
  margin: var(--tfc-space-5) 0;
}

.tfc-callout__label {
  font-family: var(--tfc-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tfc-teal-dark);
  margin-bottom: var(--tfc-space-2);
}

/* — Tables — */
.tfc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.tfc-table th, .tfc-table td {
  text-align: left;
  padding: var(--tfc-space-3) var(--tfc-space-4);
  border-bottom: 1px solid var(--tfc-cloud);
}
.tfc-table th {
  font-family: var(--tfc-font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tfc-graphite);
  background: var(--tfc-snow);
}
.tfc-table tbody tr:hover { background: var(--tfc-teal-mist); }

/* — Lists — */
ul, ol {
  padding-left: 1.4em;
  margin: 0 0 var(--tfc-space-4);
}
li { margin-bottom: var(--tfc-space-2); }

ul.tfc-list--check { list-style: none; padding-left: 0; }
ul.tfc-list--check li {
  position: relative;
  padding-left: 1.6em;
}
ul.tfc-list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tfc-teal);
  font-weight: 700;
}

/* — Stat strip — */
.tfc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--tfc-space-4);
  margin: var(--tfc-space-5) 0;
}
.tfc-stat {
  background: var(--tfc-paper);
  border: 1px solid var(--tfc-cloud);
  border-radius: var(--tfc-radius);
  padding: var(--tfc-space-4) var(--tfc-space-5);
  border-top: 3px solid var(--tfc-teal);
}
.tfc-stat__label {
  font-family: var(--tfc-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tfc-graphite);
  margin-bottom: var(--tfc-space-2);
}
.tfc-stat__value {
  font-family: var(--tfc-font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--tfc-teal-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tfc-stat__sub {
  font-size: 0.8125rem;
  color: var(--tfc-fog);
  margin-top: var(--tfc-space-2);
}

/* — Divider with script flourish — */
.tfc-flourish {
  text-align: center;
  margin: var(--tfc-space-7) 0;
  font-family: var(--tfc-font-script);
  font-size: 2.25rem;
  color: var(--tfc-teal);
  line-height: 1;
}

/* — Pull quote — */
.tfc-quote {
  font-family: var(--tfc-font-script);
  font-size: 1.75rem;
  color: var(--tfc-teal-dark);
  text-align: center;
  margin: var(--tfc-space-7) auto;
  max-width: 640px;
  line-height: 1.4;
}

/* — Section header — */
.tfc-section-head {
  font-family: var(--tfc-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tfc-teal);
  margin: var(--tfc-space-7) 0 var(--tfc-space-3);
  padding-bottom: var(--tfc-space-2);
  border-bottom: 1px solid var(--tfc-teal-soft);
}

/* — Print — */
@media print {
  body { font-size: 11pt; }
  .tfc-header { page-break-after: avoid; }
  .tfc-card, .tfc-stat, .tfc-callout { page-break-inside: avoid; }
  a { color: var(--tfc-teal-dark); border-bottom: none; }
}
