/* =========================

fonts
colors
variables
typography

========================= */

:root {
  /* Fonts */
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;

  /* Colors */
  --text-main: #111;
  --text-light: #666;

  --color-border: #ddd;
  --color-bg: #fff;

  --color-primary: #444444; /* #2f4f4f */
  --color-secondary: #f5f5f5;

  /* Layout */
  --max-width: 1440px;

  /* Footer dark */
  --color-footer-bg: #1a1a1a;
  --color-footer-text: #e5e7eb;
  --color-footer-muted: #9ca3af;
  --color-footer-border: rgba(255,255,255,0.1);

}

/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   BASE
========================= */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* =========================
   TYPOGRAPHY SYSTEM
========================= */

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
}

/* SCALE */

h1 {
  font-size: 2.25rem; /* 36px */
}

h2 {
  font-size: 1.625rem; /* 26px */
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.15rem;
}

strong {
  font-weight: 600;
}

/* =========================
   TEXT
========================= */

/* HERO CONTAINER */
.tos-single-hero {
  max-width: 100ch;
}

/* TEXT CONTAINER */
.tos-text-content {
  max-width: 85ch;
}

.tos-page-text-content {
  max-width: 100ch;
}

p {
  color: var(--text-light);
  margin-top: 0.625rem; /* 10px */
}

/* =========================
   LINK SYSTEM (EDITORIAL)
========================= */

a:hover {
  color: var(--text-primary);
}

/* =========================
   MEDIA
========================= */

img {
  display: block;
  max-width: 100%;
  height: auto;
}

