:root {
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-muted: #6b7280;
  --color-text: #1f2937;
  --color-accent: #2b6ea6;
  --color-accent-dark: #20557f;
  --color-border: #e5e7eb;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #f8fafc;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 2.4rem 1.8rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar__profile {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.sidebar__profile h1 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar__profile p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.sidebar__subtitle {
  font-size: 0.85rem;
}

.sidebar__toggle {
  display: none;
}

.sidebar__nav {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.sidebar__nav a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.sidebar__nav a:hover {
  color: #ffffff;
}

.sidebar__links {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.sidebar__links a {
  color: rgba(255, 255, 255, 0.9);
}

.content {
  margin-left: 260px;
  padding: 2.5rem 3.5rem 4rem;
  width: calc(100% - 260px);
}

.section {
  margin-bottom: 2.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.intro__name {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 700;
}

.intro__role {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.intro__meta {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dark);
  color: #ffffff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn--ghost {
  background: #ffffff;
  color: var(--color-accent-dark);
  border: 1px solid var(--color-border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
}

.list article {
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-border);
}

.list article:first-child {
  border-top: none;
}

.item__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.item__header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.item__header p {
  margin: 0.3rem 0 0.6rem;
  color: var(--color-muted);
}

.item__header span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.list ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--color-text);
  display: grid;
  gap: 0.4rem;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: transform 0.15s ease, background 0.15s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  transform: translateY(-2px);
  background: #e5e7eb;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.skills {
  display: grid;
  gap: 1rem;
}

.skills h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.skills p {
  margin: 0;
  color: var(--color-muted);
}

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

@media (max-width: 1024px) {
  .content {
    padding: 2.5rem 2rem 4rem;
  }
}

@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 1.8rem;
  }

  .sidebar__toggle {
    display: inline-flex;
    margin: 1rem auto 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
  }

  .sidebar__nav {
    display: none;
  }

  .sidebar__nav.is-open {
    display: grid;
  }

  .content {
    margin-left: 0;
    width: 100%;
  }
}
