:root {
  --bg: #FFFFFF;
  --heading: #000000;
  --hover-border: #636364;
  --text: #000000;
  --sub-text: #a1a1a1;
  --line: #FFFFFF;
  --surface: #f5f5f7;
  --white-0: rgba(255, 255, 255, 0);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-92: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  margin-top: 1rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.ibm-plex-sans-regular {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
}

h3 {
  font-size: 1.35rem;
}

p,
li,
a,
button {
  font-size: 1.08rem;
}

.site-header,
.site-footer {
  max-width: 1000px;
  margin-left: 4vw;
  padding: 1.25rem 0;
}

.site-header h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
}

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

.container {
  max-width: 1000px;
  margin-left: 4vw;
  padding-bottom: 2rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 0.35rem 0;
}

.profile-header {
  text-align: left;
  font-style: italic;
}

.profile-email {
  display: block;
  font-size: 1.1rem;
  color: var(--heading);
  text-decoration: none;
  margin-top: 0.65rem;
}

.profile-email:hover,
.profile-email:focus-visible {
  text-decoration: underline;
}

.profile-email:visited {
  color: var(--heading);
}

.name-banner {
  margin: 0;
  text-align: left;
  position: relative;
  display: block;
  /* font-family: "Bitcount Grid Double", system-ui; */
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "CRSV" 0.5,
    "ELSH" 0,
    "ELXP" 0;
  font-size: clamp(4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--heading);
  text-shadow: none;
}

.name-banner::after {
  content: "";
  position: absolute;
  inset: -35% -10%;
  background-image: linear-gradient(
    105deg,
    var(--white-0) 44%,
    var(--white-92) 50%,
    var(--white-0) 56%
  );
  background-repeat: no-repeat;
  background-size: 240% 240%;
  background-position: -260% 50%;
  animation: name-shimmer 15s linear infinite;
  pointer-events: none;
}

@keyframes name-shimmer {
  0%,
  60% {
    background-position: -260% 50%;
  }

  100% {
    background-position: 260% 50%;
  }
}

.profile-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.2rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  color: var(--heading);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  background: var(--bg);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-link-chip svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.profile-link-chip:hover,
.profile-link-chip:focus-visible {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
}

.profile-link-chip:visited {
  color: var(--heading);
}

.profile-main {
  margin-top: 0.5rem;
}

.about-block {
  text-align: left;
  width: 100%;
}

.about-block h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--heading);
  letter-spacing: 0.06em;
}

.about-block p {
  margin: 0;
  max-width: none;
}

.projects-section {
  margin-top: 2rem;
}

.section-head {
  margin-bottom: 0.75rem;
}

.section-head p {
  margin: 0.2rem 0 0;
}

.project-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

.wheel-arrow {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wheel-arrow:not(:disabled):hover,
.wheel-arrow:not(:disabled):focus-visible {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
  transform: translateY(-1px);
}

.wheel-arrow:disabled {
  opacity: 0.55;
  cursor: default;
}

.project-wheel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.project-wheel::-webkit-scrollbar {
  display: none;
}

.project-wheel.is-centered {
  justify-content: center;
}

.project-wheel:focus {
  outline: 2px solid var(--hover-border);
}

.project-tile {
  flex: 0 0 min(280px, 80vw);
  scroll-snap-align: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  min-height: 150px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.project-tile h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-tile:hover,
.project-tile:focus-visible {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
  transform: translateY(-2px);
}

.project-tile:visited {
  color: var(--text);
}

.status-heading{
  color: var(--sub-text);
  font-style: italic;
}

.content-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--surface);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  color: var(--heading);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.back-link:hover,
.back-link:focus-visible {
  background: var(--heading);
  color: var(--bg);
}

.life-updates {
  margin: 2rem  0;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.life-updates > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  color: inherit;
  font-weight: 400;
}

.life-updates p {
  margin: 0;
}

.life-updates .date {
  font-weight: 700;
  color: var(--heading);
  margin-right: 0.6rem;
}

@media (max-width: 700px) {
  .profile-card {
    padding: 0.25rem 0;
  }

  .project-carousel {
    gap: 0.4rem;
  }

  .wheel-arrow {
    width: 1.9rem;
    height: 1.9rem;
  }
}
