/* Personal business card — mobile-first, dark theme */

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --bg-elevated: #161a22;
  --border: #2a3140;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #6ee7ff;
  --accent-dim: rgba(110, 231, 255, 0.15);
  --warn-bg: rgba(250, 204, 21, 0.12);
  --warn-border: rgba(250, 204, 21, 0.35);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(110, 231, 255, 0.08), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(167, 139, 250, 0.06), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.hero__location {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__photo-wrap {
  justify-self: center;
}

.hero__photo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.photo-placeholder {
  width: min(280px, 70vw);
  min-height: 160px;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(110, 231, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: rgba(110, 231, 255, 0.22);
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.notice--warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: #fde68a;
}

.notice ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.section {
  margin-bottom: 2.75rem;
}

.section__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1rem;
  color: #d5dae3;
}

.prose p:last-child {
  margin-bottom: 0;
}

.contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contacts__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contacts__icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contacts__body {
  min-width: 0;
}

.contacts__link {
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid transparent;
}

.contacts__link:hover {
  border-bottom-color: rgba(110, 231, 255, 0.45);
  color: var(--accent);
}

.contacts__text {
  color: var(--muted);
}

.skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.skills__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.skills__pct {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.skills__bar {
  height: 8px;
  border-radius: 999px;
  background: #222733;
  overflow: hidden;
}

.skills__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ee7ff, #a78bfa);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 6px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

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

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

.timeline__period {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.timeline__role {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-weight: 500;
}

.timeline__desc {
  margin: 0.5rem 0 0;
  color: #cfd6e0;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}
