:root {
  --color-text: rgba(245, 250, 246, 0.95);
  --color-muted: rgba(165, 195, 175, 0.88);
  --color-accent: #7bc99a;
  --color-card: rgba(10, 22, 16, 0.76);
  --color-card-border: rgba(91, 168, 118, 0.42);
  --font-body: "Share Tech Mono", ui-monospace, monospace;
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px var(--color-card-border);
  --radius-card: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: rgba(91, 168, 118, 0.22);
  color: #0a120e;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
  color: var(--color-text);
  line-height: 1.65;
  background-color: #0a120e;
  background-image: linear-gradient(
      145deg,
      rgba(8, 32, 22, 0.84) 0%,
      rgba(6, 22, 14, 0.78) 45%,
      rgba(4, 14, 10, 0.9) 100%
    ),
    url("background.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
}

a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 250, 255, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

li {
  list-style: none;
  margin-bottom: 1rem;
  margin-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.background {
  display: grid;
  grid-template-columns: minmax(0.75rem, 1fr) minmax(0, 38rem) minmax(
      0.75rem,
      1fr
    );
  grid-template-rows: minmax(1rem, 1fr) auto minmax(1rem, 1fr);
  min-height: 100vh;
  padding: 0.5rem 0;
}

@media (min-width: 600px) {
  .background {
    grid-template-columns: minmax(1.25rem, 1fr) minmax(0, 40.5rem) minmax(
        1.25rem,
        1fr
      );
  }
}

.bio {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 100%;
  max-width: 40.5rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-rendering: optimizeLegibility;
}

@supports not (backdrop-filter: blur(5px)) {
  .bio {
    background: rgba(10, 22, 16, 0.9);
  }
}

.bio-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(91, 168, 118, 0.32);
}

.bio-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.bio h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.bio > p:not(.section-heading) {
  line-height: 1.85;
  margin: 0 0 1.15rem;
}

.section-heading {
  margin: 1.75rem 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.bio > p:last-child {
  margin-bottom: 0;
  margin-top: 1.5rem;
  color: var(--color-muted);
}

.interests i[class^="fa-"] {
  color: var(--color-accent);
  font-size: 1.65em;
  width: 1.25em;
  flex-shrink: 0;
  margin-top: 0.08em;
}

.links i[class^="fa-"] {
  font-size: 1.65em;
  width: 1.25em;
  flex-shrink: 0;
  margin-top: 0.08em;
}

.links .icon-fb {
  color: #3b5998;
}

.links .icon-linkedin {
  color: #0e76a8;
}

.links a:hover {
  color: var(--color-accent);
}
