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

html {
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 820px;
  width: 88%;
  padding: 3rem 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--heading);
}

/* Content */
.content {
  font-size: 1rem;
}

.content p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-muted);
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.2s;
}

.content a:hover {
  text-decoration-color: var(--accent);
}

.content h1,
.content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
}

.content h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule, rgba(128,128,128,0.15));
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-switcher a,
.lang-current {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switcher a {
  color: var(--text-muted);
  background: var(--pill-bg, rgba(128,128,128,0.1));
}

.lang-switcher a:hover {
  color: var(--accent);
  background: var(--pill-hover, rgba(128,128,128,0.2));
}

.lang-current {
  color: var(--bg);
  background: var(--accent);
  font-weight: 500;
}

/* RTL support */
[dir="rtl"] .header {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
  flex-direction: row-reverse;
}

/* Focus styles for keyboard navigation */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
