/* GrindCircle base styles — reset + typography + fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

@import url('./tokens.css');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--gc-text-primary);
  background: var(--gc-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Headings — Playfair Display, dramatic Apple-style hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--gc-espresso);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); font-weight: var(--fw-semibold); }

/* Hero H1 (only on landing/hero contexts) */
.hero h1 { font-size: var(--text-5xl); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  .hero h1 { font-size: var(--text-3xl); }
}

p {
  margin-bottom: var(--sp-4);
  max-width: 70ch;
}

a {
  color: var(--gc-link);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--gc-link-hover); text-decoration: underline; }
a:visited { color: var(--gc-link-visited); }

ul, ol { margin: 0 0 var(--sp-4) var(--sp-5); }
li { margin-bottom: var(--sp-2); }

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

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  background: var(--gc-cream-mid);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--gc-divider);
  margin: var(--sp-6) 0;
}

/* Layout containers */
.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* Visually hidden (a11y) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
