:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #181818;
  --border: #262626;
  --text: #ededed;
  --text-dim: #9a9a9a;
  --text-faint: #6b6b6b;
  --accent: #f5b942;
  --accent-glow: rgba(245, 185, 66, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 720px;
  --font-he: "Inter", "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-he);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 1.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 15% 8%, var(--accent-glow), transparent 35%),
    radial-gradient(circle at 85% 92%, rgba(99, 102, 241, 0.08), transparent 40%);
}

main {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 1rem;
}

.mark {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 24px var(--accent-glow));
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--font-en);
}

/* Bio */
.bio p {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 60ch;
}

.bio p + p {
  margin-top: 1rem;
}

.bio-en {
  color: var(--text-dim);
  font-size: 1rem;
  font-family: var(--font-en);
}

/* Link cards */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card:hover::before { opacity: 1; }

.card > * { position: relative; }

.card-icon {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-sub {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-en);
  direction: ltr;
  text-align: start;
}

/* Projects */
.projects h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.projects ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.projects li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.projects li strong {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.projects li span {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Footer */
footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-en);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  body { padding: 1.5rem 1rem; }
  .links { grid-template-columns: 1fr; }
  .bio p { font-size: 1rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
