/* ========================================
   Tony Radford Design System — main.css
   ======================================== */

/* --- Tokens --- */
:root {
  /* Fonts */
  --font-display: 'Sora', sans-serif;
  --font-section-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Colors */
  --ink: #1c1a17;
  --ink-soft: #3a362f;
  --paper: #fffcf8;
  --paper-white: #fffdf9;
  --muted: #8a8378;
  --border: #e5ded2;
  --border-strong: #d8cfbf;
  --red: #dc3546;
  --red-hover: #c02536;
  --red-tint: #fdeaec;

  /* Semantic aliases */
  --surface-page: var(--paper);
  --surface-card: var(--paper-white);
  --text-heading: var(--ink);
  --text-muted: var(--muted);
  --link-color: var(--red);
  --link-hover: var(--red-hover);
  --accent-section: var(--red);
  --divider-color: var(--red);

  /* Typography scale */
  --text-h1: 3rem;
  --text-h2: 2.1rem;
  --text-h3: 1.5rem;
  --text-h4: 1.2rem;
  --text-body: 1.125rem;
  --text-body-lg: 1.25rem;
  --text-body-sm: 0.95rem;
  --text-eyebrow: 0.8rem;
  --text-btn: 0.95rem;
  --text-btn-sm: 0.85rem;

  /* Line heights */
  --lh-tight: 1.1;
  --lh-heading: 1.3;
  --lh-body: 1.7;

  /* Tracking */
  --tracking-eyebrow: 0.12em;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 4rem;
  --space-section: 5.5rem;

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  background-color: var(--surface-page);
}

h1, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

h2 {
  font-family: var(--font-section-heading);
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

@media (min-width: 768px) {
  h1 { font-size: var(--text-h1); line-height: var(--lh-tight); }
  h2 { font-size: var(--text-h2); line-height: var(--lh-heading); }
  h3 { font-size: var(--text-h3); line-height: var(--lh-heading); }
  h4 { font-size: var(--text-h4); line-height: var(--lh-heading); }
}

/* --- Section divider --- */
.cv-section {
  padding: var(--space-section) 0 var(--space-xxl);
  border-bottom: 1px solid var(--border);
}

.cv-section:last-child {
  border-bottom: none;
}

/* --- Eyebrow (section titles) --- */
.eyebrow {
  font-family: var(--font-section-heading);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent-section);
}

/* --- Red accent divider --- */
.divider-accent {
  width: 48px;
  border: none;
  border-top: 2px solid var(--accent-section);
  margin: var(--space-lg) 0;
}

/* --- Period / date labels --- */
.period {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

/* --- CV item spacing --- */
.cv-item {
  margin-bottom: var(--space-xl);
}

.cv-item:last-child {
  margin-bottom: 0;
}

/* --- Testimonial block --- */
.testimonial {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.testimonial:last-child {
  border-bottom: none;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.testimonial-attribution {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn-ink {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-btn);
  letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background-color: #000;
  color: var(--paper);
  text-decoration: none;
}

.btn-accent {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-btn);
  letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  background-color: var(--red);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--red-hover);
  color: #fff;
  text-decoration: none;
}

/* --- Hero subtitle --- */
.hero-subtitle {
  font-family: var(--font-section-heading);
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-muted);
}
