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

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p {
  margin: 0 0 1.25rem;
}

a {
  color: #268bd2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

strong {
  font-weight: 600;
}

/* Layout */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: #202020;
  color: #aaa;
  overflow-y: auto;
}

.sidebar-inner {
  padding: 2rem 1.5rem;
}

/* Sidebar: about */
.sidebar-about h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.sidebar-about h1 a {
  color: inherit;
  text-decoration: none;
}

.sidebar-about h1 a:hover {
  text-decoration: none;
  color: #fff;
}

/* Sidebar: nav */
.sidebar-nav {
  margin: 2rem 0 1.75rem;
}

.sidebar-nav-item {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.sidebar-nav-item:hover {
  color: #fff;
  text-decoration: none;
}

.sidebar-nav-item.active {
  color: #fff;
  font-weight: 600;
}

/* Sidebar: social */
.sidebar-social {
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

.sidebar-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}

.sidebar-social a:hover {
  color: #fff;
  text-decoration: none;
}

.social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Content area */
.content {
  margin-left: 240px;
  min-height: 100vh;
}

.container {
  max-width: 660px;
  padding: 3rem 2rem;
}

/* Pages */
.page-title {
  margin-top: 0;
  font-size: 1.75rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* CV page */
.cv {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #222;
  max-width: 700px;
}

.cv-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.15rem;
  border: none;
}

.cv-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.cv-section {
  margin-bottom: 1.25rem;
}

.cv-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  margin: 1.25rem 0 0.35rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #aaa;
}

.cv-section ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  list-style: none;
}

.cv-section ul li {
  margin-bottom: 0.3rem;
  position: relative;
}

.cv-section ul li::before {
  content: "\2013";
  position: absolute;
  left: -1rem;
}

.cv-role {
  margin-bottom: 0.85rem;
}

.cv-role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.cv-dates {
  white-space: nowrap;
  font-size: 0.9rem;
  color: #555;
}

.cv-role ul {
  margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 680px) {
  .sidebar {
    position: static;
    width: 100%;
    bottom: auto;
  }

  .content {
    margin-left: 0;
  }

  .sidebar-inner {
    padding: 1.5rem 1.25rem;
  }

  .container {
    padding: 1.5rem 1.25rem;
  }
}
