/*
 * David Bendes - Personal Site
 * Minimal single-page design
 */

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-text-light: #777;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e5e5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 540px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f0f0f;
    --color-bg-alt: #1a1a1a;
    --color-text: #e5e5e5;
    --color-text-muted: #a3a3a3;
    --color-text-light: #737373;
    --color-accent: #60a5fa;
    --color-accent-hover: #93c5fd;
    --color-border: #262626;
  }
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

/* Profile */
.profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-accent);
}

.profile__name {
  margin-bottom: 0.25rem;
}

.profile__title {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
}

/* Bio */
.bio {
  margin-bottom: 1.75rem;
}

.bio p:first-child {
  font-size: 1.0625rem;
}

.bio p {
  margin-bottom: 1rem;
}

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

/* Links */
.links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  transition: color 150ms ease;
}

.links a:hover {
  color: var(--color-accent);
}

.links a:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--color-border);
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer__text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }

  .profile__photo {
    width: 90px;
    height: 90px;
  }

  .actions {
    justify-content: center;
  }

  .links {
    justify-content: center;
  }
}
