/* FelloWorks base styles
   Reset, typography defaults, type scale, and animations. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,200..800&family=Manrope:wght@200..800&display=swap');
@import './tokens.css';

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
}

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

a:hover {
  text-decoration: underline;
}

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

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* -----------------------------------------------------------------------
   Type scale
   ----------------------------------------------------------------------- */

.text-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-display em {
  font-style: italic;
  font-weight: 200;
}

.text-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
}

.text-headline em {
  font-style: italic;
  font-weight: 300;
}

.text-headline-md {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

.text-quote {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-primary);
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* -----------------------------------------------------------------------
   Animations
   ----------------------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

.reveal {
  opacity: 0;
}

.reveal.visible {
  animation: fadeUp 0.7s ease forwards;
}

/* -----------------------------------------------------------------------
   Divider utilities
   ----------------------------------------------------------------------- */

.rule-top    { border-top:    1px solid var(--rule-solid); }
.rule-bottom { border-bottom: 1px solid var(--rule-solid); }
.rule-left   { border-left:   1px solid var(--rule-solid); }

/* -----------------------------------------------------------------------
   Utility classes
   ----------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted   { color: var(--text-secondary); opacity: 0.6; }
.text-accent  { color: var(--accent); }
.text-on-dark { color: var(--text-on-dark); }

/* Legacy aliases */
.text-amber   { color: var(--accent); }
.serif-italic { font-family: var(--font-display); font-style: italic; color: var(--accent); }
