/* Reset + base element/layout styles. Depends on tokens.css. */

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

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

/* Site-wide watermark — lives here (not per-page) so every page that loads
   base.css picks it up automatically. */
body::after {
  content: 'Developed by Prakash Thangavel';
  position: fixed;
  left: 50%;
  bottom: var(--space-2);
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-3);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3 {
  margin: 0 0 var(--space-4) 0;
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: var(--font-size-display); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }

p {
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
}

a {
  color: var(--color-primary);
}

:focus-visible {
  outline: 4px solid var(--color-focus-ring);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

.container {
  width: min(100%, 1400px);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-5) clamp(1rem, 2vw, 2rem);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .container {
    padding: 1rem 0.875rem;
  }
}

.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
