:root {
  --accent: #1e3a5f;
  --accent-dark: #152a45;
  --text: #1a1a1a;
  --bg: #ffffff;
  --muted: #555;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --sffont: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  --monofont: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Mono", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Consolas", "Courier New", monospace;
}

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

body {
  font-family: var(--sffont);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Header */
.site-header {
  background: var(--accent);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Shield lattice pattern */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath d='M20 4 L32 10 L32 22 C32 32 20 42 20 42 C20 42 8 32 8 22 L8 10 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 48px;
  background-position: 0 0;
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.header-content {
  position: relative;
}

.site-title {
  font-family: var(--monofont);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
}

.site-subtitle {
  font-family: var(--monofont);
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}

.lang-toggle {
  font-family: var(--monofont);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.lang-toggle a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.lang-toggle a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}

.lang-active {
  font-weight: 700;
}

.lang-sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}

/* Main */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  background: var(--bg);
  position: relative;
}

/* Subtle document edge */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

/* Sections */
.resume-section {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  position: relative;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section h2 {
  font-family: var(--monofont);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-section h2::before {
  content: '§';
  font-weight: 400;
  color: var(--accent);
  opacity: 0.6;
}

.resume-section h2::after {
  content: none;
}

.section-content h3 {
  font-family: var(--monofont);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
}

.section-content h3:first-child {
  margin-top: 0;
}

.section-content p {
  margin-bottom: 0.6rem;
}

.section-content strong {
  color: var(--text);
}

.section-content em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.section-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.section-content li {
  margin-bottom: 0.3rem;
}

.section-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.section-content a:hover {
  border-bottom-color: var(--accent);
}

/* Error page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h2 {
  font-family: var(--monofont);
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.error-page a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1rem 1.5rem;
  font-family: var(--monofont);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-label {
  opacity: 0.6;
}

.footer-value {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
  .site-title { font-size: 1.8rem; }
  .site-header { padding: 2rem 1rem 1.8rem; }
  .container { padding: 1.5rem 1rem 2rem; }
  .resume-section { padding: 1rem; }
  .footer-content { gap: 1rem; }
}

