/* ---------------------------------------------------------------------------
   Resume — clean, modern, responsive styling.
   A single-column reading layout with a comfortable max width and a light/dark
   theme that follows the visitor's OS preference.
--------------------------------------------------------------------------- */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #5b626e;
  --accent: #2563eb;
  --border: #e6e8ec;
  --radius: 12px;
  --maxw: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b22;
    --text: #e6e9ef;
    --muted: #9aa4b2;
    --accent: #60a5fa;
    --border: #262c36;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--surface);
  min-height: 100vh;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* --- Header --- */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.name {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
}

.btn:active {
  transform: translateY(1px);
}

/* --- Contact --- */
.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}

/* --- Sections --- */
.section {
  margin-top: 2.25rem;
}

.section__title {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.summary {
  margin: 0;
  color: var(--text);
}

/* --- Entries (experience, projects, education) --- */
.entry {
  margin-bottom: 1.6rem;
}

.entry:last-child {
  margin-bottom: 0;
}

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

.entry__role {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.entry__date {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entry__org {
  margin: 0.1rem 0 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.entry__points {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: var(--text);
}

.entry__points li {
  margin-bottom: 0.35rem;
}

.entry__points li::marker {
  color: var(--muted);
}

/* --- Skills --- */
.skills {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.skills__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.5rem 1rem;
}

.skills__row dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.skills__row dd {
  margin: 0;
}

/* --- Tag lists (courses, languages) --- */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.tags li {
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
}

/* --- Footer / views --- */
.footer {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.views {
  font-variant-numeric: tabular-nums;
}

/* --- Responsive --- */
@media (max-width: 560px) {
  .skills__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .header__actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
