*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-text: #111;
  --color-text-muted: #666;
  --color-bg: #f4f4f4;
  --color-bg-alt: #ddd;
  --color-border: #bbb;
  --color-accent: rgb(6, 172, 89);
  --color-accent-hover: rgb(6, 172, 89);
  --color-error: #e53737;
  --color-success: #33cc99;
}

[data-theme="dark"] {
  --color-text: #e0e0e0;
  --color-text-muted: #999;
  --color-bg: #222;
  --color-bg-alt: #2c2c2c;
  --color-border: #444;
  --color-accent: rgb(113, 9, 182);
  --color-accent-hover: rgb(113, 9, 182);
  --color-error: #e53737;
  --color-success: #33cc99;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;

  display: flex;
  flex-direction: column;

  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;

  display: flex;

  color: var(--color-text);
  background-color: var(--color-bg-alt);
}

.site-header .logo {
  font-family: "NotoSansDisplay", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav ul {
  margin: 0;
  padding: 0;
  gap: 1rem;

  display: flex;
  align-items: center;

  list-style: none;
}

nav li + li {
  padding-left: 1rem;

  border-left: 0.125rem solid var(--color-text-muted);
}

nav a {
  font-weight: 200;
  color: var(--color-text-muted);
  text-decoration: none;

  transition: color 0.2s ease;
  cursor: pointer;
}

nav a:hover {
  color: var(--color-text);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--color-text);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.menu-toggle:hover {
  color: var(--color-text);
}

main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem;
  gap: 2rem;

  display: flex;
  flex-direction: row;
  flex: 1;
}

.profile {
  width: 256px;
  min-width: 256px;
  max-width: 256px;
  padding: 1rem 0;
  gap: 1.5rem;
  align-items: flex-start;

  display: flex;
  flex-direction: column;
  flex: 0 0 256px;
}

.profile > img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
}

.profile .me {
  gap: 0.5rem;

  display: flex;
  flex-direction: column;

  font-size: 1.25rem;
  font-weight: 100;
  color: var(--color-text-muted);
}

.profile .me .name {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: baseline;
}

.profile .me .name h1 {
  line-height: 1;

  font-size: 2.5rem;
  font-family: "NotoSansDisplay", system-ui, sans-serif;
  font-weight: 400;
  color: var(--color-text);
}

.profile .me .subtitle {
  font-weight: 200;
  color: var(--color-accent);
}

.profile .meta {
  margin: 0;
  padding: 0;

  font-size: 0.875rem;
  color: var(--color-text);

  list-style: none;
}

.profile .meta li {
  margin-top: 0.25rem;
  gap: 1rem;
  align-items: center;

  display: flex;
}

.profile .links {
  width: 100%;
  padding-block: 1.5rem;
  border-block: 0.125rem solid var(--color-text-muted);
  gap: 1rem;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.profile .links .button-link {
  margin: auto;
  padding: 0.25rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  gap: 0.125rem;

  display: flex;
  align-items: center;

  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-bg-alt);
  background-color: var(--color-text);
  cursor: pointer;
  text-decoration: none;

  transition: background-color 0.2s ease;
}

.profile .links .button-link:hover {
  color: #e0e0e0;
  background-color: var(--color-accent);
}

.button-link .icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
}

.profile .techs {
  margin: 0.5rem;
  gap: 1rem;

  display: flex;
  flex-wrap: wrap;
  justify-items: center;

  color: var(--color-text-muted);
}

.profile .techs img {
  width: 3rem;
  height: 3rem;
}

.profile .techs img.tech-icon {
  width: 3rem;
  height: 3rem;
  display: inline-block;
}

.content {
  min-width: 0;
  gap: 1rem;

  flex: 1;
  display: flex;
  flex-direction: column;
}

.content > section {
  padding: 1rem 0;
  gap: 2rem;

  display: flex;
  flex-direction: column;
}

#about p {
  line-height: 1.75;
  color: var(--color-text-muted);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  list-style: none;
  justify-content: center;
}

.skills-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5rem;
  gap: 0.75rem;
  text-align: center;
}

.skills-list .material-symbols-outlined {
  font-size: 3.5rem;
  background-color: var(--color-text-muted);
  color: var(--color-bg);
  width: 5rem;
  height: 5rem;
  align-content: center;
  border-radius: 50%;
}

.skills-list p {
  margin: 0;
  font-size: 0.875rem;
  height: 2rem;
  color: var(--color-text-muted);
}

.site-footer {
  margin-top: 4rem;
  padding: 1rem;

  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
}

.site-footer p {
  margin: auto;

  font-size: 0.625rem;
  text-align: center;
  max-width: 508px;
}

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NotoSansDisplay";
  src: url("../assets/fonts/NotoSansDisplay/NotoSansDisplay-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols Outlined";
  src: url("../assets/fonts/material-symbols/MaterialSymbolsOutlined-VariableFont_FILL,GRAD,opsz,wght.ttf")
    format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 720px;
  margin-inline: auto;
  background: #2b2b2b;
  color: #ddd;
  border: 1px solid #444;
  padding: 1rem;
  border-radius: 0.75rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cookie-banner a {
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn {
  padding: 0.5rem 0.9rem;
  border: 1px solid #666;
  border-radius: 0.5rem;
  background: #333;
}
.btn--ghost {
  background: transparent;
}
.cookie-banner[hidden] {
  display: none !important;
}

.nav[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .nav {
    display: block !important;
  }
}

.nav-toggle {
  position: absolute;
  right: 3.5rem;
  top: 0.8rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #555;
  border-radius: 0.5rem;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
}

.nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid #cc4422;
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .nav {
    position: static;
    display: block !important;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav ul {
    flex-direction: row;
    gap: 1.25rem;
  }
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 56px;
    right: 0.75rem;
    left: auto;
    width: min(280px, calc(100% - 1.5rem));
    background: #242424;
    border: 1px solid #3a3a3a;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 999;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
  }

  .nav a {
    display: block;
    padding: 0.6rem 0.25rem;
    text-align: left;
  }

  .nav li,
  .nav a {
    border: 0 !important;
  }
  .nav li::before,
  .nav li::after,
  .nav a::before,
  .nav a::after {
    content: none !important;
  }

  .nav-toggle {
    right: 3.5rem;
  }
}

@media (min-width: 900px) {
  .nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: block !important;
  }
  .nav ul {
    flex-direction: row;
    gap: 1.25rem;
  }
}

@media (max-width: 899px) {
  .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav li {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .nav li + li {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .nav a {
    display: block;
    padding: 0.6rem 0.75rem;
  }
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  font-size: 24px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:is(#experience, #education) .tl-group {
  position: relative;
  padding-top: 1rem;
  margin-top: 1.5rem;
}
:is(#experience, #education) .tl-group::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--color-sep, #3a3a3a);
}

:is(#experience, #education) .tl-year {
  color: var(--color-text-muted, #aaa);
  font-weight: 600;
  margin: 0.25rem 0 1rem;
}

:is(#experience, #education) .tl-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  position: relative;
}
:is(#experience, #education) .tl-list::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.4rem;
  bottom: 0;
  width: 2px;
  background: var(--color-sep, #3a3a3a);
  border-radius: 1px;
}

:is(#experience, #education) .tl-item {
  position: relative;
  padding-left: 1.75rem;
  margin: 0 0 1.25rem 0;
}
:is(#experience, #education) .tl-item::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.4rem;
  transform: translateX(-50%);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--color-bg, #222);
  box-shadow: 0 0 0 2px var(--color-sep, #3a3a3a),
    inset 0 0 0 4px var(--color-bg, #222);
}

:is(#experience, #education) .tl-title {
  font-weight: 600;
  color: var(--color-accent, #cc4422);
  margin: 0 0 0.25rem;
}

:is(#experience, #education) .tl-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted, #a9a9a9);
  margin: 0 0 0.25rem;
}
:is(#experience, #education) .tl-meta .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

:is(#experience, #education) .tl-meta .tl-org {
  font-weight: 600;
  color: var(--color-text, #ddd);
}

:is(#experience, #education) .tl-desc {
  margin: 0;
  color: var(--color-text, #ddd);
}

@media (max-width: 599px) {
  #experience,
  #education .tl-list {
    padding-left: 1.6rem;
  }
  #experience,
  #education .tl-item {
    margin-bottom: 1.5rem;
  }
}

.projects-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  background: #262626;
  border: 1px solid #3a3a3a;
  border-radius: 0.9rem;
  overflow: hidden;
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 0.85rem 0.9rem 1rem;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-title {
  margin: 0;
  color: var(--color-accent, #cc4422);
  font-weight: 600;
}

.project-badges {
  display: inline-flex;
  gap: 0.35rem;
}
.badge-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  filter: grayscale(1) brightness(0.9);
}

.project-sep {
  height: 1px;
  background: #3a3a3a;
  margin: 0.4rem 0 0.5rem;
}

.project-desc {
  margin: 0;
  color: var(--color-text-muted, #bdbdbd);
  font-size: 0.95rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  z-index: 10000;
}

@media (max-width: 899px) {
  main {
    padding: 1.5rem;
    gap: 2rem;
    flex-direction: column;
    align-items: stretch;
  }

  .profile {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    align-items: center;
  }

  .content {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

:root {
  --header-icon: var(--color-text);
}

header .nav-toggle,
header .theme-toggle .material-symbols-outlined {
  color: var(--header-icon);
}

header .nav-toggle:hover,
header .nav-toggle:focus-visible,
header .theme-toggle:hover,
header .theme-toggle:focus-visible {
  opacity: 0.9;
}