:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --primary: #18181b;
  --primary-hover: #3f3f46;
  --accent: #a1a1aa;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 200ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #18181b;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #fafafa;
  --primary-hover: #d4d4d8;
  --accent: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all var(--transition);
}

.lang-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.theme-text {
  display: none;
}

/* Hero */
.hero {
  margin-bottom: 80px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

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

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.primary {
  background: var(--text);
  color: var(--bg);
  border: none;
}

.primary:hover {
  background: var(--primary-hover);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.ghost:hover {
  border-color: var(--text);
}

.hero-card {
  display: none;
}

/* Sections */
.section {
  margin-bottom: 80px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-text {
  color: var(--muted);
  line-height: 1.8;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pill-row span {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Grid Cards */
.grid {
  display: grid;
  gap: 16px;
}

.grid-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.grid-card:hover {
  border-color: var(--accent);
}

.grid-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.grid-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 16px;
}

.project-card {
  overflow: hidden;
}

.project-link {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
  height: 100%;
}

.project-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.project-content p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  flex: 1;
}

/* Empty State */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 8px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.copy-toast {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.copy-toast.show {
  opacity: 1;
}

.contact-item {
  position: relative;
}

.contact-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.contact-footer .separator {
  opacity: 0.5;
}

/* Footer */
.site-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .page {
    padding: 20px 16px 48px;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 40px;
    align-items: stretch;
  }

  .header-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    font-size: 0.875rem;
  }

  .nav a {
    text-align: center;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
  }

  .nav a:hover {
    border-color: var(--text);
  }

  .hero {
    margin-bottom: 48px;
  }

  .hero-text h1 {
    font-size: 1.875rem;
    line-height: 1.15;
  }

  .subtitle {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .primary,
  .ghost {
    width: 100%;
    justify-content: center;
  }

  .section {
    margin-bottom: 48px;
  }

  .section-header h2 {
    font-size: 1.375rem;
  }

  .eyebrow {
    font-size: 0.6875rem;
  }

  .pill-row {
    gap: 6px;
  }

  .pill-row span {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .grid {
    gap: 12px;
  }

  .grid-card {
    padding: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-item {
    padding: 16px;
  }

  .contact-footer {
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .contact-footer .separator {
    display: none;
  }

  .empty-state {
    padding: 32px 20px;
  }
}
