/* ============================================
   Design System — Lovable-Inspired (Dark Warm)
   Inverted from cream to deep coffee/leather
   ============================================ */

:root {
  /* Core palette — warm dark mode */
  --bg: #1a1410;                                 /* deep coffee-leather */
  --surface: #251f1a;                            /* slight elevation */
  --fg: #f7f0e3;                                 /* warm cream */
  --fg-strong: #fdf8ec;                          /* near-white cream */
  --fg-muted: #9c958a;                           /* warm grey */
  --fg-subtle: rgba(247, 240, 227, 0.78);

  /* Borders — cream at low opacity */
  --border: rgba(247, 240, 227, 0.08);
  --border-strong: rgba(247, 240, 227, 0.28);

  /* Interactive surfaces */
  --hover-tint: rgba(247, 240, 227, 0.04);

  /* Shadows — inset on light CTA, soft focus */
  --btn-inset: rgba(255, 255, 255, 0.35) 0px 0.5px 0px 0px inset,
               rgba(0, 0, 0, 0.18) 0px 0px 0px 0.5px inset,
               rgba(0, 0, 0, 0.25) 0px 1px 3px 0px;
  --focus-shadow: rgba(247, 240, 227, 0.12) 0px 4px 14px;

  --ring: rgba(247, 240, 227, 0.45);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn:active { opacity: 0.85; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-shadow); }

/* Primary CTA — cream on dark */
.btn-dark {
  background: var(--fg);
  color: var(--bg);
  box-shadow: var(--btn-inset);
}
.btn-dark:hover { background: var(--fg-strong); }

/* Ghost — outlined cream */
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--hover-tint); }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--fg);
}

/* ============================================
   Profile (Main)
   ============================================ */

.profile {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 80px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.profile-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% center;
}

.profile-content {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--fg-strong);
  margin-bottom: 16px;
}

.profile-role {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.profile-bio {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg-subtle);
  margin-bottom: 36px;
  max-width: 540px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 10px 0;
}

.meta-row dt {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
  padding-top: 1px;
}

.meta-row dd {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-link {
  color: var(--fg-muted);
  transition: color 0.15s ease;
}
.footer-link:hover { color: var(--fg); }

/* ============================================
   Responsive — center content on tablet/mobile
   ============================================ */

@media (max-width: 900px) {
  .profile {
    padding: 40px 0 64px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .profile-photo {
    aspect-ratio: 4 / 5;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .profile-content {
    align-items: center;
  }

  .profile-name {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .profile-role {
    font-size: 16.5px;
    letter-spacing: -0.3px;
  }

  .profile-bio {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-meta {
    width: 100%;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .meta-row dt {
    padding-top: 0;
  }

  .profile-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }

  .profile { padding: 32px 0 56px; }

  .profile-photo { max-width: 320px; }

  .profile-name {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .profile-role { font-size: 18.5px; letter-spacing: -0.3px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================
   Focus & Accessibility
   ============================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-shadow);
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}
