/* ============================================
   Minoru Tech — Base Styles
   Global typography, body, and utility classes
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Skip to content (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--crimson);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--border-radius);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ── Headings ── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
}

/* ── Paragraphs ── */
p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Links ── */
a {
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--crimson);
}

/* ── Section Titles ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--crimson);
  margin-bottom: var(--sp-4);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--crimson);
  display: inline-block;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.section-description {
  max-width: 640px;
  margin-bottom: var(--sp-12);
  color: var(--text-secondary);
  font-size: var(--fs-lg);
}

/* ── Decorative Red Dot ── */
.red-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

/* ── Selection ── */
::selection {
  background: var(--crimson);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-crimson { color: var(--crimson); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.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;
}
