:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --text: #d6d0c6;
  --muted: #b7b2a4;
  --subtle: #c0b8a6;
  --accent: #8a1c1c;
  --divider: rgba(138, 28, 28, 0.18);
  --focus: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(5, 5, 8, 0.65), rgba(5, 5, 8, 0.72)),
    url("assets/Background.png") center top / contain no-repeat;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.layout {
  display: block;
}

.page {
  max-width: 860px;
  margin: 0;
  padding: 24px 0 80px 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-full {
  width: 100%;
  padding: 36px 48px 0;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
  margin-top: 2px;
}

.identity h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin: 0 0 6px 0;
  font-weight: 600;
  color: var(--text);
}

.role {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.links-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
  align-items: center;
}

.links-row a {
  color: var(--accent);
}

.divider {
  display: none;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-line {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.work-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.projects {
  gap: 22px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-title {
  font-size: 1.05rem;
  color: var(--text);
}

.project-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-link:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.project-line {
  font-size: 0.9rem;
  color: var(--subtle);
}

.project-tags {
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-sep {
  color: var(--muted);
  opacity: 0.7;
}

.tag-logo {
  height: 14px;
  width: 14px;
  object-fit: contain;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(210, 178, 95, 0.28);
  color: var(--accent);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-link:hover {
  border-color: rgba(210, 178, 95, 0.6);
}

.resume-button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(138, 28, 28, 0.6);
  color: var(--text);
  background: rgba(138, 28, 28, 0.22);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.resume-button:hover {
  border-color: rgba(138, 28, 28, 0.85);
  background: rgba(138, 28, 28, 0.32);
}

.icon-github {
  color: #f2f2ee;
}

.icon-linkedin {
  color: #0a66c2;
}

.icon-email {
  color: #cbb26d;
}

.icon-project {
  color: #2dd4bf;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  height: 24px;
  width: auto;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .page {
    padding: 56px 20px 64px;
    gap: 22px;
  }

  .header-full {
    padding: 36px 20px 0;
  }

  .section-title {
    font-size: 0.8rem;
  }

}
