/* === DESIGN TOKENS === */
:root {
  --color-bg: #FAF8F5;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6560;
  --color-accent-warm: #8B7355;
  --color-border: #E0DBD4;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-heading-hy: 'Noto Serif Armenian', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body-hy: 'Noto Sans Armenian', system-ui, sans-serif;

  --size-name: clamp(2.25rem, 7vw, 3.5rem);
  --size-body: clamp(1rem, 1.1vw, 1.0625rem);
  --size-small: 0.875rem;
  --size-caption: 0.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--size-small);
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* === I18N === */
.i18n, .i18n-block { display: none; }
html[lang="en"] .i18n[data-lang="en"],
html[lang="ru"] .i18n[data-lang="ru"],
html[lang="hy"] .i18n[data-lang="hy"] { display: inline; }
html[lang="en"] .i18n-block[data-lang="en"],
html[lang="ru"] .i18n-block[data-lang="ru"],
html[lang="hy"] .i18n-block[data-lang="hy"] { display: block; }

/* === HEADER (lang switcher) === */
.header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 12px;
  pointer-events: none;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  pointer-events: auto;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--duration-fast), color var(--duration-fast);
  min-width: 36px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover { background: rgba(0,0,0,0.05); }
.lang-btn.active { background: var(--color-text); color: var(--color-bg); }
.lang-btn:focus-visible { outline: 2px solid var(--color-accent-warm); outline-offset: 2px; }

/* === PAGE LAYOUT — single centered column === */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

/* === AVATAR === */
.hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--color-border);
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === NAME === */
.hero__name {
  font-family: var(--font-heading);
  font-size: var(--size-name);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

/* === ROLE === */
.hero__role {
  font-size: var(--size-small);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* === BIO === */
.bio {
  font-size: var(--size-body);
  line-height: 1.65;
  margin-bottom: 20px;
  text-align: center;
}

/* === CLIENTS === */
.clients {
  font-size: var(--size-small);
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* === WORK LINKS === */
.work-links {
  font-size: var(--size-body);
  margin-bottom: 32px;
}

.work-links a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-text-muted);
  transition: text-decoration-color var(--duration-fast);
}

.work-links a:hover {
  text-decoration-color: var(--color-text);
}

.work-links a:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === DIVIDER === */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 auto 24px;
  max-width: 80px;
}

/* === CONTACT === */
.contact {
  margin-bottom: 32px;
}

.contact__email {
  display: block;
  font-size: var(--size-small);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color var(--duration-fast);
}

.contact__email:hover {
  color: var(--color-accent-warm);
}

.contact__email:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 4px;
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
  text-decoration: none;
}

.social-link:hover { color: var(--color-text); }

.social-link:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
  border-radius: 4px;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* === FOOTER TEXT === */
.footer-text {
  font-size: var(--size-caption);
  color: var(--color-text-muted);
}

/* === ARMENIAN OVERRIDES === */
html[lang="hy"] .hero__name {
  font-family: var(--font-heading-hy);
  margin-bottom: 10px; /* more space for descenders */
}

html[lang="hy"] body,
html[lang="hy"] .bio,
html[lang="hy"] .clients,
html[lang="hy"] .work-links,
html[lang="hy"] .contact__email {
  font-family: var(--font-body-hy);
}

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

/* === PRINT === */
@media print {
  .header { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
